Foundations
Design Tokens

Design Tokens

Color

Reflects a product's style, creates hierarchy, and provides meaning to components and messages.

Base


Token
CSS Variable
Value
Preview
$color-gray-0
--sl-color-gray-0
#FFFFFF
$color-gray-1
--sl-color-gray-1
#F5F5F5
$color-gray-2
--sl-color-gray-2
#EBEBEB
$color-gray-3
--sl-color-gray-3
#E0E0E0
$color-gray-4
--sl-color-gray-4
#D6D6D6
$color-gray-5
--sl-color-gray-5
#C2C2C2
$color-gray-6
--sl-color-gray-6
#ADADAD
$color-gray-7
--sl-color-gray-7
#999999
$color-gray-8
--sl-color-gray-8
#858585
$color-gray-9
--sl-color-gray-9
#707070
$color-gray-10
--sl-color-gray-10
#5C5C5C
$color-gray-11
--sl-color-gray-11
#3D3D3D
$color-gray-12
--sl-color-gray-12
#1F1F1F
$color-gray-13
--sl-color-gray-13
#000000
$color-red-1
--sl-color-red-1
#FDF6F5
$color-red-2
--sl-color-red-2
#FFEDEA
$color-red-3
--sl-color-red-3
#FFDFD9
$color-red-4
--sl-color-red-4
#FFD0C7
$color-red-5
--sl-color-red-5
#FFBBAD
$color-red-6
--sl-color-red-6
#FF9E8B
$color-red-7
--sl-color-red-7
#FF7F68
$color-red-8
--sl-color-red-8
#F95D47
$color-red-9
--sl-color-red-9
#EC3727
$color-red-10
--sl-color-red-10
#D31A15
$color-red-11
--sl-color-red-11
#B40202
$color-red-12
--sl-color-red-12
#940303
$color-red-13
--sl-color-red-13
#720000
$color-orange-1
--sl-color-orange-1
#FDF5E9
$color-orange-2
--sl-color-orange-2
#FFEDCD
$color-orange-3
--sl-color-orange-3
#FFE0AE
$color-orange-4
--sl-color-orange-4
#FED392
$color-orange-5
--sl-color-orange-5
#FEBC64
$color-orange-6
--sl-color-orange-6
#FFA138
$color-orange-7
--sl-color-orange-7
#F78612
$color-orange-8
--sl-color-orange-8
#E57001
$color-orange-9
--sl-color-orange-9
#CC5E01
$color-orange-10
--sl-color-orange-10
#B24D01
$color-orange-11
--sl-color-orange-11
#963E01
$color-orange-12
--sl-color-orange-12
#7B3001
$color-orange-13
--sl-color-orange-13
#622401
$color-yellow-1
--sl-color-yellow-1
#FBF7D4
$color-yellow-2
--sl-color-yellow-2
#FDF5AD
$color-yellow-3
--sl-color-yellow-3
#FAEC6D
$color-yellow-4
--sl-color-yellow-4
#FADE1E
$color-yellow-5
--sl-color-yellow-5
#E9C701
$color-yellow-6
--sl-color-yellow-6
#D8B401
$color-yellow-7
--sl-color-yellow-7
#C5A001
$color-yellow-8
--sl-color-yellow-8
#B18D01
$color-yellow-9
--sl-color-yellow-9
#9C7901
$color-yellow-10
--sl-color-yellow-10
#866701
$color-yellow-11
--sl-color-yellow-11
#715401
$color-yellow-12
--sl-color-yellow-12
#5C4401
$color-yellow-13
--sl-color-yellow-13
#493401
$color-green-1
--sl-color-green-1
#EDFDF5
$color-green-2
--sl-color-green-2
#CFF9E1
$color-green-3
--sl-color-green-3
#AEF5CF
$color-green-4
--sl-color-green-4
#8AEDBD
$color-green-5
--sl-color-green-5
#68DFA9
$color-green-6
--sl-color-green-6
#4ACD94
$color-green-7
--sl-color-green-7
#2FB980
$color-green-8
--sl-color-green-8
#16A56F
$color-green-9
--sl-color-green-9
#01905F
$color-green-10
--sl-color-green-10
#017B4E
$color-green-11
--sl-color-green-11
#01663F
$color-green-12
--sl-color-green-12
#015132
$color-green-13
--sl-color-green-13
#064028
$color-teal-1
--sl-color-teal-1
#E9FAF8
$color-teal-2
--sl-color-teal-2
#CFF8F4
$color-teal-3
--sl-color-teal-3
#ABF2EB
$color-teal-4
--sl-color-teal-4
#8DEAE3
$color-teal-5
--sl-color-teal-5
#66DBD3
$color-teal-6
--sl-color-teal-6
#40CAC2
$color-teal-7
--sl-color-teal-7
#10B6AF
$color-teal-8
--sl-color-teal-8
#01A29B
$color-teal-9
--sl-color-teal-9
#018D88
$color-teal-10
--sl-color-teal-10
#017873
$color-teal-11
--sl-color-teal-11
#016460
$color-teal-12
--sl-color-teal-12
#0D504D
$color-teal-13
--sl-color-teal-13
#133D3B
$color-blue-1
--sl-color-blue-1
#F1F8FD
$color-blue-2
--sl-color-blue-2
#E1F3FF
$color-blue-3
--sl-color-blue-3
#CBE9FF
$color-blue-4
--sl-color-blue-4
#B6DFFF
$color-blue-5
--sl-color-blue-5
#97CFFE
$color-blue-6
--sl-color-blue-6
#79BCFB
$color-blue-7
--sl-color-blue-7
#5AA8F7
$color-blue-8
--sl-color-blue-8
#3993F4
$color-blue-9
--sl-color-blue-9
#157BF4
$color-blue-10
--sl-color-blue-10
#0366DD
$color-blue-11
--sl-color-blue-11
#0155B7
$color-blue-12
--sl-color-blue-12
#014592
$color-blue-13
--sl-color-blue-13
#013672
$color-purple-1
--sl-color-purple-1
#F9F5FD
$color-purple-2
--sl-color-purple-2
#F5EAFE
$color-purple-3
--sl-color-purple-3
#EDDCFE
$color-purple-4
--sl-color-purple-4
#E5CFFE
$color-purple-5
--sl-color-purple-5
#DABAFD
$color-purple-6
--sl-color-purple-6
#CBA3FC
$color-purple-7
--sl-color-purple-7
#BC8AFB
$color-purple-8
--sl-color-purple-8
#AD71F8
$color-purple-9
--sl-color-purple-9
#9C56F3
$color-purple-10
--sl-color-purple-10
#883CE6
$color-purple-11
--sl-color-purple-11
#7225D2
$color-purple-12
--sl-color-purple-12
#5C12B6
$color-purple-13
--sl-color-purple-13
#460B93
$color-pink-1
--sl-color-pink-1
#FDF5F7
$color-pink-2
--sl-color-pink-2
#FFEBF2
$color-pink-3
--sl-color-pink-3
#FFDFEB
$color-pink-4
--sl-color-pink-4
#FFC8DC
$color-pink-5
--sl-color-pink-5
#FEB2CD
$color-pink-6
--sl-color-pink-6
#FF98BF
$color-pink-7
--sl-color-pink-7
#FE78AC
$color-pink-8
--sl-color-pink-8
#EF5997
$color-pink-9
--sl-color-pink-9
#DE387F
$color-pink-10
--sl-color-pink-10
#CA226A
$color-pink-11
--sl-color-pink-11
#AF0956
$color-pink-12
--sl-color-pink-12
#8F0246
$color-pink-13
--sl-color-pink-13
#74043B
$color-cyan-1
--sl-color-cyan-1
#E6FAFD
$color-cyan-2
--sl-color-cyan-2
#C6F9FF
$color-cyan-3
--sl-color-cyan-3
#A5F1FF
$color-cyan-4
--sl-color-cyan-4
#89E8FB
$color-cyan-5
--sl-color-cyan-5
#61D9F4
$color-cyan-6
--sl-color-cyan-6
#34C6E9
$color-cyan-7
--sl-color-cyan-7
#13B1DB
$color-cyan-8
--sl-color-cyan-8
#029DC9
$color-cyan-9
--sl-color-cyan-9
#0187B5
$color-cyan-10
--sl-color-cyan-10
#0172A0
$color-cyan-11
--sl-color-cyan-11
#015E8A
$color-cyan-12
--sl-color-cyan-12
#014B74
$color-cyan-13
--sl-color-cyan-13
#013A5E

