Skip to content

Foundation tokens

39 themed values and 27 fixed values; both themes use the same keys.

Theme values

TokenLightNight
bg#efeeea#121210
bg-2#e7e5df#0d0d0b
panel#ffffff#191916
panel-2#f8f7f3#1f1f1b
linergba(22,21,15,.09)rgba(255,255,255,.07)
line-2rgba(22,21,15,.16)rgba(255,255,255,.13)
line-3rgba(22,21,15,.30)rgba(255,255,255,.26)
line-ctlrgba(22,21,15,.47)rgba(255,255,255,.36)
rule#16150f#ebe8df
ink#16150f#ebe8df
ink-2#4f4c43#a9a69c
ink-3#6b675d#85827a
acc#0b6b65#3fc7b7
acc-2#0a5f5a#5ad3c5
acc-3#084f4a#34b3a4
acc-bgrgba(11,107,101,.08)rgba(63,199,183,.10)
acc-ulrgba(11,107,101,.7)rgba(63,199,183,.7)
on-acc#ffffff#07211e
red#8e2d24#d98d82
red-bgrgba(142,45,36,.06)rgba(217,141,130,.08)
red-bg-2rgba(142,45,36,.11)rgba(217,141,130,.14)
ok#2f6b3a#6fcf97
warn#8a5a08#d9ab52
bad#a8321f#e5897b
bad-bgrgba(168,50,31,.08)rgba(229,137,123,.10)
washrgba(22,21,15,.06)rgba(235,232,223,.07)
hoverrgba(22,21,15,.035)rgba(235,232,223,.04)
disrgba(22,21,15,.05)rgba(235,232,223,.05)
s10 1px 1px rgba(22,21,15,.04),0 0 0 1px rgba(22,21,15,.07)0 1px 1px rgba(0,0,0,.3),0 0 0 1px rgba(255,255,255,.06)
s20 1px 2px rgba(22,21,15,.05),0 2px 3px rgba(22,21,15,.04),0 0 0 1px rgba(22,21,15,.08)0 1px 2px rgba(0,0,0,.35),0 2px 3px rgba(0,0,0,.3),0 0 0 1px rgba(255,255,255,.07)
s30 2px 3px rgba(22,21,15,.06),0 3px 3px rgba(22,21,15,.06),0 0 0 1px rgba(22,21,15,.10)0 2px 3px rgba(0,0,0,.4),0 3px 3px rgba(0,0,0,.4),0 0 0 1px rgba(255,255,255,.09)
glassrgba(255,255,255,.78)rgba(25,25,22,.74)
edgeinset 0 0 0 1px rgba(255,255,255,.8)inset 0 1px 0 rgba(255,255,255,.06)
grain.035.06
blendmultiplyscreen
av-bg#e7e5df#2a2a26
av-ink#16150f#ebe8df
knob#ffffff#ffffff
chromergba(239,238,234,.82)rgba(18,18,16,.82)

Fixed values

--tcrn-color-surface

var(--tcrn-color-bg)

--tcrn-focus-ring

0 0 0 2px var(--tcrn-color-surface),0 0 0 4px var(--tcrn-color-acc)

--tcrn-type-family-heading

"Source Serif 4","Noto Serif SC",Georgia,serif

--tcrn-type-family-ui

"Hanken Grotesk","Noto Sans SC",system-ui,sans-serif

--tcrn-type-family-mono

"IBM Plex Mono",ui-monospace,Menlo,monospace

--tcrn-radius-control

8px

--tcrn-radius-sm

6px

--tcrn-radius-panel

12px

--tcrn-radius-check

4px

--tcrn-radius-stamp

3px

--tcrn-control-height-sm

28px

--tcrn-control-height-md

32px

--tcrn-control-height-lg

40px

--tcrn-control-padding-sm

10px

--tcrn-control-padding-md

12px

--tcrn-control-padding-lg

16px

--tcrn-type-size-control-sm

12px

--tcrn-type-size-control

13px

--tcrn-type-size-control-lg

14px

--tcrn-icon-size-sm

14px

--tcrn-icon-size-md

16px

--tcrn-icon-size-lg

20px

--tcrn-motion-ease

cubic-bezier(.22,1,.36,1)

--tcrn-motion-duration-fill

120ms

--tcrn-motion-duration-press

80ms

--tcrn-motion-duration-move

240ms

--tcrn-motion-duration-loop

900ms

--tcrn-motion-loading-loop

var(--tcrn-motion-duration-loop) linear

--tcrn-motion-intro-fade

120ms

--tcrn-motion-intro-move

240ms

Spacing in these docs

These pages use existing spacing values to separate prose, samples and sections.

Between paragraphs
--tcrn-space-2h · 10 px
Between headings and content or sample groups
--tcrn-space-3h · 14 px
Between sections
2 × --tcrn-space-3h · 28 px

Storybook document layout

All standards pages and component contracts share one centered column. Headers, text, tables and desktop specimens align to its edges. The column fills the space between the page insets up to its cap. Consecutive 390 px phone specimens sit side by side when both fit.

Maximum document column width
--docs-column-cap · 1240 px
Inset per side above 750 px viewport width
2 × --tcrn-space-3h · 28 px
Inset per side at viewport widths up to 750 px
--tcrn-space-4 · 16 px