Skip to content
Inspireca Design

Design Skill · Minimal

Swiss Grid

A strict, high-contrast style after the Swiss poster tradition: square corners, heavy rules, a visible grid, black and white with one red.

Download
Source:
Inspireca Design original
Scheme:
Light and dark
Typeface:
Helvetica Neue

Written by Inspireca Design (drafted with AI assistance)Updated Not yet reviewed by an editor

Overview

  • Sample page

  • Forms and data

  • On a phone

Three views of one sample page, drawn live from this style’s tokens. They are not screenshots of a website. Open any of them to see it full size and switch colour scheme.

Order made visible. The grid, the rules and the type are the design; there is no ornament to hide behind. It follows the Swiss graphic tradition of objective, asymmetric layouts in a sans-serif, adapted to screens.

This is an original style written for Inspireca Design. It does not describe or reproduce any existing website. Every value on this page was chosen for this style.

Good for

  • Portfolios and studio sites
  • Event and exhibition pages
  • Documentation that should feel authoritative
  • Bold landing pages with little content

Colours

Black, white and one red. Grey is for captions only. In the dark scheme the roles simply invert and the red is lightened so dark text on it still passes contrast.

BrandThe colours that carry identity and action.

  • Signal redprimary

    The primary action and one emphasis per page.

    Original value · dark scheme: #FF4D3D

  • On redon-primary

    Text on red.

    Original value · dark scheme: #0E0E0E

  • Blueaccent

    Text links.

    Original value · dark scheme: #8FB0FF

NeutralPages, surfaces, text and lines.

  • Whitebackground

    The page.

    Original value · dark scheme: #0E0E0E

  • Grey fieldsurface

    Blocks that need separating from the page: code, quotes, table headers.

    Original value · dark scheme: #1A1A1A

  • Blacktext

    All text.

    Original value · dark scheme: #F5F5F5

  • Greytext-muted

    Captions and metadata.

    Original value · dark scheme: #B5B5B5

  • Ruleborder

    Rules and outlines. Borders are as dark as text on purpose.

    Original value · dark scheme: #F5F5F5

SemanticColours that mean something: success, warning, error.

  • Greensuccess

    Success messages.

    Original value · dark scheme: #6FD08C

  • Amberwarning

    Warnings.

    Original value · dark scheme: #E3B341

  • Reddanger

    Errors.

    Original value · dark scheme: #FF8A80

Text contrastCalculated from the values above with the WCAG formula. Normal text needs 4.5:1.

  • text on background18.9:1 passes AA and AAA
  • text on surface17.2:1 passes AA and AAA
  • text-muted on background7.5:1 passes AA and AAA
  • on-primary on primary5.5:1 passes AA

Components