Background


Token
CSS Variable
Value
Preview
$bg
--sl-bg
var(--sl-color-gray-0)
$bg-disabled
--sl-bg-disabled
color-mix(in srgb, var(--sl-color-gray-12) 5%, transparent)
$bg-warning
--sl-bg-warning
var(--sl-color-yellow-1)
$bg-success
--sl-bg-success
var(--sl-color-green-1)
$bg-informational
--sl-bg-informational
var(--sl-color-blue-1)
$bg-strong
--sl-bg-strong
var(--sl-color-gray-3)
$bg-strong-disabled
--sl-bg-strong-disabled
var(--sl-color-gray-6)
$bg-plain
--sl-bg-plain
color-mix(in srgb, var(--sl-color-gray-12) 0%, transparent)
$bg-plain-hover
--sl-bg-plain-hover
color-mix(in srgb, var(--sl-color-gray-12) 5%, transparent)
$bg-plain-pressed
--sl-bg-plain-pressed
color-mix(in srgb, var(--sl-color-gray-12) 10%, transparent)
$bg-inverted
--sl-bg-inverted
var(--sl-color-gray-12)
$bg-inverted-plain
--sl-bg-inverted-plain
color-mix(in srgb, var(--sl-color-gray-12) 50%, transparent)
$bg-muted
--sl-bg-muted
var(--sl-color-gray-1)
$bg-muted-hover
--sl-bg-muted-hover
var(--sl-color-gray-2)
$bg-muted-pressed
--sl-bg-muted-pressed
var(--sl-color-gray-3)
$bg-muted-plain
--sl-bg-muted-plain
color-mix(in srgb, var(--sl-color-gray-12) 5%, transparent)
$bg-muted-plain-hover
--sl-bg-muted-plain-hover
color-mix(in srgb, var(--sl-color-gray-12) 10%, transparent)
$bg-muted-plain-pressed
--sl-bg-muted-plain-pressed
color-mix(in srgb, var(--sl-color-gray-12) 15%, transparent)
$bg-accent
--sl-bg-accent
var(--sl-color-blue-2)
$bg-accent-hover
--sl-bg-accent-hover
var(--sl-color-blue-3)
$bg-accent-pressed
--sl-bg-accent-pressed
var(--sl-color-blue-4)
$bg-accent-plain
--sl-bg-accent-plain
color-mix(in srgb, var(--sl-color-blue-10) 0%, transparent)
$bg-accent-plain-hover
--sl-bg-accent-plain-hover
color-mix(in srgb, var(--sl-color-blue-10) 5%, transparent)
$bg-accent-plain-pressed
--sl-bg-accent-plain-pressed
color-mix(in srgb, var(--sl-color-blue-10) 10%, transparent)
$bg-accent-strong
--sl-bg-accent-strong
var(--sl-color-blue-10)
$bg-accent-strong-hover
--sl-bg-accent-strong-hover
var(--sl-color-blue-11)
$bg-accent-strong-pressed
--sl-bg-accent-strong-pressed
var(--sl-color-blue-12)
$bg-critical
--sl-bg-critical
var(--sl-color-red-1)
$bg-critical-plain
--sl-bg-critical-plain
color-mix(in srgb, var(--sl-color-red-9) 0%, transparent)
$bg-critical-plain-hover
--sl-bg-critical-plain-hover
color-mix(in srgb, var(--sl-color-red-9) 5%, transparent)
$bg-critical-plain-pressed
--sl-bg-critical-plain-pressed
color-mix(in srgb, var(--sl-color-red-9) 10%, transparent)
$bg-critical-strong
--sl-bg-critical-strong
var(--sl-color-red-9)
$bg-critical-strong-hover
--sl-bg-critical-strong-hover
var(--sl-color-red-10)
$bg-critical-strong-pressed
--sl-bg-critical-strong-pressed
var(--sl-color-red-11)

