buttongroup[colors],
[sizes],
block,
border,
pill,
disabled,
round,
oval,
fat,
thin,
icon
<a class="button" href="#">Button</a>
<a class="button-block" href="#">Button</a>
<a class="button-border" href="#">Button</a>
<a class="button-pill" href="#">Button</a> <a class="button-pill" href="#">Button</a> <a class="button-pill" href="#">Button</a>
<a class="button-round-pill" href="#">Button</a> <a class="button-round-pill" href="#">Button</a> <a class="button-round-pill" href="#">Button</a>
<a class="button-disabled" href="#">Button</a>
<a class="button-round" href="#">Button</a>
<a class="button-oval" href="#">Button</a>
<a class="button-fat" href="#">Button</a>
<a class="button-thin" href="#">Button</a>
<a class="button-icon" href="#">
<i class="fa fa-apple"></i>
</a>
The colors for the buttons are generated from the color-palette module. Below shows the default colors for these palettes; if you modify the colors in the color-palette module, either by adding, removing or modifying existing values, these will be reflected in your buttons.
<a class="button-primary" href="#">Button</a>
<a class="button-grey-3" href="#">Button</a>
<a class="button-error" href="#">Button</a>
<a class="button-facebook" href="#">Button</a>
For each size in the typography module, a modifier for the buttons is generated for that size.
<a class="button-size-4" href="#">Button</a>
You can of course mix and match any and all of the above combinations. This equates to 1,500+ different button combinations.
<a class="button-block-border-size-3-secondary-oval">Button</a>
<a class="button-icon-size-2-twitter-oval" href="#">
<i class="fa fa-twitter"></i>
</a>
To group more than one button together you can use the button_group class.
<div class="button_group">
<a class="button">Button</a>
<a class="button">Button</a>
<a class="button">Button</a>
</div>
The blockquotes can be customized using the following options:
| Property Name | Default Value | Description |
|---|---|---|
background |
color('greyscale', 'grey-4') |
The default background color for regular buttons. |
color |
white |
The default text color for regular buttons. |
side-padding |
1em |
The left/right padding for all buttons (recommended to use em's for scaling). |
line-height |
2.4 |
The line height for regular buttons. |
weight |
lighter |
The font-family for regular buttons. |
border-width |
1px |
The width of the border for the 'border' modifier. |
disabled-opacity |
0.6 |
The opacity for disabled buttons. |
round-radius |
0.4em |
The radius for round buttons. |
fat-height |
2.8 |
The line-height for fat buttons. |
thin-height |
2 |
The line-height for thin buttons. |
group-spacing |
0.5em |
The spacing between each button in a button group. |
group-stack |
'break-1' |
The value at which buttons in a group should become stacked for mobile devices. |
To change one of the above values, pass your new value(s) to the buttons() mixin in your theme file (e.g. assets/themes/Kayzen/_kayzen.scss).
@include buttons((
'weight' : 'bold',
'border-width' : 3px,
'round-radius' : 0.6em
));
<a class="button-border-secondary">Button</a>