Each one is drawn from this style’s own tokens, not from Inspireca Design’s. Under each: how it looks and behaves, the tokens it uses, and the CSS that drew it.

  • Primary button

    Actions

    48px tall, 24px side padding, radius 0px, filled with primary and labelled in on-primary, weight 700, upper case. Hover inverts it: white fill, red text, red border. Focus adds a 3px outline in the text colour, offset by 3px.

    Tokens

    CSS for this example
    .button-primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: var(--control-height);
      padding: 0 24px;
      border-radius: var(--control-radius);
      white-space: nowrap;
      font-family: var(--font-body);
      font-size: 0.875rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      background: var(--color-primary);
      color: var(--color-on-primary);
      border: var(--border-width) solid var(--color-primary);
    }

    Works with this style’s CSS variables file, in the DESIGN.md section.

  • Secondary button

    Actions

    Same size as the primary button. Transparent background, 2px border in the border colour, text in the text colour. Hover fills it with the surface colour. Never place two primary buttons side by side; the second action is always this one.

    Tokens

    CSS for this example
    .button-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: var(--control-height);
      padding: 0 24px;
      border-radius: var(--control-radius);
      white-space: nowrap;
      font-family: var(--font-body);
      font-size: 0.875rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      background: transparent;
      color: var(--color-text);
      border: var(--border-width) solid var(--color-border);
    }

    Works with this style’s CSS variables file, in the DESIGN.md section.

  • Text input

    Forms

    48px tall, outline style, radius 0px, label above in the small size. Focus changes the border to the primary colour and adds a visible ring. Errors show the danger colour, an icon and a sentence under the field.

    Tokens

    CSS for this example
    .field-label {
      display: block;
      margin-bottom: 6px;
      font-family: var(--font-body);
      font-size: var(--text-small);
      line-height: var(--leading-small);
      letter-spacing: var(--tracking-small);
      font-weight: 500;
      color: var(--color-text);
    }
    
    .field {
      display: flex;
      align-items: center;
      width: 100%;
      height: var(--control-height);
      font-family: var(--font-body);
      font-size: 0.9375rem;
      color: var(--color-text);
      padding: 0 14px;
      background: var(--color-surface);
      border: var(--border-width) solid var(--color-border);
      border-radius: var(--control-radius);
    }
    
    .field::placeholder {
      color: var(--color-text-muted);
    }

    Works with this style’s CSS variables file, in the DESIGN.md section.

  • Tabs

    Navigation

    A row of text labels, 48px tall. The selected tab has a 2px line in the primary colour under it. Arrow keys move between tabs. The line moves to the selected tab; nothing else on the page shifts.

    Tokens

    CSS for this example
    .tabs {
      display: flex;
      gap: 24px;
      border-bottom: var(--border-width) solid var(--color-border);
    }
    
    .tab {
      font-family: var(--font-body);
      font-size: var(--text-small);
      line-height: var(--leading-small);
      letter-spacing: var(--tracking-small);
      font-weight: 500;
      padding: 10px 0;
      color: var(--color-text-muted);
      border-bottom: 2px solid transparent;
      margin-bottom: calc(var(--border-width) * -1);
    }
    
    .tab[aria-selected="true"] {
      color: var(--color-text);
      border-bottom-color: var(--color-primary);
    }

    Works with this style’s CSS variables file, in the DESIGN.md section.

  • Navigation bar

    Navigation

    Full width, 68px tall, background colour with a 2px bottom border. Logo at the start, links in the body size, one primary button at the end. A plain row with a 2px rule beneath. Links are upper-case captions. It does not stick.

    Tokens

    CSS for this example
    .navbar {
      display: flex;
      align-items: center;
      gap: 20px;
      height: calc(var(--control-height) + 1.25rem);
      padding: 0 var(--gutter);
      background: var(--color-background);
      border-bottom: var(--border-width) solid var(--color-border);
    }
    
    .navbar-brand {
      font-family: var(--font-display);
      font-size: 1.125rem;
      font-weight: var(--weight-h3);
      letter-spacing: var(--tracking-h3);
      color: var(--color-text);
    }
    
    .navbar-link {
      font-family: var(--font-body);
      font-size: var(--text-small);
      line-height: var(--leading-small);
      font-weight: var(--weight-small);
      letter-spacing: var(--tracking-small);
      color: var(--color-text-muted);
    }

    Works with this style’s CSS variables file, in the DESIGN.md section. The buttons in this picture are the style's Primary button; their CSS is under Actions.

  • Badge

    Feedback

    Caption size, 4px by 8px padding, radius 0px, surface background with the text colour. Static label. Status badges add a word, never colour alone.

    Tokens

    CSS for this example
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 8px;
      border-radius: var(--radius-sm);
      background: var(--color-surface);
      border: var(--border-width) solid var(--color-border);
      color: var(--color-text);
      font-family: var(--font-body);
      font-size: var(--text-caption);
      line-height: var(--leading-caption);
      font-weight: var(--weight-caption);
      letter-spacing: var(--tracking-caption);
    }
    
    .badge-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--color-text-muted);
    }
    
    .badge[data-status="success"] .badge-dot {
      background: var(--color-success);
    }
    
    .badge[data-status="warning"] .badge-dot {
      background: var(--color-warning);
    }
    
    .badge[data-status="danger"] .badge-dot {
      background: var(--color-danger);
    }

    Works with this style’s CSS variables file, in the DESIGN.md section.

  • Alert

    Feedback

    Surface colour, 24px padding, a 4px line at the start edge in the success, warning or danger colour, with an icon and a title. Appears in place, pushes content down, and is announced to screen readers. Can be dismissed with a labelled button.

    Tokens

    CSS for this example
    .alert {
      background: var(--color-surface);
      border-radius: var(--card-radius);
      border: var(--border-width) solid var(--color-border);
      padding: 1rem;
      border-inline-start: calc(var(--border-width) + 2px) solid var(--color-success);
    }
    
    .alert-title {
      font-family: var(--font-body);
      font-size: var(--text-small);
      line-height: var(--leading-small);
      letter-spacing: var(--tracking-small);
      font-weight: 600;
      color: var(--color-text);
    }
    
    .alert-text {
      font-family: var(--font-body);
      font-size: var(--text-small);
      line-height: var(--leading-small);
      font-weight: var(--weight-small);
      letter-spacing: var(--tracking-small);
      color: var(--color-text-muted);
    }
    
    .alert[data-status="warning"] {
      border-inline-start-color: var(--color-warning);
    }
    
    .alert[data-status="danger"] {
      border-inline-start-color: var(--color-danger);
    }

    Works with this style’s CSS variables file, in the DESIGN.md section.

  • Card

    Surfaces

    Surface colour, radius 0px, 24px padding, 2px border, no shadow. A bordered block. If it is a link, hover inverts it to black with white text.

    Tokens

    CSS for this example
    .card {
      background: var(--color-surface);
      border-radius: var(--card-radius);
      border: var(--border-width) solid var(--color-border);
      padding: var(--card-padding);
    }
    
    .card-eyebrow {
      font-family: var(--font-body);
      font-size: var(--text-caption);
      line-height: var(--leading-caption);
      font-weight: var(--weight-caption);
      letter-spacing: var(--tracking-caption);
      text-transform: uppercase;
      color: var(--color-accent);
    }
    
    .card-title {
      font-family: var(--font-display);
      font-size: var(--text-h3);
      line-height: var(--leading-h3);
      font-weight: var(--weight-h3);
      letter-spacing: var(--tracking-h3);
      margin-top: 8px;
      color: var(--color-text);
    }
    
    .card-text {
      font-family: var(--font-body);
      font-size: var(--text-small);
      line-height: var(--leading-small);
      font-weight: var(--weight-small);
      letter-spacing: var(--tracking-small);
      margin-top: 6px;
      color: var(--color-text-muted);
    }

    Works with this style’s CSS variables file, in the DESIGN.md section.

  • Table

    Surfaces

    Header row in the small size and muted colour, 2px row dividers, 32px cell padding, numbers aligned to the end. Rows highlight with the surface colour on hover. On phones each row becomes a stacked card.

    Tokens

    CSS for this example
    .table {
      border: var(--border-width) solid var(--color-border);
      border-radius: var(--card-radius);
      overflow: hidden;
    }
    
    .table-row {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      padding: 10px 14px;
      border-top: var(--border-width) solid var(--color-border);
      font-family: var(--font-body);
      font-size: var(--text-small);
      line-height: var(--leading-small);
      font-weight: var(--weight-small);
      letter-spacing: var(--tracking-small);
      color: var(--color-text);
    }
    
    .table-head {
      border-top: none;
      background: var(--color-surface);
      color: var(--color-text-muted);
    }
    
    .table-number {
      font-family: var(--font-mono);
      text-align: end;
    }

    Works with this style’s CSS variables file, in the DESIGN.md section.

  • Dialog

    Overlays

    Surface colour, radius 0px, at most 480px wide, 32px padding, a border instead of a shadow. Focus moves inside and is kept there; Escape closes it; focus returns to the button that opened it.

    Tokens

    CSS for this example
    .dialog {
      width: 100%;
      max-width: 30rem;
      padding: var(--card-padding);
      background: var(--color-surface);
      border-radius: var(--radius-lg);
      border: var(--border-width) solid var(--color-border);
    }
    
    .dialog-title {
      font-family: var(--font-display);
      font-size: var(--text-h3);
      line-height: var(--leading-h3);
      font-weight: var(--weight-h3);
      letter-spacing: var(--tracking-h3);
      color: var(--color-text);
    }
    
    .dialog-text {
      font-family: var(--font-body);
      font-size: var(--text-small);
      line-height: var(--leading-small);
      font-weight: var(--weight-small);
      letter-spacing: var(--tracking-small);
      margin-top: 8px;
      color: var(--color-text-muted);
    }
    
    .dialog-actions {
      display: flex;
      justify-content: flex-end;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 24px;
    }

    Works with this style’s CSS variables file, in the DESIGN.md section. The buttons in this picture are the style's Secondary and Primary button; their CSS is under Actions.