Foreground


Token
CSS Variable
Value
Preview
$fg
--sl-fg
var(--sl-color-gray-12)
$fg-soft
--sl-fg-soft
var(--sl-color-gray-9)
$fg-disabled
--sl-fg-disabled
var(--sl-color-gray-7)
$fg-inverted
--sl-fg-inverted
var(--sl-color-gray-0)
$fg-warning
--sl-fg-warning
var(--sl-color-yellow-9)
$fg-success
--sl-fg-success
var(--sl-color-green-9)
$fg-informational
--sl-fg-informational
var(--sl-color-blue-9)
$fg-muted
--sl-fg-muted
var(--sl-color-gray-11)
$fg-muted-hover
--sl-fg-muted-hover
var(--sl-color-gray-12)
$fg-muted-pressed
--sl-fg-muted-pressed
var(--sl-color-gray-13)
$fg-accent
--sl-fg-accent
var(--sl-color-blue-10)
$fg-accent-hover
--sl-fg-accent-hover
var(--sl-color-blue-11)
$fg-accent-pressed
--sl-fg-accent-pressed
var(--sl-color-blue-12)
$fg-critical
--sl-fg-critical
var(--sl-color-red-9)
$fg-critical-hover
--sl-fg-critical-hover
var(--sl-color-red-10)
$fg-critical-pressed
--sl-fg-critical-pressed
var(--sl-color-red-11)

