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.

The token file holds 81 raw values and 143 jobs. The styles are generated from it and never edited by hand. The site uses jobs only. Checked on every change: tokens and raw values, and contrast for 53 pairs.

How the agent and I work

  1. 01

    Use only the named tokens. If nothing fits, stop and ask.

  2. 02

    A technical change must leave the site looking the same. The agent compares screenshots at three screen widths and reports any difference.

  3. 03

    A visual choice is mine. The agent proposes, shows the evidence, and waits.

  4. 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#0B0B0B
    Use for

    headings, titles and emphasized text on light surfaces.

    Don't use for

    long reading text (use content-prose) or text on dark surfaces.

  • --ba-color-content-secondary#3A3A37
    Use for

    supporting text on light surfaces: intros, card body copy, lists of methods.

    Don't use for

    headings or text on dark surfaces.

  • --ba-color-content-tertiary#5A5A57
    Use for

    labels, metadata, captions and diagram axes on light surfaces.

    Don't use for

    body text that must be read at length.

  • --ba-color-content-prose#2A2A27
    Use for

    long-form reading paragraphs in case studies and the colophon.

    Don't use for

    headings, labels or short UI text.

  • --ba-color-content-inactive#777772
    Use for

    navigation 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 for

    body text or labels, which use content-secondary or content-tertiary.

  • --ba-color-content-on-strong#FFFFFF
    Use for

    text and icons on background-strong.

    Don't use for

    text on the black sections (use the inverse set).

Background 14
  • --ba-color-background-page#FFFFFF
    Use for

    the page itself and plain white surfaces that sit on it (diagram nodes, the Enlarge button, the base of tinted callouts).

    Don't use for

    surfaces inside the black sections or the case-study band.

  • --ba-color-background-subtle#F5F5F3
    Use for

    quiet panels on the page: figures and clips while they load, diagram panels, the Next case link.

    Don't use for

    text, borders, or the case-study facts band (use background-facts).

  • --ba-color-background-muted#ECEBE8
    Use for

    slightly stronger quiet fills: image placeholders in the colophon, title bars and buttons inside a floating panel.

    Don't use for

    whole sections or page backgrounds.

  • --ba-color-background-elevated#FFFFFF
    Use for

    floating panels that sit above the page with a shadow (the voice panel).

    Don't use for

    in-flow sections or cards.

  • --ba-color-background-facts#F5F5F3
    Use for

    the gray facts band under a case study's dark band.

    Don't use for

    figures or panels in the body (use background-subtle).

  • --ba-color-background-strong#0B0B0B
    Use for

    solid dark controls on a light page: the primary button, the voice toggle.

    Don't use for

    whole dark sections (use the inverse set).

  • --ba-color-background-navrgba(255, 255, 255, .92)
    Use for

    the translucent sticky nav at rest.

    Don't use for

    opaque surfaces or the nav on case-study pages (use inverse-background-page).

  • --ba-color-background-nav-scrolledrgba(255, 255, 255, .72)
    Use for

    the sticky nav once the page has scrolled.

    Don't use for

    anything that is not the scrolled nav.

  • --ba-color-background-glassrgba(255, 255, 255, .55)
    Use for

    the fill of a frosted card that sits over a soft color glow.

    Don't use for

    cards on a plain background, where it reads as a flat gray.

  • --ba-color-background-glow-1rgba(0, 174, 239, .12)
    Use for

    the first and largest soft color glow behind a group of frosted cards.

    Don't use for

    fills of shapes or text; it only works as a blurred radial glow.

  • --ba-color-background-glow-2rgba(236, 0, 140, .09)
    Use for

    the second soft color glow behind a group of frosted cards.

    Don't use for

    fills of shapes or text; it only works as a blurred radial glow.

  • --ba-color-background-glow-3rgba(255, 194, 14, .09)
    Use for

    the third soft color glow behind a group of frosted cards.

    Don't use for

    fills of shapes or text; it only works as a blurred radial glow.

  • --ba-color-background-placeholder-stripe-1#F5F5F3
    Use for

    the first stripe of a light clip placeholder.

    Don't use for

    anything other than the striped placeholder.

  • --ba-color-background-placeholder-stripe-2#ECEBE8
    Use for

    the second stripe of a light clip placeholder.

    Don't use for

    anything other than the striped placeholder.

