Template preview

Design system preview

Every primitive and pattern reads its values from the theme. Nothing on this page is a final design: it exists to verify the contract, one component at a time.

Foundations

Typography

Three roles: heading, body and badge. Sizes come from tokens; leading, tracking and weight are system values.

Heading — Space Grotesk

--brand-font-heading

Body — Inter

--brand-font-body
Badge — JetBrains Mono--brand-font-badge

The quick brown fox jumps over the lazy dog

display

The quick brown fox jumps over the lazy dog

h1

The quick brown fox jumps over the lazy dog

h2

The quick brown fox jumps over the lazy dog

h3

The quick brown fox jumps over the lazy dog

h4

The quick brown fox jumps over the lazy dog

lead

The quick brown fox jumps over the lazy dog

body

The quick brown fox jumps over the lazy dog

body-sm
The quick brown fox jumps over the lazy dogcaption
Foundations

Color

Three families: two brand palettes with 11 steps and one 6-step neutral that serves both as surface and as text. text 950 on bg 50 gives 12.01:1 in either direction.

primary

50
100
200
300
400
500
600
700
800
900
950

secondary

50
100
200
300
400
500
600
700
800
900
950

neutral

50
200
400
600
800
950
bg-bg
bg-surface
bg-surface-subtle
bg-text
bg-accent
danger
success
warning
UI Primitives

Button

The only approved button. A filled surface with one soft drop and a light gloss along its top edge — no ring — and every state has to communicate interaction on its own.

Six states
default
hover — rises 2px, drop grows
focus-visible — 2px outline
active — sinks into itself
disabled — no elevation
loading — aria-busy, keeps focus
Sizes
Icon side
UI Primitives

Switch

One tap target, two states. The fill is the gloss over the brand gradient, and the knob shrinks when off, so the state reads from the footprint before the knob finishes travelling.

UI Primitives

Checkbox

A well that presses in when it is on. The mark is accent text rather than a fill, so the box never competes with a button for attention.

UI Primitives

Radio

Single selection, stacked vertically. One dot is owned by the group and travels to the chosen option, so the control has one indicator instead of one per row.

Plan
UI Primitives

Slider

The same inset groove and gloss fill as the switch, with the thumb riding above it. Hover raises the thumb one depth step.

Volume 32
Range 70
Disabled
UI Primitives

Text field

The only control that reads as pressed by default. Focus is an outline at zero offset, because a floating ring on an inset surface looks detached.

Search
Only used to reply.
That address looks incomplete.
UI Primitives

Tabs

One indicator pill slides between tabs on a relative track, so the list has a single moving part instead of a highlight per tab.

The panel follows the tab.
UI Primitives

Chip

A raised pill for filters and tokens. The avatar sits in its own well, and the close button only presses in on hover.

Neumorphic design GSAP Tokens Astro islands
UI Primitives

Icon button

Three intents on one 44px target: accent, neumorphic and ghost. The accent variant carries the gloss; the others carry depth only.

UI Primitives

Media button

An outer raised plate around an inset well, for a single transport control.

UI Primitives · icons

Static glyphs come from Lucide

Two thousand icons on a 24px grid with a 2px stroke, which is exactly what our normal weight resolves to. A new icon is a name in the icons module, not a drawing.

Lucide's icon catalogue, with its stroke width and size controls

Lucide

The catalogue lets you set stroke width, size and non-scaling stroke before copying an SVG, so a downloaded icon already matches this system's rules.

lucide.dev/icons

UI Primitives · icons

Polymorphic icons

An icon that animates between two meanings instead of being swapped. It works because both drawings share their horizontal bar: the vertical one retracts from both ends into the centre, so the change reads as movement rather than a cut.

plus
static glyph
minus
static glyph
morph
hover, focus or click
Patterns

NeumorphContainer

Two directions of one light and two colours of shade, on a real tag: div, article, section or li.

lift · primary

The default

The surface rises and the shade carries the brand. Use it when a block deserves a little more presence than the page around it.

lift · neutral

The quiet one

Same geometry without colour. The safer choice behind long text, tables and anything where a tinted shade would read as a highlight rather than as depth.

sunken · neutral

Pressed into the page

The depth lives in the fill, not in the blur: a top-down falloff, a vertical-only inset and a 1px rim inside the bottom edge. The deepest read of the four.

sunken · primary

Sunk, tinted

The same falloff with the shade in the brand colour. For a surface already in the palette — on a neutral page black reads deeper.

One rule: a container never nests another container of the same direction — depth runs out after two levels.
Patterns

Accordion

bits-ui, wrapped thinly, with the panel height driven by GSAP. Two indicators from the same component: the chevron rotates, the plus retracts into a minus. Neither swaps icons.

chevron

Edit src/styles/theme/tokens.css: color ramps, status colors, type sizes, radii, shadows, motion and gradients. Components only consume semantic tokens.

In astro.config.mjs, because the files must be resolved at build time. Each family needs its <Font /> in BaseLayout.astro.

State decides it. Text, Link, Button, Icon, Section and NeumorphContainer ship no JavaScript; Accordion, Modal and every control need state and accessibility primitives.

plus / minus

Edit src/styles/theme/tokens.css: color ramps, status colors, type sizes, radii, shadows, motion and gradients. Components only consume semantic tokens.

In astro.config.mjs, because the files must be resolved at build time. Each family needs its <Font /> in BaseLayout.astro.

State decides it. Text, Link, Button, Icon, Section and NeumorphContainer ship no JavaScript; Accordion, Modal and every control need state and accessibility primitives.

Noindex preview page. It will be replaced once the composition layer exists.