Bttn.css
Awesome buttons for awesome projects!
Install / Use
/learn @ganapativs/Bttn.cssREADME
bttn.css
Awesome buttons for awesome projects!
Demo | Medium Article | ProductHunt | cdnjs
<img src="http://imgur.com/mqPa6Ac.png" width="600" />Button style classes
bttn-simplebttn-borderedbttn-minimalbttn-stretchbttn-jellybttn-gradientbttn-fillbttn-material-circlebttn-material-flatbttn-pillbttn-floatbttn-unitebttn-slant(Beta)
Button sizes
bttn-xsbttn-smbttn-mdbttn-lg
Button Colors
bttn-defaultbttn-primarybttn-warningbttn-successbttn-dangerbttn-royal
Button helper classes
bttn-blockbttn-no-outline(Don't show outline when navigating with keyboard/interact using mouse or touch)
Install
Bower
<pre> bower install bttn.css </pre>CDN - cdnjs
<pre> https://cdnjs.com/libraries/bttn.css </pre>CSS File
<pre> <link type="text/css" src="./dist/bttn.min.css"/> </pre>Usage
Include bttn.min.css in head of your html file and start using bttn CSS classes in your button.
Environment Setup
:information_source: Build process uses yarn, you can also use npm instead.
Install dependencies - stylus, autoprefixer-stylus and clean-css
<pre> yarn </pre>Compile stylus to css
<pre> yarn start </pre>Dev environment
<pre> yarn run dev </pre>Minify css for production and build example folder javascript files(Webpack)
<pre> yarn run build </pre>View bttn.css demo in browser
<pre> open build/index.html in browser </pre>TODO
- Add loading & done state animations
- Test on older version of the browsers