Border 5
  • --ba-color-border-strong#0B0B0B
    Use for

    structural rules that divide the page: under the nav, between sections, around buttons.

    Don't use for

    quiet dividers inside a section (use border-subtle).

  • --ba-color-border-subtle#DADAD6
    Use for

    quiet dividers and outlines on light surfaces: figure frames, rail lines, pills.

    Don't use for

    rules that separate sections.

  • --ba-color-border-glassrgba(255, 255, 255, .92)
    Use for

    the light edge of a frosted card.

    Don't use for

    borders on solid surfaces.

  • --ba-color-border-focus#0B0B0B
    Use for

    the keyboard focus ring on light pages and light surfaces, in ink so it reaches 3:1 on white.

    Don't use for

    focus on the black home sections or the case-study band (use inverse-border-focus).

  • --ba-color-border-current#0B0B0B
    Use for

    the mark beside the current item in a list of links, such as the rail on /system.

    Don't use for

    the 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 for

    the shadow under floating panels and the voice orb.

    Don't use for

    cards that sit in the page flow.

  • --ba-color-shadow-card-nearrgba(0, 0, 0, .04)
    Use for

    the tight shadow directly under a frosted card.

    Don't use for

    floating panels.

  • --ba-color-shadow-card-farrgba(0, 0, 0, .07)
    Use for

    the wide soft shadow under a frosted card.

    Don't use for

    floating panels.

Inverse 13
  • --ba-color-inverse-background-page#0B0B0B
    Use for

    the 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 for

    cards or clip frames on those surfaces (use inverse-background-raised).

  • --ba-color-inverse-background-raised#141413
    Use for

    cards 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 for

    light surfaces.

  • --ba-color-inverse-background-placeholder-stripe-1#141413
    Use for

    the first stripe of a clip placeholder on a black section.

    Don't use for

    anything other than the striped placeholder.

  • --ba-color-inverse-background-placeholder-stripe-2#1A1A19
    Use for

    the second stripe of a clip placeholder on a black section.

    Don't use for

    anything other than the striped placeholder.

  • --ba-color-inverse-border-subtle#3A3A37
    Use for

    card and clip outlines inside a black home section, and the rule under the nav on case-study pages.

    Don't use for

    borders on light surfaces.

  • --ba-color-inverse-border-media#5A5A57
    Use for

    the border around a clip or image on a dark surface.

    Don't use for

    hairlines between content on dark surfaces (use inverse-border-subtle).

  • --ba-color-inverse-border-focus#00AEEF
    Use for

    the 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 for

    decoration; it shares the cyan value but is a functional token, separate from brand-cyan.

  • --ba-color-inverse-border-controlrgba(255, 255, 255, .4)
    Use for

    outlines of small tags (pills) on black sections.

    Don't use for

    dividers between blocks.

  • --ba-color-inverse-border-linkrgba(255, 255, 255, .55)
    Use for

    the underline rule of a text link on black sections.

    Don't use for

    outlines or dividers.

  • --ba-color-inverse-border-dividerrgba(255, 255, 255, .25)
    Use for

    the rule above the footer on black.

    Don't use for

    outlines of controls.

  • --ba-color-inverse-content-primary#FFFFFF
    Use for

    headings 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 for

    text on light surfaces.

  • --ba-color-inverse-content-secondary#DADAD6
    Use for

    body text and icons on black home sections, and the one-line chapter descriptions in a case study's title band.

    Don't use for

    labels or metadata (use inverse-content-tertiary).

  • --ba-color-inverse-content-tertiary#B5B4AF
    Use for

    labels and metadata on black home sections, and the back link, metadata and chapter numbers in a case study's title band.

    Don't use for

    body text.

