Skip to content

Design system

Every part is built from the same colours and the same pieces: keys, links, chips, tabs, fields, tick boxes, switches, menus, popovers, windows and notes, and the same motion for loading, waiting and sorting. They live in one kit, so a change there changes every part.

The kit is three files: kit.css holds the look, ui.tsx the React pieces and icons.tsx the filled icons. All three come with the first part you install.

Colour

A dark card with white words at three strengths, and three colours that each mean one thing. White at low strength paints everything else. Every token is --kit- and its name.

Ground
page#121212What the parts sit on
surface#1b1b1bThe card
raised#212121Menus and popovers
float#0c0c0cTips
Words
text#f2f2f2Titles, values, keys
soft#d6d6d6 at 62%Details, second lines
faintwhite at 50%Times, counts. Never lower
Meaning
green#6ee7a0Done, safe, kept
amber#f5b544Waits on a person
red#ff8a7eFailed, can’t be undone

Type

The page’s own font. Two weights do the work: 500 for anything you read as a thing, 600 for titles and big numbers.

32 / 40, 600Big figure
15 / 24, 600Card title
14 / 20, 500Row, key, value
13 / 18, 400Detail
12.5 / 18Time, count, note

Buttons

Secondary is the usual key. Primary, the white one, is the main action: one per card at most. Tertiary is words only, for the way out. Danger confirms what can’t be taken back. An icon in a key moves a little under the pointer, the way it points: an arrow along itself, an undo back round. In React: <Button variant size>.

Medium, 40px
Small, 28px, for an action inside a line
Large, 44px, for a page’s own buttons

Icon buttons

An icon with no words, quiet until the pointer is on it. Its name shows after a short rest, at once from the keyboard. In a row, the next name shows at once. The pointer can move onto the name, and Escape hides it. In React: <IconButton label>.

Copy

A key that copies: the same key as any other, with the same gap between icon and words. Under the pointer its two sheets slide a little apart. Pressed, the icon turns into a green check and the words change with it for a moment; the key keeps its width. A screen reader hears Copied. If the copy fails, nothing changes. In React: <CopyButton text label>.

Links

Words that go somewhere, or do something in place. The line under them goes full white under the pointer. In grey text the words light up too. In React: <TextLink> or <LinkButton>.

Read from invoice-0412.pdf, page 2. Nothing matched your search.

Chips

A small raised key with a few words: a suggestion to send, a filter, an answer to pick. One that can be picked shows a plus; picked, it is pressed in and a check draws itself. In React: <Chip picked icon>.

Suggestions
To pick

Options

One of a few tiles to pick from: a time, a plan, a picture. Picked, it is pressed into the card with a check in its corner, never white: white stays the main key’s. A screen reader hears one choice of several, and the arrow keys move the pick. In React: <OptionGroup> and <Option value>.

Pills

A short status in a card’s corner. Grey by default; green, amber or red once it means something. In React: <Pill tone>.

3 of 12DoneNeeds youFailed

Tabs

Tabs switch the view under them. The thumb slides to the tab you pick, as wide as its words. The arrow keys move between tabs, and Tab goes on into the view. In React: <Tabs> and <TabPanel>.

Refund Anna Keller €48.00: the order is inside the 60-day window and the box came back unopened.

Fields

A label over the field, with Optional at its right when it may be left empty. A hint goes under the label or under the field. An error takes the hint’s place below and turns the edge amber. In React: <Field label optional hint hintPosition error>.

From your calendar: the team’s free day

Optional

The agent asks the venue for these.

€

Give the rule a name to save it.

Tick boxes, radios and switches

The whole row is the press target, and a screen reader hears a plain checkbox, radio or switch with its words. A tick draws itself on, a radio’s dot springs in, a switch’s knob slides over. Each one that can be pressed answers the pointer: a switch’s edge lights up and its knob grows a little. Something still missing turns amber, shakes once and takes the focus each time the person tries to go on, so a screen reader reads what is wrong. In React: <Checkbox> <RadioGroup> <Radio> <Switch>.

When it runs

Menus

A key that opens a short list of actions, over everything, so a card never cuts it off. From the keyboard the first action has the focus; the arrow keys and a first letter move it, and Escape gives it back to the key. A hairline splits groups, a shortcut at the right is read after the name, and red is kept for what can’t be taken back. In React: <Menu label items>.

Last picked: Nothing picked yet

Popovers

A small panel a key opens, over everything: why the agent did something, a setting or two. It takes the focus while open. Escape or a press outside closes it. In React: <Popover label title>.

