Variables

A logical grouping whose values can be changed


Core variables

Core variables is 77 important variables to customize UI globally. They are --color-*, --margin-*, --padding-*, --width-*, --height-*, --gap-*, --border-*, --font-*, --line-height-*, --heading-space-*, and --animation-*

Color

VariableValue
--color-primary#005BFF
--color-primary-light#0f65ff
--color-primary-dark#0056f0
--color-secondary#ffa400
--color-secondary-light#ffa90f
--color-secondary-dark#f09a00
--color-dark#1b1c1e
--color-light#fffefd
--color-gray#bfc1c5
--color-gray-light#dadbde
--color-gray-dark#70747c
--color-border#a4a7ad
--color-border-light#babcc1
--color-border-dark#898d95
--color-background#e7e8ea
--color-background-light#eff0f1
--color-background-dark#dfe0e2
--color-text#27292b
--color-text-light#898d95
--color-success#32b643
--color-warning#ffb700
--color-error#e85600
--color-link#005bff
--color-link-light#337cff
--color-link-dark#0049cc
--color-code#575b61
--color-highlight#ffe9b3
 

Margin

VariableValue
--margin-2xsmall4px
--margin-xsmall8px
--margin-small16px
--margin-medium32px
--margin-large64px
--margin-xlarge128px
 

Padding

VariableValue
--padding-2xsmall4px
--padding-xsmall8px
--padding-small16px
--padding-medium32px
--padding-large64px
--padding-xlarge128px
 

Width

VariableValue
--width-small150px
--width-medium300px
--width-large450px
--width-xlarge600px
--width-2xlarge750px
 

Height

VariableValue
--height-small150px
--height-medium300px
--height-large450px
--height-xlarge600px
--height-2xlarge750px
 

Gap

VariableValue
--gap-small16px
--gap-medium32px
--gap-large64px
 

Border

VariableValue
--border-width2px
--border-width-thin1px
--border-width-thick4px
--border-radius-2xsmall4px
--border-radius-xsmall8px
--border-radius-small16px
--border-radius-medium32px
--border-radius-large64px
 

Font

VariableValue
--font-family"Jost", Verdana, sans-serif
--font-family-headingvar(--font-family)
--font-family-code"Ubuntu Mono", Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace
--font-family-blockquotevar(--font-family)
--font-family-drop-capvar(--font-family)
--font-size-xsmall0.5rem
--font-size-small0.75rem
--font-size16px
--font-size-heading-h51.25rem
--font-size-heading-h41.5rem
--font-size-heading-h31.75rem
--font-size-heading-h22rem
--font-size-heading-h12.5rem
 

Line height

VariableValue
--line-height1.5
--line-height-heading1.2
 

Heading space

VariableValue
--heading-space-before1rem
--heading-space-after0.75rem
 

Animation

VariableValue
--animation-duration1s
--animation-delay1s
 

Component variables

Component variables have prefix --{component_name}-* with {component_name} will be replaced with the name of component in lower case, for example Accordion component has prefix --accordion-*. Please go to component page for details.

Be careful playing with this, it might cause problems with UI consistency