The examples show each component at rest. Hover, focus and pressed states are described in words above, because the style stores them as sentences, not as values that can be drawn. Motion: Almost none. Buttons invert on hover without a transition. If something must animate, use a straight 120ms cut with linear timing. Durations 0ms and 120ms, easing linear.

Surfaces

Asymmetric and aligned. Leave columns empty on purpose; white space is an active part of the composition. Sections are divided by a 2px rule across the full container.

  • White#FFFFFF

  • Grey field#F4F4F4

  • Cardradius 0px · bordered · no shadow

  • Border2px · #111111

Rounded corners0px · 0px · 0px · 0px · 0px

Shadowsthis style uses none

Spacing scale (base 8px)

  • space-18px
  • space-216px
  • space-324px
  • space-432px
  • space-548px
  • space-664px
  • space-796px
  • space-8128px
Content width
1280px
Side gutter
24px
Between sections
128px
Card padding
24px
Border
2px
Control height
48px

Grid: A visible 12-column grid with 24px gutters. Everything aligns to a column edge; text blocks start on column 1, 4 or 7.

Typography

One sans-serif family for everything, set tight and flush left with a ragged right edge. Captions are 12px bold upper case with wide tracking. Never justify, never centre.

  • display

    Helvetica Neue

    Shown in the first font of its list that your device has.

    Already on most devices; nothing to load. Present on Apple devices; Arial or the system sans is used elsewhere.

    "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif

  • body

    Helvetica Neue

    Shown in the first font of its list that your device has.

    Already on most devices; nothing to load.

    "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif

  • mono

    System monospace

    Shown in the first font of its list that your device has.

    Already on most devices; nothing to load.

    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace

  • Display display

    Font
    Helvetica Neue
    Weight
    700
    Size
    96px, 48px on phones
    Line height
    0.95
    Letter spacing
    -0.04em

    Plan the work

  • Heading 1 h1

    Font
    Helvetica Neue
    Weight
    700
    Size
    56px, 36px on phones
    Line height
    1
    Letter spacing
    -0.03em

    Plan the work

  • Heading 2 h2

    Font
    Helvetica Neue
    Weight
    700
    Size
    32px, 26px on phones
    Line height
    1.1
    Letter spacing
    -0.02em

    Plan the work, then work the plan

  • Heading 3 h3

    Font
    Helvetica Neue
    Weight
    700
    Size
    20px
    Line height
    1.25
    Letter spacing
    -0.01em

    Plan the work, then work the plan

  • Body body

    Font
    Helvetica Neue
    Weight
    400
    Size
    16px
    Line height
    1.5
    Letter spacing
    0

    One place for the roadmap, the tasks and the notes your team keeps losing in chat.

  • Small small

    Font
    Helvetica Neue
    Weight
    400
    Size
    14px
    Line height
    1.45
    Letter spacing
    0

    One place for the roadmap, the tasks and the notes your team keeps losing in chat.

  • Caption caption

    Font
    Helvetica Neue
    Weight
    700
    Size
    12px
    Line height
    1.35
    Letter spacing
    0.08em

    Release 4.2 · Updated today

