You can either download a copy of the source files or install Buttonplate via Bower.
bower install buttonplate
Start by including the necessary files.
<head> <link href="css/buttonplate.css" rel="stylesheet" type="text/css"> </head>
Now class your button to gain the desired effect. For example:
<button class="button line-red large">Example Button</button>
Instead of including the CSS file above, you can import the SASS file and create your own button styles. See an example below:
@import "buttonplate/sass/import"; .btn-primary, .btn-secondary { @include button-setup(); @include button-shape(rounded); } .btn-primary { @include button-style(line, black); @include button-size(large); } .btn-secondary { @include button-style(flat, white); @include button-size(normal); }
If you want to enable button drop downs then you will need to execute the following Javascript.
<script> new buttonplate('.btn-primary'); new buttonplate('.btn-secondary'); </script>
Flat Buttons
White Grey Black Aqua Blue Green Orange Pink Purple Red YellowGradient Buttons
White Grey Black Aqua Blue Green Orange Pink Purple Red YellowLine Buttons
White Grey Black Aqua Blue Green Orange Pink Purple Red YellowFor a more detailed look into the available options, you can read the documentation at https://github.com/chrishumboldt/Buttonplate