Design system
Design system
This site runs on a small design system. I built it to find out what a design system needs when an agent is applying it, so every rule is written for both a designer and an agent to read.
Approach
How it is organized
Everything starts in one token file, written in the format of the W3C Design Tokens Community Group. It has two layers. The first holds the raw values: grays, five brand colors, type sizes, widths. The second gives each value a job, such as page background or reading text. Only the second layer is used in the site's code. Each name carries one sentence on what it is for and one on what it is not for.
How the agent and I work
- 01
Use only the named tokens. If nothing fits, stop and ask.
- 02
A technical change must leave the site looking the same. The agent compares screenshots at three screen widths and reports any difference.
- 03
A visual choice is mine. The agent proposes, shows the evidence, and waits.
- 04
Every report ends with what the agent did differently from the brief, and anything it invented.
Two checks run on every change. One fails if a color, type size or space appears that is not in the token file. The other tests text and background pairs against WCAG AA contrast.
Color
Colors are named for their job, not their look. The five brand colors mark identity only and never carry meaning.
Grays 12
- #0B0B0B
- #141413
- #1A1A19
- #2A2A27
- #3A3A37
- #5A5A57
- #777772
- #B5B4AF
- #DADAD6
- #ECEBE8
- #F5F5F3
- #FFFFFF
Brand 5
- cyan#00AEEF
- red#ED1C24
- green#39B54A
- magenta#EC008C
- amber#FFC20E
Each color with its job 74
Content 6
-
--ba-color-content-primary#0B0B0BUse forheadings, titles and emphasized text on light surfaces.
Don't use forlong reading text (use content-prose) or text on dark surfaces.
-
--ba-color-content-secondary#3A3A37Use forsupporting text on light surfaces: intros, card body copy, lists of methods.
Don't use forheadings or text on dark surfaces.
-
--ba-color-content-tertiary#5A5A57Use forlabels, metadata, captions and diagram axes on light surfaces.
Don't use forbody text that must be read at length.
-
--ba-color-content-prose#2A2A27Use forlong-form reading paragraphs in case studies and the colophon.
Don't use forheadings, labels or short UI text.
-
--ba-color-content-inactive#777772Use fornavigation items that are not the current one (case-study rail); it is the lightest gray that still reaches 4.5:1 on the page.
Don't use forbody text or labels, which use content-secondary or content-tertiary.
-
--ba-color-content-on-strong#FFFFFFUse fortext and icons on background-strong.
Don't use fortext on the black sections (use the inverse set).
Background 14
-
--ba-color-background-page#FFFFFFUse forthe page itself and plain white surfaces that sit on it (diagram nodes, the Enlarge button, the base of tinted callouts).
Don't use forsurfaces inside the black sections or the case-study band.
-
--ba-color-background-subtle#F5F5F3Use forquiet panels on the page: figures and clips while they load, diagram panels, the Next case link.
Don't use fortext, borders, or the case-study facts band (use background-facts).
-
--ba-color-background-muted#ECEBE8Use forslightly stronger quiet fills: image placeholders in the colophon, title bars and buttons inside a floating panel.
Don't use forwhole sections or page backgrounds.
-
--ba-color-background-elevated#FFFFFFUse forfloating panels that sit above the page with a shadow (the voice panel).
Don't use forin-flow sections or cards.
-
--ba-color-background-facts#F5F5F3Use forthe gray facts band under a case study's dark band.
Don't use forfigures or panels in the body (use background-subtle).
-
--ba-color-background-strong#0B0B0BUse forsolid dark controls on a light page: the primary button, the voice toggle.
Don't use forwhole dark sections (use the inverse set).
-
--ba-color-background-navrgba(255, 255, 255, .92)Use forthe translucent sticky nav at rest.
Don't use foropaque surfaces or the nav on case-study pages (use inverse-background-page).
-
--ba-color-background-nav-scrolledrgba(255, 255, 255, .72)Use forthe sticky nav once the page has scrolled.
Don't use foranything that is not the scrolled nav.
-
--ba-color-background-glassrgba(255, 255, 255, .55)Use forthe fill of a frosted card that sits over a soft color glow.
Don't use forcards on a plain background, where it reads as a flat gray.
-
--ba-color-background-glow-1rgba(0, 174, 239, .12)Use forthe first and largest soft color glow behind a group of frosted cards.
Don't use forfills of shapes or text; it only works as a blurred radial glow.
-
--ba-color-background-glow-2rgba(236, 0, 140, .09)Use forthe second soft color glow behind a group of frosted cards.
Don't use forfills of shapes or text; it only works as a blurred radial glow.
-
--ba-color-background-glow-3rgba(255, 194, 14, .09)Use forthe third soft color glow behind a group of frosted cards.
Don't use forfills of shapes or text; it only works as a blurred radial glow.
-
--ba-color-background-placeholder-stripe-1#F5F5F3Use forthe first stripe of a light clip placeholder.
Don't use foranything other than the striped placeholder.
-
--ba-color-background-placeholder-stripe-2#ECEBE8Use forthe second stripe of a light clip placeholder.
Don't use foranything other than the striped placeholder.
Border 5
-
--ba-color-border-strong#0B0B0BUse forstructural rules that divide the page: under the nav, between sections, around buttons.
Don't use forquiet dividers inside a section (use border-subtle).
-
--ba-color-border-subtle#DADAD6Use forquiet dividers and outlines on light surfaces: figure frames, rail lines, pills.
Don't use forrules that separate sections.
-
--ba-color-border-glassrgba(255, 255, 255, .92)Use forthe light edge of a frosted card.
Don't use forborders on solid surfaces.
-
--ba-color-border-focus#0B0B0BUse forthe keyboard focus ring on light pages and light surfaces, in ink so it reaches 3:1 on white.
Don't use forfocus on the black home sections or the case-study band (use inverse-border-focus).
-
--ba-color-border-current#0B0B0BUse forthe mark beside the current item in a list of links, such as the rail on /system.
Don't use forthe keyboard focus ring (use border-focus) or rules that divide the page (use border-strong).
Shadow 3
-
--ba-color-shadow-floatingrgba(0, 0, 0, .18)Use forthe shadow under floating panels and the voice orb.
Don't use forcards that sit in the page flow.
-
--ba-color-shadow-card-nearrgba(0, 0, 0, .04)Use forthe tight shadow directly under a frosted card.
Don't use forfloating panels.
-
--ba-color-shadow-card-farrgba(0, 0, 0, .07)Use forthe wide soft shadow under a frosted card.
Don't use forfloating panels.
Inverse 13
-
--ba-color-inverse-background-page#0B0B0BUse forthe black sections of the home page (Selected work, My story, Let's talk) and the title band at the top of a case study, with the nav above it.
Don't use forcards or clip frames on those surfaces (use inverse-background-raised).
-
--ba-color-inverse-background-raised#141413Use forcards and clip frames inside a black home section, and the hero clip frame in a case study's title band while it loads.
Don't use forlight surfaces.
-
--ba-color-inverse-background-placeholder-stripe-1#141413Use forthe first stripe of a clip placeholder on a black section.
Don't use foranything other than the striped placeholder.
-
--ba-color-inverse-background-placeholder-stripe-2#1A1A19Use forthe second stripe of a clip placeholder on a black section.
Don't use foranything other than the striped placeholder.
-
--ba-color-inverse-border-subtle#3A3A37Use forcard and clip outlines inside a black home section, and the rule under the nav on case-study pages.
Don't use forborders on light surfaces.
-
--ba-color-inverse-border-media#5A5A57Use forthe border around a clip or image on a dark surface.
Don't use forhairlines between content on dark surfaces (use inverse-border-subtle).
-
--ba-color-inverse-border-focus#00AEEFUse forthe keyboard focus ring inside the black home sections (Selected work, My story, Let's talk, footer) and in a case study's title band and the nav above it.
Don't use fordecoration; it shares the cyan value but is a functional token, separate from brand-cyan.
-
--ba-color-inverse-border-controlrgba(255, 255, 255, .4)Use foroutlines of small tags (pills) on black sections.
Don't use fordividers between blocks.
-
--ba-color-inverse-border-linkrgba(255, 255, 255, .55)Use forthe underline rule of a text link on black sections.
Don't use foroutlines or dividers.
-
--ba-color-inverse-border-dividerrgba(255, 255, 255, .25)Use forthe rule above the footer on black.
Don't use foroutlines of controls.
-
--ba-color-inverse-content-primary#FFFFFFUse forheadings and emphasized text on black home sections, and the title, chapter titles and nav text in a case study's title band.
Don't use fortext on light surfaces.
-
--ba-color-inverse-content-secondary#DADAD6Use forbody text and icons on black home sections, and the one-line chapter descriptions in a case study's title band.
Don't use forlabels or metadata (use inverse-content-tertiary).
-
--ba-color-inverse-content-tertiary#B5B4AFUse forlabels and metadata on black home sections, and the back link, metadata and chapter numbers in a case study's title band.
Don't use forbody text.
Overlay 15
-
--ba-color-overlay-background-pagergba(11, 11, 11, .96)Use forthe full-screen zoom dialog and its edge fades.
Don't use forcontrols inside it.
-
--ba-color-overlay-background-controlrgba(11, 11, 11, .72)Use forbuttons drawn over media: the clip play/pause toggle and the zoom arrows.
Don't use forthe dialog background.
-
--ba-color-overlay-background-control-hoverrgba(11, 11, 11, .92)Use fora zoom arrow under the pointer.
Don't use forresting controls.
-
--ba-color-overlay-background-closergba(11, 11, 11, .6)Use forthe zoom dialog's close button.
Don't use forother controls.
-
--ba-color-overlay-background-hintrgba(11, 11, 11, .72)Use forthe drag hint chip in the zoom dialog.
Don't use forbuttons.
-
--ba-color-overlay-background-board#FFFFFFUse forthe backing behind an enlarged board image.
Don't use forthe dialog itself.
-
--ba-color-overlay-border-controlrgba(255, 255, 255, .55)Use forthe outline of a zoom arrow.
Don't use forthe clip toggle (use overlay-border-toggle).
-
--ba-color-overlay-border-togglergba(255, 255, 255, .4)Use forthe outline of the clip play/pause toggle.
Don't use forzoom dialog controls.
-
--ba-color-overlay-border-closergba(255, 255, 255, .4)Use forthe outline of the zoom close button.
Don't use forother controls.
-
--ba-color-overlay-border-hintrgba(255, 255, 255, .25)Use forthe outline of the drag hint chip.
Don't use forbuttons.
-
--ba-color-overlay-border-strong#FFFFFFUse forhovered control outlines and the focus ring inside the zoom dialog.
Don't use forresting outlines.
-
--ba-color-overlay-content-primary#FFFFFFUse foricons and text over media and in the zoom dialog.
Don't use fortext on the page.
-
--ba-color-overlay-trackrgba(255, 255, 255, .14)Use forthe zoom dialog's scroll track.
Don't use fordividers.
-
--ba-color-overlay-thumbrgba(255, 255, 255, .72)Use forthe zoom dialog's scroll thumb at rest.
Don't use fortext.
-
--ba-color-overlay-thumb-hover#FFFFFFUse forthe scroll thumb while the track is hovered.
Don't use forresting state.
Diagram 7
-
--ba-color-diagram-axis#5A5A57Use foraxis lines and arrowheads of a matrix diagram.
Don't use fornode outlines (use border-subtle).
-
--ba-color-diagram-marker-muted#B5B4AFUse forunlabeled idea markers on a map diagram.
Don't use forlabeled items, which carry a brand color.
-
--ba-color-diagram-sketch-bubble#D9F3FDUse forthe chat bubble in a wordless diagram sketch.
Don't use forUI surfaces.
-
--ba-color-diagram-sketch-line#B5B4AFUse forstand-in text lines and connectors inside a diagram sketch.
Don't use forreal text.
-
--ba-color-diagram-sketch-line-subtle#DADAD6Use forquieter stand-in lines and box outlines inside a diagram sketch.
Don't use forreal borders.
-
--ba-color-diagram-sketch-surface#ECEBE8Use forthe input field shape inside a diagram sketch.
Don't use forUI surfaces.
-
--ba-color-diagram-sketch-node#FFFFFFUse fornode boxes inside a diagram sketch.
Don't use forUI surfaces.
Voice 6
-
--ba-color-voice-content-pending#B5B4AFUse forcaption words not yet spoken.
Don't use forplaceholder text in inputs.
-
--ba-color-voice-titlebar-dot#DADAD6Use forthe inactive window dots in the voice panel title bar.
Don't use forbuttons.
-
--ba-color-voice-close-background#ED1C24Use forthe voice panel's close dot.
Don't use forerrors or warnings; it shares the red value but is separate from brand-red.
-
--ba-color-voice-highlight#FFC20EUse forthe word being spoken in the caption.
Don't use forwarnings; it shares the amber value but is separate from brand-amber.
-
--ba-color-voice-orb-ring-innerrgba(0, 0, 0, .07)Use forthe inner pulse ring of the playing orb.
Don't use forother shadows.
-
--ba-color-voice-orb-ring-outerrgba(0, 0, 0, .04)Use forthe outer pulse ring of the playing orb.
Don't use forother shadows.
Brand 5
-
--ba-color-brand-cyan#00AEEFUse foridentity accents: section swatches, a case study's accent, diagram categories, the mark.
Don't use forlinks, focus, info or any state; brand colors carry no functional meaning.
-
--ba-color-brand-red#ED1C24Use foridentity accents: section swatches, a case study's accent, diagram categories.
Don't use forerrors, destructive actions or alerts; brand colors carry no functional meaning.
-
--ba-color-brand-green#39B54AUse foridentity accents: section swatches, a case study's accent, diagram categories.
Don't use forsuccess or confirmation; brand colors carry no functional meaning.
-
--ba-color-brand-magenta#EC008CUse foridentity accents: section swatches, a case study's accent, diagram categories.
Don't use forany state or status; brand colors carry no functional meaning.
-
--ba-color-brand-amber#FFC20EUse foridentity accents: section swatches, diagram categories, the color glow behind frosted cards.
Don't use forwarnings or highlights of state; brand colors carry no functional meaning.
Type
Three typefaces, ten sizes and sixteen text styles. Barlow Condensed for titles, Barlow for text, IBM Plex Mono for labels.
- TitlesBarlow Condensed
- TextBarlow
- Labels and metadata
- display-hero
- page-title
- section-title
- section-heading
- figure-heading
- greeting
- card-title
- lead
- item-heading
- reading
- compact
- section-label
- label
- control
- meta
- tag
Spacing
Space shows how things relate: the closer two pieces sit, the more they belong together. Each level is about three times the one below it, and nothing between two pieces of content is more than 96px apart.
Scale 11
- 4
- 8
- 12
- 16
- 24
- 32
- 40
- 48
- 64
- 80
- 96
Each space with its job 8
-
--ba-space-label8pxUse forthe smallest space between things: a label and its own text, an icon, swatch or dot and the text beside it, pills and tags in a row, around an inline separator.
Don't use forrows of a list (use space-tight), or padding inside a pill or control (use a scale step).
-
--ba-space-tight16pxUse fora tight group: rows of a list, links in a row, buttons side by side, a rule and the number under it.
Don't use forcards in a grid (use space-group) or pills (use space-label).
-
--ba-space-group24pxUse fora group, and a heading and what it introduces: cards in a grid, the items in a card or column, a section head and its content, a rule and the text under it, the space around a figure or pull-line in the text flow.
Don't use forblocks that stand apart (use space-block), or padding inside a card (use a scale step).
-
--ba-space-paragraph0.5lh · 0.8em without lhUse forbetween paragraphs of reading text: half a reading line (13.6px at 17px). Older browsers without the lh unit get 0.8em, which is the same at the reading size.
Don't use forcompact text, lists or anything that is not a paragraph.
-
--ba-space-block48pxUse forbetween blocks: colophon blocks, a clip beside its text, the copy beside the hero mark, community items, the Next link after the last section, the facts strip and the case body.
Don't use forsections with headings (use space-section) or cards in a grid (use space-group).
-
--ba-space-section80pxUse forbetween sections that have their own headings, the gutter between two columns side by side on wide screens, and the bottom of a band inside a page.
Don't use forthe last content on a page before Let's talk (use space-page-end) or stacked blocks (use space-block).
-
--ba-space-band64pxUse forthe top of a band inside a page: each home section, the plain pages.
Don't use fora band's bottom (use space-section) or a case study's tighter title band (use a scale step).
-
--ba-space-page-end96pxUse forthe bottom of the last content on a page, before the Let's talk section. The largest space on the site.
Don't use forany other band bottom (use space-section) or between pieces of content.
References
- Christine Vallaure, Building an AI-ready design system. The starting point for the token tiers and the rules written for an agent.
- Design Tokens Community Group, Design Tokens format, 2025.10. The format of the token file.
- Ellen Lupton, Thinking with Type, 3rd edition. Line length, line height and spacing.
- W3C, Web Content Accessibility Guidelines 2.2. Contrast and text spacing.