The display size halves on phones. Headings stay flush left and are never centred. Captions are upper case with wide tracking at every width. On a narrow screen this page shows each step at its phone size where the style gives one.

Guidelines

Scale does everything: a 96px headline against 16px text. There are only two weights, 400 and 700. Red appears once per page, on the thing that matters most.

Do

  • Align every element to a column edge.
  • Use red exactly once per page.
  • Set captions in bold upper case with wide tracking.
  • Leave whole columns empty.

Don’t

  • Do not round any corner.
  • Do not use shadows or gradients.
  • Do not centre text.
  • Do not introduce a third weight or a second typeface.

Common mistakes

  • Softening the 2px rules to light grey, which removes the character of the style.
  • Using red for both the button and error messages on one screen.
  • Letting a headline wrap into four or five short lines on phones instead of reducing its size.

Accessibility

Black on white is the highest contrast there is, and white on the red measures about 5.9:1. Controls are 48px tall. Because hover inverts colours, focus must use a separate 3px outline offset from the element, so it is never mistaken for hover.

On small screens

The grid goes from 12 columns to 6 to 4, and the gutter stays 24px until phones, where it is 16px. Headlines shrink but keep their tight line height. Rules stay 2px at every size.

DESIGN.md

The file to give an AI coding tool: it explains the rules, not just the values. The Tailwind theme, CSS variables and tokens file beside it are generated from the same tokens, so all four always agree.

