Skip to content

Tokens

The values everything is made of. Components read only these, so changing the surface, the density or the motion preference changes every screen at once. Press any name to copy it.

import '@sypnia/ui/css/tokens.css' or, as data, import tokens from '@sypnia/ui/tokens.json'

Surfaces

Components never use a palette colour directly. They use these names, which mean the same thing on night and on paper.

Night, the home surface

Paper

Palette

Night

The ink. A deep pine-teal, a real colour, never a tinted black.

Mist

Text and lines on night.

Paper

Lit by the glow, so it leans yellow-green, not cream.

Glow

Firefly light. The one colour that is unmistakably Sypnia.

Ember

Reserved for what is failing.

Supports

Dusk for information, dew for what is well, pollen for warnings, petal as a spare.

Type

Every bug leaves a light on.

Voice. Literata. What Sypnia says to the person: titles, empty states, questions.

Create a table, import a CSV, invite your team.

Interface. Instrument Sans. Everything the person reads and presses.

POST /cases/place-order → 201 in 38 ms

Machine. Martian Mono. What a machine said: code, ids, keys, logs.

Space, radius and shadow

Motion

One verb: to light up. Things fade in and travel at most --shift. With «reduce motion» on, every duration becomes instant and nothing loops; components do not handle it one by one. Press a row to play it.

Density

Compact applies by itself on screens under 52rem tall, or wherever data-density="compact" is set (try the density button in the header). On touch screens controls never go under 44 px, whatever the density.

TokenComfortableCompact
--ctl-h-sm2rem1.75rem
--ctl-h2.5rem2.125rem
--ctl-h-lg3rem2.5rem
--ctl-px-sm0.7rem0.6rem
--ctl-px0.9rem0.75rem
--ctl-px-lg1.25rem1rem
--row-h2.75rem2.25rem
--pad-panel1.25rem0.875rem
--pad-page2rem1.25rem
--gap-stack1rem0.75rem
--gap-section2rem1.25rem

    Search pages, sections and terms