Variables
Colors
Accent
--blue
Primary button, hyperlinks, focus/selected states
--green
Toolbar selections
--yellow
Cautionary conditions/warnings
--red
Indicate error
--purple
Indicate Component & Instance nodes
--hot-pink
Assistive UI canvas decorations
Basic foreground
--white
Primary background for UI, text on menus
--white8
Only used for Figma toolbar
--white4
Used in same way as black3, Ex: option group headers in menus
--black
Active states
--black8
80% black, ex: most common black used in UI text and icons
--black3
30% black, ex: lower priority messages, disabled states
Basic background
--bg-white
Positive backgrounds, ex: property panels, sidebar
--bg-grey
Bg of ex: buttons, controls in active state
--bg-silver
Sidebar seperator lines & default canvas bg
--bg-black
Tabstrip bg in desktop app (Fullscreen mode)
--bg-hud
Heads-up display elements, ex: menus
--bg-toolbar
Background for Figma toolbar
Special
--black1
Outline of UI controls
--hover-fill
Hover state for items without borders, ex: icon button
--white2
Menu separators
--blue3
Text range selection
--selection-a
Selected cells, ex: selected top level layer
--selection-b
Selected cells, ex: selected child layers
Typography
Property | Var | Value |
---|
font-family | --font-stack | 'Inter', sans-serif |
font-size | --font-size-xsmall | 11px |
font-size | --font-size-small | 12px |
font-size | --font-size-large | 13px |
font-size | --font-size-xlarge | 14px |
font-weight | --font-weight-normal | 400 |
font-weight | --font-weight-medium | 500 |
font-weight | --font-weight-bold | 600 |
line-height | --font-line-height | 16px |
line-height | --font-line-height-large | 24px |
letter-spacing | --font-letter-spacing-pos-xsmall | .005em |
letter-spacing | --font-letter-spacing-neg-xsmall | .01em |
letter-spacing | --font-letter-spacing-pos-small | 0 |
letter-spacing | --font-letter-spacing-neg-small | .005em |
letter-spacing | --font-letter-spacing-pos-large | -0.0025em |
letter-spacing | --font-letter-spacing-neg-large | .0025em |
letter-spacing | --font-letter-spacing-pos-xlarge | -.001em |
letter-spacing | --font-letter-spacing-neg-xlarge | -.001em |
The letter-spacing vars are used to optimize legibility of certain font sizes on certain background colors. Ex: --font-letter-spacing-neg-small
improves the legibility of light --font-size-small
text on a dark background.
Size
Var | Value |
---|
--size-xxxsmall | 4px |
--size-xxsmall | 8px |
--size-xsmall | 16px |
--size-small | 24px |
--size-medium | 32px |
--size-large | 40px |
--size-xlarge | 48px |
--size-xxlarge | 64px |
--size-xxxlarge | 80px |
Border radius
Var | Value | Notes |
---|
--border-radius-small | 2px | Ex: menus, input borders, icon button |
--border-radius-med | 5px | Ex: visual bell, toasts |
--border-radius-large | 6px | Ex: buttons |
Shadows
Var | Value | Notes |
---|
--shadow-hud | 0 5px 17px rgba(0, 0, 0, 0.2), 0 2px 7px rgba(0, 0, 0, 0.15) | Ex: menus, tooltips, toasts |
--shadow-floating-window | 0 2px 14px rgba(0, 0, 0, 0.15) | Ex: modal, dialog |