Expandable rows

A row that opens to show more under it. The chevron turns, the room opens, and what is inside fades in. Stacked rows share a hairline. In React: <Disclosure summary hint>.

Order 4421, the returns policy and the carrier’s scan from Tuesday.
An older invoice, because it was for another order.
Sure about the dates; less sure the box was unopened, so it asked the warehouse.

Segmented and meter

Pick one of two to four on a sunk track. A meter is a reading, so it never looks like a key; a screen reader hears a meter, or a progress bar when it says how far a task has got. In React: <Segmented> and <Meter>.

42% of €10.00

Busy keys

A key that started something waits in place: its words sink away and a spinner drops in, the key keeping its size. Another press does nothing until the work ends, and a screen reader hears it is busy. Pass busy only to keys that wait. In React: <Button busy>.

Spinner

Eight bars fading in turn, in the colour and size of the words beside it. Alone it says what is loading to a screen reader; next to words that say it, it stays quiet. With motion turned down the bars hold still. In React: <Spinner label>.

Reading BillingWorking

Loading and reveal

Bones hold the room of what is loading, each as tall as the line it stands for, with a slow light through them. When the content comes, the two fade across each other in one spot, so nothing moves, and the light stops. A load quicker than 150ms never shows bones at all. A screen reader hears Loading once, then the content. In React: <SkeletonReveal>, <Skeleton> and useDelayedLoading.

Last runs
Morning refunds
14 invoices, all paid
08:02
Weekly report
Sent to the team
Mon
Inbox sort
42 mails filed
Yesterday

Rolling numbers

A number that changes in place: only the figures that changed roll, up when it grows, down when it falls, one after another. Figures keep one width, so nothing beside it moves. A screen reader reads the whole number, and the part says the change once in its status line. In React: <RollingNumber value>.

Refunded this month
€1,204.50

Windows

A window over the page for a choice that needs all of someone’s attention. A card grows in from the middle and leaves the same way; on a phone it is a sheet from the foot of the screen. A panel slides in from the right, and a panel opened from it stacks on top while the one behind steps back. The focus moves in, Tab stays inside, and Escape, a press on the dim or the close key shut it, giving the focus back. While a request runs, nothing closes it. In React: <Dialog kind icon tone busy>.

Notes

A short note at the foot of the window that something happened. A new one rises over the last, which steps back; under the pointer or the keyboard the pile opens and every clock stops. Notes go by themselves after 4s. One that needs a look or failed stays until it is closed and dims the page behind it. A screen reader hears each note once, a failure at once. In React: toast() and <Toaster>.

Putting in order

Drag a row by its grip: it lifts, the others glide out of its way over the slot where it will land, and Escape puts it back. From the keyboard the arrow keys, Home and End on a grip move its row at once. A screen reader hears every step with the row’s name and place. In React: <SortableList>.

  • Find the order1
  • Read the returns policy2
  • Check the carrier’s scan3
  • Write the answer4

Picked bar

The bar for what is picked in a list: how many, what can be done with them, and a key to unpick them all. It rises in at the foot of the list’s box with the first pick and sinks away with the last; the count rolls. A screen reader hears the count each time it changes. In React: <PickedBar count onClear>.

Icons

Things are filled: files, people, money, mail, and every action in a menu. What is cut out of a shape lets the tile behind show through. Controls stay plain lines from lucide-react: 16px in a key, 14px in a small key or a chip, 12px in a pill.

Archive
Ask
Bell
BellRing
Bolt
Bot
Building
Bulb
Calendar
Cards
Chart
Chat
Chats
ClipboardCheck
Copy
Doc
Flow
Folder
Globe
Hand
Mail
Mic
Money
Package
Pencil
PersonCard
Play
Pulse
Receipt
Retry
SearchNone
Send
Share
Sheet
Sliders
Ticket
Trash
Truck
Undo
Warehouse
Wrench

Focus

Press Tab on this page. Every piece you can press shows the same ring, 2px of half white with 2px of air, and only from the keyboard, never on a click. A tick box, radio or switch draws it round the control, not the words. Rows in a list and tabs on a track draw it inside their edge. A field brightens its own edge instead. Menus, popovers and windows take the focus when they open and give it back to their key when they close.

All together

A card made only of kit pieces: a title with a pill, a detail, chips and two keys. In React: <Card>.

Refund request
Needs you

Anna Keller, €48.00, bought 41 days ago