Skip to main content

+variant

+component('button')
+register
+variant('.primary')

+default
display: inline-block
background-color: grey

+variant('.primary')
background-color: green




button {
display: inline-block;
background-color: grey;
}
button.primary {
background-color: green;
}

The mixins and functions used in the code above: component, default, variant, register, mode.