Overlay 15
  • --ba-color-overlay-background-pagergba(11, 11, 11, .96)
    Use for

    the full-screen zoom dialog and its edge fades.

    Don't use for

    controls inside it.

  • --ba-color-overlay-background-controlrgba(11, 11, 11, .72)
    Use for

    buttons drawn over media: the clip play/pause toggle and the zoom arrows.

    Don't use for

    the dialog background.

  • --ba-color-overlay-background-control-hoverrgba(11, 11, 11, .92)
    Use for

    a zoom arrow under the pointer.

    Don't use for

    resting controls.

  • --ba-color-overlay-background-closergba(11, 11, 11, .6)
    Use for

    the zoom dialog's close button.

    Don't use for

    other controls.

  • --ba-color-overlay-background-hintrgba(11, 11, 11, .72)
    Use for

    the drag hint chip in the zoom dialog.

    Don't use for

    buttons.

  • --ba-color-overlay-background-board#FFFFFF
    Use for

    the backing behind an enlarged board image.

    Don't use for

    the dialog itself.

  • --ba-color-overlay-border-controlrgba(255, 255, 255, .55)
    Use for

    the outline of a zoom arrow.

    Don't use for

    the clip toggle (use overlay-border-toggle).

  • --ba-color-overlay-border-togglergba(255, 255, 255, .4)
    Use for

    the outline of the clip play/pause toggle.

    Don't use for

    zoom dialog controls.

  • --ba-color-overlay-border-closergba(255, 255, 255, .4)
    Use for

    the outline of the zoom close button.

    Don't use for

    other controls.

  • --ba-color-overlay-border-hintrgba(255, 255, 255, .25)
    Use for

    the outline of the drag hint chip.

    Don't use for

    buttons.

  • --ba-color-overlay-border-strong#FFFFFF
    Use for

    hovered control outlines and the focus ring inside the zoom dialog.

    Don't use for

    resting outlines.

  • --ba-color-overlay-content-primary#FFFFFF
    Use for

    icons and text over media and in the zoom dialog.

    Don't use for

    text on the page.

  • --ba-color-overlay-trackrgba(255, 255, 255, .14)
    Use for

    the zoom dialog's scroll track.

    Don't use for

    dividers.

  • --ba-color-overlay-thumbrgba(255, 255, 255, .72)
    Use for

    the zoom dialog's scroll thumb at rest.

    Don't use for

    text.

  • --ba-color-overlay-thumb-hover#FFFFFF
    Use for

    the scroll thumb while the track is hovered.

    Don't use for

    resting state.

Diagram 7
  • --ba-color-diagram-axis#5A5A57
    Use for

    axis lines and arrowheads of a matrix diagram.

    Don't use for

    node outlines (use border-subtle).

  • --ba-color-diagram-marker-muted#B5B4AF
    Use for

    unlabeled idea markers on a map diagram.

    Don't use for

    labeled items, which carry a brand color.

  • --ba-color-diagram-sketch-bubble#D9F3FD
    Use for

    the chat bubble in a wordless diagram sketch.

    Don't use for

    UI surfaces.

  • --ba-color-diagram-sketch-line#B5B4AF
    Use for

    stand-in text lines and connectors inside a diagram sketch.

    Don't use for

    real text.

  • --ba-color-diagram-sketch-line-subtle#DADAD6
    Use for

    quieter stand-in lines and box outlines inside a diagram sketch.

    Don't use for

    real borders.

  • --ba-color-diagram-sketch-surface#ECEBE8
    Use for

    the input field shape inside a diagram sketch.

    Don't use for

    UI surfaces.

  • --ba-color-diagram-sketch-node#FFFFFF
    Use for

    node boxes inside a diagram sketch.

    Don't use for

    UI surfaces.

Voice 6
  • --ba-color-voice-content-pending#B5B4AF
    Use for

    caption words not yet spoken.

    Don't use for

    placeholder text in inputs.

  • --ba-color-voice-titlebar-dot#DADAD6
    Use for

    the inactive window dots in the voice panel title bar.

    Don't use for

    buttons.

  • --ba-color-voice-close-background#ED1C24
    Use for

    the voice panel's close dot.

    Don't use for

    errors or warnings; it shares the red value but is separate from brand-red.

  • --ba-color-voice-highlight#FFC20E
    Use for

    the word being spoken in the caption.

    Don't use for

    warnings; it shares the amber value but is separate from brand-amber.

  • --ba-color-voice-orb-ring-innerrgba(0, 0, 0, .07)
    Use for

    the inner pulse ring of the playing orb.

    Don't use for

    other shadows.

  • --ba-color-voice-orb-ring-outerrgba(0, 0, 0, .04)
    Use for

    the outer pulse ring of the playing orb.

    Don't use for

    other shadows.