Typography

Creates hierarchies, organizes information, and guides users through a product or experience.


Token
CSS Variable
Value
Preview
$font-weight-regular
--sl-font-weight-regular
400
$font-weight-medium
--sl-font-weight-medium
500
$font-weight-semibold
--sl-font-weight-semibold
600
$font-size-1
--sl-font-size-1
0.75rem
$font-size-2
--sl-font-size-2
0.875rem
$font-size-3
--sl-font-size-3
1rem
$font-size-4
--sl-font-size-4
1.25rem
$font-size-5
--sl-font-size-5
1.5rem
$letter-spacing-1
--sl-letter-spacing-1
0rem
$letter-spacing-2
--sl-letter-spacing-2
-0.00875rem
$letter-spacing-3
--sl-letter-spacing-3
-0.02rem
$letter-spacing-4
--sl-letter-spacing-4
-0.04rem
$line-height-1
--sl-line-height-1
1rem
$line-height-2
--sl-line-height-2
1.25rem
$line-height-3
--sl-line-height-3
1.5rem
$line-height-4
--sl-line-height-4
1.75rem
$line-height-5
--sl-line-height-5
2rem
$text-caption-1
--sl-text-caption-1
font: var(--sl-font-weight-medium) var(--sl-font-size-1) / var(--sl-line-height-1) var(--sl-font-family-sans); letter-spacing: var(--sl-letter-spacing-1);
$text-caption-2
--sl-text-caption-2
font: var(--sl-font-weight-regular) var(--sl-font-size-1) / var(--sl-line-height-1) var(--sl-font-family-sans); letter-spacing: var(--sl-letter-spacing-1);
$text-action
--sl-text-action
font: var(--sl-font-weight-semibold) var(--sl-font-size-2) / var(--sl-line-height-2) var(--sl-font-family-sans); letter-spacing: var(--sl-letter-spacing-2);
$text-emphasis
--sl-text-emphasis
font: var(--sl-font-weight-medium) var(--sl-font-size-2) / var(--sl-line-height-2) var(--sl-font-family-sans); letter-spacing: var(--sl-letter-spacing-2);
$text-body
--sl-text-body
font: var(--sl-font-weight-regular) var(--sl-font-size-2) / var(--sl-line-height-2) var(--sl-font-family-sans); letter-spacing: var(--sl-letter-spacing-2);
$text-display-1
--sl-text-display-1
font: var(--sl-font-weight-semibold) var(--sl-font-size-5) / var(--sl-line-height-5) var(--sl-font-family-sans); letter-spacing: var(--sl-letter-spacing-4);
$text-display-2
--sl-text-display-2
font: var(--sl-font-weight-semibold) var(--sl-font-size-4) / var(--sl-line-height-4) var(--sl-font-family-sans); letter-spacing: var(--sl-letter-spacing-4);
$text-display-3
--sl-text-display-3
font: var(--sl-font-weight-semibold) var(--sl-font-size-3) / var(--sl-line-height-3) var(--sl-font-family-sans); letter-spacing: var(--sl-letter-spacing-3);
$text-display-4
--sl-text-display-4
font: var(--sl-font-weight-regular) var(--sl-font-size-3) / var(--sl-line-height-3) var(--sl-font-family-sans); letter-spacing: var(--sl-letter-spacing-3);

