Color
Sets color value of element
Usage
Add color-*
, background-color-*
, and/or border-color-*
class to an element.
<div class="color-primary color-primary-dark@hover">
// Your content
</div>
Classes
Class | Value |
---|---|
color-transparent | transparent |
color-primary | var(--color-primary) |
color-primary-light | var(--color-primary-light) |
color-primary-dark | var(--color-primary-dark) |
color-secondary | var(--color-secondary) |
color-secondary-light | var(--color-secondary-light) |
color-secondary-dark | var(--color-secondary-dark) |
color-dark | var(--color-dark) |
color-light | var(--color-light) |
color-gray | var(--color-gray) |
color-gray-light | var(--color-gray-light) |
color-gray-dark | var(--color-gray-dark) |
color-success | var(--color-success) |
color-warning | var(--color-warning) |
color-error | var(--color-error) |
color-text | var(--color-text) |
color-text-light | var(--color-text-light) |
color-link | var(--color-link) |
color-link-light | var(--color-link-light) |
color-link-dark | var(--color-link-dark) |
background-color-transparent | transparent |
background-color-primary | var(--color-primary) |
background-color-primary-light | var(--color-primary-light) |
background-color-primary-dark | var(--color-primary-dark) |
background-color-secondary | var(--color-secondary) |
background-color-secondary-light | var(--color-secondary-light) |
background-color-secondary-dark | var(--color-secondary-dark) |
background-color-dark | var(--color-dark) |
background-color-light | var(--color-light) |
background-color-gray | var(--color-gray) |
background-color-gray-light | var(--color-gray-light) |
background-color-gray-dark | var(--color-gray-dark) |
background-color-success | var(--color-success) |
background-color-warning | var(--color-warning) |
background-color-error | var(--color-error) |
background-color-background | var(--color-background) |
background-color-background-light | var(--color-background-light) |
background-color-background-dark | var(--color-background-dark) |
border-color-transparent | transparent |
border-color-primary | var(--color-primary) |
border-color-primary-light | var(--color-primary-light) |
border-color-primary-dark | var(--color-primary-dark) |
border-color-secondary | var(--color-secondary) |
border-color-secondary-light | var(--color-secondary-light) |
border-color-secondary-dark | var(--color-secondary-dark) |
border-color-dark | var(--color-dark) |
border-color-light | var(--color-light) |
border-color-gray | var(--color-gray) |
border-color-gray-light | var(--color-gray-light) |
border-color-gray-dark | var(--color-gray-dark) |
border-color-success | var(--color-success) |
border-color-warning | var(--color-warning) |
border-color-error | var(--color-error) |
border-color-border | var(--color-border) |
border-color-border-light | var(--color-border-light) |
border-color-border-dark | var(--color-border-dark) |
Add
@hover
suffix to support:hover
state