Styles
Three core visual languages and one extra. Not color themes: each one owns its type, geometry, borders, shadows, motion, focus and press physics.
| Token | Raw | Silk | Volume |
|---|---|---|---|
Display face--du-font-display | … | … | … |
Control face--du-font-control | … | … | … |
Control case--du-control-case | … | … | … |
Control height--du-h-md | … | … | … |
Control radius--du-radius-control | … | … | … |
Surface radius--du-radius-surface | … | … | … |
Border weight--du-border-control | … | … | … |
Hover shift--du-hover-y | … | … | … |
Press travel--du-active-y | … | … | … |
Press scale--du-active-scale | … | … | … |
Overlay motion--du-overlay-in | … | … | … |
Fast duration--du-dur-1 | … | … | … |
Raw
Newsprint and ink. Expanded grotesk, mono labels, 2px rules and hard offset shadows that collapse when pressed.
- Archivo at 125% width for display, Martian Mono capitals for controls and labels.
- Zero radius. 2px ink rules on every control and surface.
- Hard offset shadows. Hover lifts the block off its shadow; press slams it flat.
- Overlays wipe in like a slip of paper. Spinners tick in eight steps.
- Vermillion is the only spot color: focus rings and the primary action's shadow.
Silk
Soft and everyday. Pill buttons, filled fields, generous radii and diffuse warm shadows. Lifts a hair on hover, squeezes on press.
- Figtree throughout, sentence case, bold display weight.
- Pill buttons and tabs, filled fields with no visible border until focus.
- Diffuse warm shadows. Hover lifts a hair, press squeezes to 96%.
- Rose is the single accent: switches, sliders, progress, focus.
- Overlays pop in with a hair of overshoot. Built for everyday product UI.
Volume
Real 3D. Every control is an extruded block: hover lifts it, press sinks it flush, overlays tilt up in perspective.
- Bricolage Grotesque display over Onest body. Ultramarine primary.
- Every control is an extruded block with a solid 4px side in a darker shade.
- Hover lifts 2px and grows the side; press sinks the block flush with the page.
- Tabs are separate keys; the active key stays pressed. Fields are raised plates.
- Dialogs and menus tilt up out of the page in perspective.
Vector (extra)
Minimal sci-fi blueprint. Line drawing on paper or cyanotype blue, small chamfers, registration brackets and overlays that draw open.
- Chakra Petch display, Geist Mono capitals for controls, labels and table heads.
- Flat line drawing: no shadows, no glow. Surfaces are outlined and carry registration brackets that extend on hover.
- Small chamfers via corner-shape: bevel, square where the browser lacks support.
- Dashed focus rings, ruler-tick sliders and meters, hatched skeletons, a stepping spinner.
- Light is a white print (blueprint ink on paper). Dark is a cyanotype (white lines on blueprint blue).
Halo (extra)
Premium and luminous. Rim-lit surfaces, a monochrome primary and one mint accent that glows on focus, hover and on.
- Geist with tight tracking. Monochrome primary, one mint accent.
- Rim-lit hairline surfaces and soft, tinted depth.
- Hover and focus gather a glowing halo instead of moving the control.
- Overlays materialize out of a blur. Switches and sliders glow when on.
- Translucent menus with backdrop blur; solid under reduced transparency.
The style is an attribute. Change it at runtime and every component re-renders in the new material with no React work. Nest it to mix styles on one page; overlays opened inside a StyleScope portal into the scope so they keep its look.
- Each style defines its own visible focus treatment; none rely on color alone.
- Under
prefers-reduced-motionevery style collapses overlay motion to a short fade and stops looping animations. - Text and control colors are checked for WCAG AA in light and dark for all three.