4 Buttons
Button styles can be applied to anything with the .btn
class applied.
However, typically you'll want to apply these to only <a>
and <button>
elements for the best rendering.
4.1 Base styles & states
4.2 Sizing
Fancy larger or smaller buttons?
Add .btn--large
, .btn--small
, or .btn--mini
for additional sizes.
Large button.
Small button.
Mini button.
Block level button.
<button type="submit" class="btn btn--primary {$modifiers}">Button</button>
<button type="submit" class="btn {$modifiers}">Button</button>
4.3 Skins
Add an additonal modifier class to style button
Provides extra visual weight and identifies the primary action in a set of buttons.
Used as an alternative to the default styles.
Indicates a successful or positive action.
Indicates caution should be taken with this action.
Indicates a dangerous or potentially negative action.
Deemphasize a button by making it look like a link while maintaining button behavior.
<a href="#" class="btn {$modifiers}">Button</a>
<button type="submit" class="btn {$modifiers}">Button</button>
4.4 Icon Buttons
Add an icon for added visual emphasis or clarity of purpose
Large.
Small
Mini
Block
Primary
Info
Success
Warning
Danger
<div>
<a href="#" class="btn {$modifiers} btn--icon">Icon Button <span class="icon icon-angle-right"></span></a>
</div>
4.5 Button Groups
Use the .btn-group
class on a <div>
element surrounding several <a>
elements with class .btn
.
<div class="btn-group">
<a href="#" class="btn">Button Link</a>
<a class="btn">Button Link</a>
<a class="btn">Button Link</a>
</div>