Download DESIGN.md

Swiss Grid: design system

A strict, high-contrast style after the Swiss poster tradition: square corners, heavy rules, a visible grid, black and white with one red.

Source: https://inspireca.design/design-skills/swiss-grid · Updated 2026-11-22

What this is. An original style written for Inspireca Design. It does not describe any existing website. Follow it as the single source of visual rules for this project. Following it gives a coherent result in this direction; it does not guarantee an exact copy of anything.

Design philosophy

Order made visible. The grid, the rules and the type are the design; there is no ornament to hide behind. It follows the Swiss graphic tradition of objective, asymmetric layouts in a sans-serif, adapted to screens.

Use it for: Portfolios and studio sites; Event and exhibition pages; Documentation that should feel authoritative; Bold landing pages with little content.

Scheme: light, with a dark variant.

Colour system

Black, white and one red. Grey is for captions only. In the dark scheme the roles simply invert and the red is lightened so dark text on it still passes contrast.

TokenHexRGBUse
background#FFFFFFrgb(255 255 255)The page.
surface#F4F4F4rgb(244 244 244)Blocks that need separating from the page: code, quotes, table headers.
text#111111rgb(17 17 17)All text.
text-muted#555555rgb(85 85 85)Captions and metadata.
border#111111rgb(17 17 17)Rules and outlines. Borders are as dark as text on purpose.
primary#D40000rgb(212 0 0)The primary action and one emphasis per page.
on-primary#FFFFFFrgb(255 255 255)Text on red.
accent#0A3FD6rgb(10 63 214)Text links.
success#0B6B2Ergb(11 107 46)Success messages.
warning#8A5A00rgb(138 90 0)Warnings.
danger#B00020rgb(176 0 32)Errors.

Contrast of the text pairs (WCAG needs 4.5:1 for normal text):

  • text on background: 18.9:1
  • text on surface: 17.2:1
  • text-muted on background: 7.5:1
  • on-primary on primary: 5.5:1

Dark scheme overrides:

  • background: #0E0E0E
  • surface: #1A1A1A
  • text: #F5F5F5
  • text-muted: #B5B5B5
  • border: #F5F5F5
  • primary: #FF4D3D
  • on-primary: #0E0E0E
  • accent: #8FB0FF
  • success: #6FD08C
  • warning: #E3B341
  • danger: #FF8A80

Typography

One sans-serif family for everything, set tight and flush left with a ragged right edge. Captions are 12px bold upper case with wide tracking. Never justify, never centre.

Families

  • display: Helvetica Neue, stack "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif (already on the device). Present on Apple devices; Arial or the system sans is used elsewhere.
  • body: Helvetica Neue, stack "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif (already on the device)
  • mono: System monospace, stack ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace (already on the device)
