Tokens

The one list of design values. This table wins over every other page and over server/docs/16-app-design.md. The app page, the native Android screens and the docs site all use these names. Change a value here and in the token file together.

Naming

PlacePatternExample
Page and docs site (CSS)--name--page, --space-6, --ease-out
Android resourcesax_name (dots and dashes become _)@color/ax_page in values/ and values-night/, @dimen/ax_space_6
Kotlin / Compose (if used)Ax.name in camel caseAx.page, Ax.space6

Plan: one source file, design-tokens/tokens.json (outside docs/), makes the CSS file, the Android colors.xml / dimens.xml, and this table. A small Rust program does it. See Design language rollout. Until then, this table is the source.

All tokens

Colour cells are light / dark. Sizes are px on the web (rem for type: px ÷ 16), dp on Android, sp for type on Android.

GroupTokenValueUse
Surfacepage#FAFAFA / #000000Back of every screen
Surfacecard#FFFFFF / #111111Cards, rows, tab bar
Surfaceraised#FFFFFF / #1A1A1ASheets and menus above cards
Surfacefield#F1F1F1 / #1A1A1AInputs, segments, chips, tracks
Surfacebubble#EDEDED / #1C1C1CThe assistant's chat bubble
Surfacecode#F4F4F4 / #0A0A0ACode blocks
Surfaceline#E4E4E4 / #262626Dividers and outlines
Surfacescrimrgba(10,10,10,.32) / rgba(0,0,0,.56)Behind a sheet
Texttext#0A0A0A / #EDEDEDMain text
Textmute#666666 / #8F8F8FLabels, times, hints
Textink#0A0A0A / #EDEDEDMain buttons, your bubble
Texton-ink#FFFFFF / #0A0A0AText on ink
Accentaccent#0A0A0A / #EDEDEDSame as ink; no coloured accent
Accenton-accent#FFFFFF / #0A0A0AText on accent
Accentaccent-soft#0A0A0A0F / #EDEDED1AQuiet fills
Stateok#157A42 / #43C076Done, good, connected
Statewarn#8A5D00 / #E2A826Needs a look soon
Statebad#B8291F / #FF6B63Error, danger, live, badge dot
Depthshadowsee ColorCard lift
Depthshadow-raisedsee ColorSheets, menus
Spacespace-1 … space-102, 4, 6, 8, 12, 16, 20, 24, 32, 48See Spacing
Radiusradius-xs, -sm, -md, -lg, -xl, -2xl, -full6, 10, 14, 20, 22, 30, 999See Corners
Sizetouch-min44 (48 Android)Smallest tap area
Sizecontrol-h, row-h, read-max40, 52, 680Buttons, rows, reading width
Iconicon-xs, -sm, -md, -lg16, 20, 22, 28icon-md is the default
Iconicon-stroke, icon-stroke-active1.9, 2.4Line width
Typetype-display34/37 700Screen title
Typetype-title22/28 600Card and sheet title
Typetype-headline17/24 600Row and section title
Typetype-body16/23 400Normal text
Typetype-small14/20 400Second lines, tight buttons
Typetype-caption12/16 500Tab labels, times
Haptichaptic-tick, -click, -confirm, -reject, -heavy, -attentionAndroid constants, see HapticsOne meaning each; page calls hap(name)
Typetype-mono13/19 400Code, tool steps
Typetype-number44/48 500Big numbers: timers, clock face
Fontfont-sans, font-monoInter + system; ui-monospace, Menlo
Durationdur-instant, -quick, -base, -slow, -page80, 150, 240, 320, 420 msSee Motion
Easingease-out, ease-in, ease-in-out, ease-spring(.2,.8,.2,1), (.4,0,1,1), (.7,0,.2,1), (.3,1.6,.5,1)
Springspring-snappy, -smooth, -bouncy700/0.85, 380/1.0, 500/0.6Stiffness / damping ratio
Breakpointbp-medium, bp-expanded, bp-large600, 840, 1200See Breakpoints

Weights: 400, 500, 600, 700. Four, no more.

Settled against doc 16

server/docs/16-app-design.md had other values. These are the ones that hold now.

ThingDoc 16Now
mute, ok, warn, bad (light)#5e5e68, #157a42, #8a5d00, #b8291fSame: 16's darker values (they fix contrast)
Accentnonenone: accent equals ink (monochrome)
Space4 8 12 16 20 24 32space-* (adds 2, 6, 48)
Radius8 12 16 22 999radius-* (6 10 14 20 22 30 999)
Typeadds 18 and 4417 for headlines; 44 is type-number
Icon size2422 (icon-md), drawn on a 24 grid
Sheet motion300 ms in, 220 ms outdur-slow in, dur-base out
TabsToday, Plan, Chat, YouSame

Gaps

Live: colour swatches

Surfaces

Light

page
card
raised
field
bubble
code
line
scrim

Dark

page
card
raised
field
bubble
code
line
scrim

Text & ink

Light

text
mute
ink
on-ink

Dark

text
mute
ink
on-ink

Accent

Light

accent
on-accent
accent-soft

Dark

accent
on-accent
accent-soft

State

Light

ok
warn
bad

Dark

ok
warn
bad

Tap a hex value to copy it.

Copied