Spacing

Defines the relationship between elements and makes the content more easily scannable.


Token
CSS Variable
Value
Preview
$space-0
--sl-space-0
0rem
$space-1
--sl-space-1
0.25rem
$space-2
--sl-space-2
0.5rem
$space-3
--sl-space-3
0.75rem
$space-4
--sl-space-4
1rem
$space-5
--sl-space-5
1.25rem
$space-6
--sl-space-6
1.5rem
$space-7
--sl-space-7
1.75rem
$space-8
--sl-space-8
2rem
$space-10
--sl-space-10
2.5rem
$space-12
--sl-space-12
3rem
$space-16
--sl-space-16
4rem
$space-20
--sl-space-20
5rem
$space-24
--sl-space-24
6rem
$space-28
--sl-space-28
7rem
$space-32
--sl-space-32
8rem
$space-05
--sl-space-05
0.125rem
$space-gap
--sl-space-gap
var(--sl-space-4)

Border

Defines the limits of a container and helps organize content.


Token
CSS Variable
Value
Preview
$border
--sl-border
1px solid var(--sl-color-gray-3)
$border-disabled
--sl-border-disabled
1px solid var(--sl-color-gray-6)
$border-success
--sl-border-success
1px solid var(--sl-color-green-3)
$border-informational
--sl-border-informational
1px solid var(--sl-color-blue-3)
$border-warning
--sl-border-warning
1px solid var(--sl-color-yellow-3)
$border-strong
--sl-border-strong
1px solid var(--sl-color-gray-5)
$border-strong-hover
--sl-border-strong-hover
1px solid var(--sl-color-gray-6)
$border-accent
--sl-border-accent
1px solid var(--sl-color-blue-3)
$border-accent-strong
--sl-border-accent-strong
1px solid var(--sl-color-blue-10)
$border-accent-strong-hover
--sl-border-accent-strong-hover
1px solid var(--sl-color-blue-11)
$border-critical
--sl-border-critical
1px solid var(--sl-color-red-3)
$border-critical-strong
--sl-border-critical-strong
1px solid var(--sl-color-red-8)
$border-critical-strong-hover
--sl-border-critical-strong-hover
1px solid var(--sl-color-red-9)

Border Radius

Defines the roundness of the corners of an element.


Token
CSS Variable
Value
Preview
$border-radius-none
--sl-border-radius-none
0rem
$border-radius-small
--sl-border-radius-small
0.25rem
$border-radius-medium
--sl-border-radius-medium
0.5rem
$border-radius-large
--sl-border-radius-large
0.75rem
$border-radius-full
--sl-border-radius-full
100%

Elevation

Creates spatial relationships by lifting elements from the background.


Token
CSS Variable
Value
Preview
$focus-ring
--sl-focus-ring
0rem 0rem 0rem 0.0625rem var(--sl-color-gray-0), 0rem 0rem 0rem 0.1875rem var(--sl-color-gray-5)
$focus-ring-critical
--sl-focus-ring-critical
0rem 0rem 0rem 0.0625rem var(--sl-color-gray-0), 0rem 0rem 0rem 0.1875rem var(--sl-color-red-6)
$focus-ring-accent
--sl-focus-ring-accent
0rem 0rem 0rem 0.0625rem var(--sl-color-gray-0), 0rem 0rem 0rem 0.1875rem var(--sl-color-blue-6)
$shadow-1
--sl-shadow-1
0rem 0.25rem 1rem 0rem rgba(0, 0, 0, 0.16)
$shadow-2
--sl-shadow-2
0rem 1.5rem 3rem 0rem rgba(0, 0, 0, 0.16)
$z-1
--sl-z-1
0
$z-2
--sl-z-2
100
$z-3
--sl-z-3
200
$z-4
--sl-z-4
300
$z-5
--sl-z-5
400
$z-6
--sl-z-6
500
$z-7
--sl-z-7
600
$z-8
--sl-z-8
700
$z-9
--sl-z-9
800
$z-10
--sl-z-10
900