StepFamilySizeLine heightWeightTracking
displayHelvetica Neue96px (6rem), 48px on phones0.95700-0.04em
h1Helvetica Neue56px (3.5rem), 36px on phones1700-0.03em
h2Helvetica Neue32px (2rem), 26px on phones1.1700-0.02em
h3Helvetica Neue20px (1.25rem)1.25700-0.01em
bodyHelvetica Neue16px (1rem)1.54000em
smallHelvetica Neue14px (0.875rem)1.454000em
captionHelvetica Neue12px (0.75rem)1.357000.08em

The display size halves on phones. Headings stay flush left and are never centred. Captions are upper case with wide tracking at every width.

Spacing and layout

Asymmetric and aligned. Leave columns empty on purpose; white space is an active part of the composition. Sections are divided by a 2px rule across the full container.

  • Base unit: 8px. Use only these steps: 8, 16, 24, 32, 48, 64, 96, 128 px.
  • Content width: at most 1280px, with 24px side gutters.
  • Space between page sections: 128px. Padding inside cards: 24px.
  • Grid: A visible 12-column grid with 24px gutters. Everything aligns to a column edge; text blocks start on column 1, 4 or 7.

Radius, borders and shadows

  • Radius: none 0px, sm 0px, md 0px, lg 0px, pill 0px.
  • Controls (buttons, inputs) use none; cards use none.
  • Border width: 2px, colour border.
  • Shadows: sm none; md none; lg none.
  • Cards: have a border and no shadow.

Components

Controls are 48px tall with 24px side padding, weight 700, upper-case labels. Inputs use the outline style.

Primary button
  • Looks: 48px tall, 24px side padding, radius 0px, filled with primary and labelled in on-primary, weight 700, upper case.
  • Behaves: Hover inverts it: white fill, red text, red border. Focus adds a 3px outline in the text colour, offset by 3px.
Secondary button
  • Looks: Same size as the primary button. Transparent background, 2px border in the border colour, text in the text colour.
  • Behaves: Hover fills it with the surface colour. Never place two primary buttons side by side; the second action is always this one.
Card
  • Looks: Surface colour, radius 0px, 24px padding, 2px border, no shadow.
  • Behaves: A bordered block. If it is a link, hover inverts it to black with white text.
Text input
  • Looks: 48px tall, outline style, radius 0px, label above in the small size.
  • Behaves: Focus changes the border to the primary colour and adds a visible ring. Errors show the danger colour, an icon and a sentence under the field.
Tabs
  • Looks: A row of text labels, 48px tall. The selected tab has a 2px line in the primary colour under it.
  • Behaves: Arrow keys move between tabs. The line moves to the selected tab; nothing else on the page shifts.
Navigation bar
  • Looks: Full width, 68px tall, background colour with a 2px bottom border. Logo at the start, links in the body size, one primary button at the end.
  • Behaves: A plain row with a 2px rule beneath. Links are upper-case captions. It does not stick.
Badge
  • Looks: Caption size, 4px by 8px padding, radius 0px, surface background with the text colour.
  • Behaves: Static label. Status badges add a word, never colour alone.
Alert
  • Looks: Surface colour, 24px padding, a 4px line at the start edge in the success, warning or danger colour, with an icon and a title.
  • Behaves: Appears in place, pushes content down, and is announced to screen readers. Can be dismissed with a labelled button.
Table
  • Looks: Header row in the small size and muted colour, 2px row dividers, 32px cell padding, numbers aligned to the end.
  • Behaves: Rows highlight with the surface colour on hover. On phones each row becomes a stacked card.
Dialog
  • Looks: Surface colour, radius 0px, at most 480px wide, 32px padding, a border instead of a shadow.
  • Behaves: Focus moves inside and is kept there; Escape closes it; focus returns to the button that opened it.

States and motion

Almost none. Buttons invert on hover without a transition. If something must animate, use a straight 120ms cut with linear timing.

  • Durations: 0ms for small feedback, 120ms for larger changes. Easing: linear.
  • Changes are instant or a plain 120ms cut. Hover inverts colours rather than fading them.
  • Every interactive element needs: default, hover, focus-visible, active, disabled. Forms also need error and success. Lists need empty and loading.
  • Respect prefers-reduced-motion: remove movement, keep the state change.

