The goal is a work tool that looks calm and expensive: a neutral frame, quiet type, and colour only where it means something. These are the exact values I give an agent before it writes any UI.
How to get there with an agent
- Start from a reference, not from taste. Pick a product that already looks the way you want. Have the agent write its system into
docs/DESIGN.mdwith exact numbers: colours, type scale, row heights, radii, shadows, motion. Build only from that doc. - Put tokens in one file (
tokens.css) as CSS variables, with light and dark set side by side. Components use variables only, never raw hex values. - Install the taste skill so every agent session inherits the bans:
npx skills add Leonxlnx/taste-skill
- Check against the reference with screenshots. Use Playwright to capture both themes at desktop and phone width, and compare them side by side with the reference. Fix the differences, then ship.
Principles
- Separate with fills, not lines. No horizontal dividers. Use a darker sidebar, a lighter main panel, white cards with a soft shadow, and spacing.
- The chrome is black and white. Colour goes only into data: status, priority, labels, charts. It never goes on the sidebar, headings, buttons or backgrounds.
- One accent. Use it for the primary brand moment and for escalations only, never for decoration.
- Dense, but never cramped. Rows are 28 px, body text is 14 px, and screens are scannable at a glance.
- Speed is part of the look. Active states are instant, pages swap in under 100 ms, and skeletons appear only for slow loads.
Colour
Neutral, slightly warm greys. Ink is one colour at different opacities, so text, icons and lines always match.
| token | light | dark | use |
|---|---|---|---|
--side |
#ececE7 |
#0c0c0b |
sidebar and app background |
--page / --panel |
#f7f7f5 |
#121211 |
main panel |
--raised |
#ffffff |
#1a1a19 |
cards, popovers, the active nav item |
--sunken |
#efefeb |
#0d0d0c |
code, wells, secondary buttons |
--hover |
#e9e9e4 |
#242422 |
hover fill, search field |
--ink |
#1c1c1a |
#f3f3f0 |
primary text, primary button |
--ink-2 |
ink at 62% | ink at 62% | secondary text, nav items |
--ink-3 |
ink at 40% | ink at 38% | labels, captions, table headers |
--line-2 |
ink at 16% | ink at 15% | the rare border (inputs, kbd) |
--tag-bg |
ink at 5.5% | chips, tags, segmented controls |
Accent: a single strong hue, such as #e5501b orange or #dc1928 red, with a soft version at 9 to 10% opacity for selection and highlighted rows.
Status: info #2f6fde, success #2e9d62, warning #c98a12, danger #d6402f, each with a soft fill at 10 to 13%.
Meaning palette for data. Build nine hues at the same OKLCH lightness and chroma, so no single hue shouts. Each hue gets a solid for icons and bars, a darker ink for chip text (contrast of 6 or more on cards), and a soft fill of the solid at 13% in light mode and 17% in dark.
| hue | light solid | light ink | means |
|---|---|---|---|
| red | #d26157 |
#923b34 |
urgent, blocked, late, over budget |
| orange | #cc6c25 |
#8d4302 |
high priority, due |
| amber | #b47e00 |
#7c5200 |
in progress, question, due soon |
| green | #38a157 |
#146d34 |
done, approved, within budget |
| teal | #00a39d |
#006f6a |
identity |
| blue | #388ddd |
#175d9b |
info, mention |
| violet | #9075d7 |
#614a96 |
in review |
| pink | #c86095 |
#8a3a64 |
identity |
| slate | #7a8b9e |
#4e5c6b |
to do, low priority, "everything else" in charts |
Every new feature maps onto these meanings instead of inventing a colour. User labels are assigned a hue by hashing their name.
Type
- Font: Geist and Geist Mono for numbers in deltas and code. Swap in one brand font, like Geologica, if the product needs its own voice. Use one family only.
- Base: 14 px, weight 420, line height 1.4. Turn on
font-feature-settings: "ss01", "tnum"so numbers line up. - Scale: 11.5 for section labels, table headers and counters; 12 to 12.5 for chips and secondary text; 13 to 13.5 for nav and rows; 14 for body; 24 for the page title; 26 for stat values; 28 for sign-in headings.
- Headings: weight 460 to 500, never bold, with
letter-spacing: -0.02em(-0.03em at 28 px). Usetext-wrap: balanceon headings andprettyon paragraphs. - Section labels are small and grey (11.5 to 12 px,
--ink-3), not uppercase eyebrows.
Spacing and sizes
| element | value |
|---|---|
| sidebar | 244 px wide, padding 10 px, rows 28 to 30 px, gap 2 px, section labels 34 px tall |
| main panel | inset 8 px from the window edge, radius 12, card shadow |
| top bar | 48 px: breadcrumbs on the left, actions on the right |
| filter bar | 40 px, gap 6 px |
| content | max width 980 px, padding 18 / 32 / 64 px |
| card | padding 14 / 16 px, radius 12 |
| grids | 2, 3 or 4 columns, gap 12 px |
| buttons | 32 px pill (26 px small); icon buttons 26 × 26, radius 6 |
| chips / tags | 22 px / 20 px, radius 5 / 4, filled, never outlined |
| segmented control | 24 px buttons inside a 2 px padded track |
| radii | 4 for tags, 8 for inputs and cards inside cards, 12 for panels and popovers, pill for buttons |
Shadows instead of borders:
--card-shadow: 0 1px 2px rgb(28 28 26 / .05), 0 0 0 1px rgb(28 28 26 / .06);
--pop-shadow: 0 12px 32px -8px rgb(28 28 26 / .22), 0 0 0 1px rgb(28 28 26 / .08);
In dark mode the card shadow becomes a 1 px ring at 7% ink.
Dashboard pieces
- Stat tile: a white card padded 14 / 16. The label is 12 px
--ink-3. The value is 26 px at weight 460, letter spacing -0.02em, with tabular numbers and a 13 px grey unit. The delta is 11.5 px mono. - Table: no row borders. Headers are 32 px tall, 11.5 px
--ink-3, weight 400. Cells are padded 10 px. Rows get a fill on hover, and the highlighted row gets the soft accent. - Charts: inline SVG with non-scaling strokes. Dots and labels are HTML positioned in percent, so text stays readable on a phone. Use two colours only: the thing that matters in the accent, everything else in slate. No legends when a direct label works.
- Lists: rows sit in a sunken well, and the hovered row turns white.
- Active nav item: white fill and card shadow, like a small raised card. Don't use a coloured bar or bold text.
- Empty state: centred, 48 px of padding, one 14 px line in ink and one grey line. No illustrations.
- Avatars: people are circles, agents and bots are rounded squares, filled with soft tints.
Motion and feel
- Timings: 90 ms for press, 140 ms for state changes, 240 ms for panels, all on
cubic-bezier(.16, 1, .3, 1). - Navigation highlights on pointerdown with no fade, because a 140 ms fade reads as lag.
- Skeletons appear only after 120 ms, so fast loads never flash. The box is laid out from the first frame, so nothing shifts.
- Prefetch links on hover (about 65 ms) and touchstart. Swap the content client-side with a thin top progress bar.
- Hit areas: small controls get an invisible target of at least 32 px (44 px on touch) without changing the layout. Long lists are virtualised.
- Icons: 15 px line icons with a 1.6 stroke and round caps, in
currentColor.
Banned
- Horizontal divider lines, coloured side stripes on cards, outlined oval pills.
- Bold for unread items, unread dots, "live" or "synced" indicators, status dots as decoration.
- Gradients, glows, beams, scroll reveals, counting numbers.
- Uppercase eyebrow labels, tiny captions under everything, a theme toggle in the sidebar.
- More than one accent, and colour on chrome.
- Fake names in demo data. Use roles like "Design lead" or "Build agent".