Brand 5
  • --ba-color-brand-cyan#00AEEF
    Use for

    identity accents: section swatches, a case study's accent, diagram categories, the mark.

    Don't use for

    links, focus, info or any state; brand colors carry no functional meaning.

  • --ba-color-brand-red#ED1C24
    Use for

    identity accents: section swatches, a case study's accent, diagram categories.

    Don't use for

    errors, destructive actions or alerts; brand colors carry no functional meaning.

  • --ba-color-brand-green#39B54A
    Use for

    identity accents: section swatches, a case study's accent, diagram categories.

    Don't use for

    success or confirmation; brand colors carry no functional meaning.

  • --ba-color-brand-magenta#EC008C
    Use for

    identity accents: section swatches, a case study's accent, diagram categories.

    Don't use for

    any state or status; brand colors carry no functional meaning.

  • --ba-color-brand-amber#FFC20E
    Use for

    identity accents: section swatches, diagram categories, the color glow behind frosted cards.

    Don't use for

    warnings 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 metadataIBM Plex Mono
  • display-hero
    Barlow Condensed · 52 to 68px · 700 · 0.95 · −0.01em

    the two largest lines on the site: the home hero claim and the Let's talk sign-off.

  • page-title
    Barlow Condensed · 36 to 68px · 600 · 1.05 · −0.01em

    the title of a long-form page, such as a case study, in its title band.

  • section-title
    Barlow Condensed · 36 to 52px · 600 · 1.05 · −0.01em

    home section titles and the titles of plain pages: the colophon, the design system, the 404 page.

  • section-heading
    Barlow Condensed · 32px · 600 · 1.05

    section headings inside a long-form page, chapter titles in a case study's title band and section headings on the design-system page.

  • figure-heading
    Barlow Condensed · 22px · 600 · 1.2

    names in diagrams, numbers in the facts band, the names of token sets and subtitles one level below a section heading.

  • greeting
    Barlow · 26px · 500 · 1.2

    the hero greeting above the claim.

  • card-title
    Barlow · 26px · 700 · 1.2

    work card titles on the home page.

  • lead
    Barlow · 22px · 500 · 1.5

    lead lines at 22px: pull-lines, the Let's talk question and the title in the Next link.

  • item-heading
    Barlow · 17px · 600 · 1.2

    small headings over a short block: the What I bring cards and community items.

  • reading
    Barlow · 17px · 400 · 1.6

    reading text: paragraphs on long-form pages and the colophon, intros, method lists, closing statements and the page default.

  • compact
    Barlow · 15px · 400 · 1.5

    compact interface and card text: card paragraphs, community and What I bring items, diagram lines, chapter lines in the case band.

  • section-label
    IBM Plex Mono · 15px · 400 · 1 · 0.08em · uppercase

    the uppercase mono label beside the swatch above a section title, and in a case study's title band.

  • label
    IBM Plex Mono · 11px · 400 · 1.2 · 0.08em · uppercase

    short uppercase mono labels on one line: field names, diagram quadrant labels, set and sub-section labels, the Next label.

  • control
    IBM Plex Mono · 12px · 400 · 1.2 · 0.06em · uppercase

    uppercase mono interface text: nav links, buttons, card and rail links, the voice toggle, the zoom hint.

  • meta
    IBM Plex Mono · 12px · 400 · 1.5

    mono lines that can wrap: metadata under titles, figure captions, the clip placeholder, fact lists, token names and values, the case title in the Next link.

  • tag
    IBM Plex Mono · 12px · 400 · 1.2

    single-line mono pieces: pills, the footer, counts and numbers, the location, diagram legends.

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-label8px
    Use for

    the 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 for

    rows of a list (use space-tight), or padding inside a pill or control (use a scale step).

  • --ba-space-tight16px
    Use for

    a tight group: rows of a list, links in a row, buttons side by side, a rule and the number under it.

    Don't use for

    cards in a grid (use space-group) or pills (use space-label).

  • --ba-space-group24px
    Use for

    a 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 for

    blocks that stand apart (use space-block), or padding inside a card (use a scale step).

  • --ba-space-paragraph0.5lh · 0.8em without lh
    Use for

    between 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 for

    compact text, lists or anything that is not a paragraph.

  • --ba-space-block48px
    Use for

    between 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 for

    sections with headings (use space-section) or cards in a grid (use space-group).

  • --ba-space-section80px
    Use for

    between 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 for

    the last content on a page before Let's talk (use space-page-end) or stacked blocks (use space-block).

  • --ba-space-band64px
    Use for

    the top of a band inside a page: each home section, the plain pages.

    Don't use for

    a band's bottom (use space-section) or a case study's tighter title band (use a scale step).

  • --ba-space-page-end96px
    Use for

    the bottom of the last content on a page, before the Let's talk section. The largest space on the site.

    Don't use for

    any other band bottom (use space-section) or between pieces of content.

References

← Colophon

Let's talk.

Building something complex that people need to understand and trust?

Tell me what your team is trying to make possible. I'm based in New York and open to new roles, collaborations or simply a conversation.