Responsive rules

The grid goes from 12 columns to 6 to 4, and the gutter stays 24px until phones, where it is 16px. Headlines shrink but keep their tight line height. Rules stay 2px at every size.

Accessibility

Black on white is the highest contrast there is, and white on the red measures about 5.9:1. Controls are 48px tall. Because hover inverts colours, focus must use a separate 3px outline offset from the element, so it is never mistaken for hover.

  • Keep every text and background pair at 4.5:1 or better (the pairs above pass).
  • Interactive targets at least 44 by 44 px on touch screens.
  • Never show state by colour alone; add text, an icon or a shape change.
  • A visible focus indicator on everything that can take focus.

Hierarchy

Scale does everything: a 96px headline against 16px text. There are only two weights, 400 and 700. Red appears once per page, on the thing that matters most.

Do and do not

Do

  • Align every element to a column edge.
  • Use red exactly once per page.
  • Set captions in bold upper case with wide tracking.
  • Leave whole columns empty.

Do not

  • Do not round any corner.
  • Do not use shadows or gradients.
  • Do not centre text.
  • Do not introduce a third weight or a second typeface.

Common mistakes

  • Softening the 2px rules to light grey, which removes the character of the style.
  • Using red for both the button and error messages on one screen.
  • Letting a headline wrap into four or five short lines on phones instead of reducing its size.

Implementation notes

  • Define the tokens once (CSS variables or a Tailwind theme) and use only the tokens. Do not write raw hex values or one-off sizes in components.
  • Build the components listed above first, then compose pages from them.
  • If something is not specified here, choose the option closest to the existing rules and say what you assumed.
  • Fonts are named, not supplied. Load them from their owner under their licence, or use the fallback stack.

Consistency checklist

  • Only colours from the table are used.
  • Every gap is one of: 8, 16, 24, 32, 48, 64, 96, 128 px.
  • Text sizes come only from the type scale (7 steps).
  • Controls are 48px tall and share one radius; cards share one radius.
  • One primary action per view.
  • All states exist for every interactive component.
  • Text contrast is at least 4.5:1; targets are at least 44 px.
  • Layout works at 360 px wide without sideways scrolling.
  • Motion is switched off for people who ask for reduced motion.

Following DESIGN.md gives a coherent result in this direction. It does not guarantee a pixel-exact copy of anything.

How to use it with Claude Code, Codex or Cursor

Download DESIGN.md, put it in your project, and tell the tool to follow it. There is no one-click connection: you place the file yourself.

  1. Claude Code

    Save DESIGN.md in the project root. In CLAUDE.md, add a line that imports it:

    @DESIGN.md
    
    Follow DESIGN.md for every interface change. Use only its tokens.

    Claude Code loads CLAUDE.md at the start of each session, and a line beginning with @ pulls that file in with it.

  2. OpenAI Codex

    Save DESIGN.md in the project root. Codex reads AGENTS.md before it starts work, so point to the file from there:

    ## Design
    Before any UI work, read DESIGN.md in the project root and follow it. Use only its tokens.

    Codex stops reading instruction files after about 32 KB in total, so link to DESIGN.md rather than pasting it in.

  3. Cursor

    Save the file as .cursor/rules/design.mdc with this at the top, then the content of DESIGN.md below it:

    ---
    description: Visual design rules for this project
    alwaysApply: true
    ---

    Cursor only reads .mdc files in .cursor/rules; a plain .md file there is ignored.

  • Then ask for something concrete: “Build the pricing page following DESIGN.md. List anything DESIGN.md does not cover and what you assumed.”
  • For the values themselves add the Tailwind theme or the CSS variables file to your stylesheet, so the tool uses tokens instead of retyping colours.
  • Limits: the tool can still drift on long tasks; ask it to check its work against the consistency checklist at the end of DESIGN.md. Fonts are named, not included. Placement rules were checked against each tool’s documentation on 22 November 2026 and may change.