Build Kit design

2.5.0

One stylesheet, every app

live

Every app links this file by exact version. Same look everywhere, and no app can break because another app's page changed.

<link rel="stylesheet" href="https://design.stefanfehr.com/kit-2.5.0.css">

Components

Card

green

A card holds one idea. Its head carries a title and a status pill.

Muted text for the second line.

States

red
ok failing degraded unknown

A pill always carries a word, never colour alone.

Buttons

Every button is at least 44px high: usable with a thumb.

Table

AppStateChecksLast run
monitorgreen122 min ago
kitviewerred39 min ago
a-very-long-application-name-that-must-not-break-the-layoutdegraded71 h ago

Form

Lowercase letters, digits and hyphens.
Must be a number between 1024 and 65535.
Backup finished: 142 KB, 2 databases.
This app has no off-site copy yet.
Restore failed: archive unreadable.
Neutral note with no state attached.

Nothing here yet

An empty state says what will appear, and offers the action that makes it appear.

Loading

 

 

 

Key and value

Version
2.5.0
Published
2026-12-02
Source
modules/design/kit.css

Tokens

Colour, type, spacing and shape come from here. A page never hardcodes a colour.

TokenLightDark
--font-sansui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serifui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif
--font-monoui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospaceui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace
--fs-xs0.75rem0.75rem
--fs-sm0.875rem0.875rem
--fs-md1rem1rem
--fs-lg1.1875rem1.1875rem
--fs-xl1.5rem1.5rem
--fs-2xl1.875rem1.875rem
--fs-3xl2.25rem2.25rem
--lh-tight1.21.2
--lh-body1.551.55
--weight-normal400400
--weight-medium550550
--weight-bold680680
--sp-10.25rem0.25rem
--sp-20.5rem0.5rem
--sp-30.75rem0.75rem
--sp-41rem1rem
--sp-51.5rem1.5rem
--sp-62rem2rem
--sp-73rem3rem
--radius0.5rem0.5rem
--radius-lg0.875rem0.875rem
--radius-pill999px999px
--tap44px44px
--measure68ch68ch
--border-w1px1px
--bg#fbfbfa#121211
--surface#ffffff#1b1b1a
--surface-2#f0f0ec#242422
--border#cfcfc8#3d3d39
--fg#1a1a18#f3f3ef
--muted#55554e#b0b0a7
--accent#0b4fd1#8fb6ff
--accent-hover#073a9b#b3ccff
--on-accent#ffffff#0a1c3d
--green#0d6b36#74e6a3
--green-bg#e2f4e8#102a1b
--red#a8231c#ff9e96
--red-bg#fceceb#2f1614
--amber#6d4700#ffd189
--amber-bg#fdf3da#2d2311
--shadow0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.05)0 1px 2px rgba(0, 0, 0, 0.5)
--print-bg#ffffff#ffffff
--print-fg#000000#000000
--print-border#cccccc#cccccc

Contrast, measured

Computed from this file's own tokens. Below 4.5:1 is a fail, not a taste question.

PairLightDarkVerdict
--fg on --bg16.83:116.85:1passes
--fg on --surface17.43:115.50:1passes
--muted on --bg7.25:18.58:1passes
--muted on --surface7.51:17.89:1passes
--accent on --bg6.64:19.20:1passes
--on-accent on --accent6.88:18.27:1passes
--green on --green-bg5.78:19.93:1passes
--red on --red-bg6.28:18.50:1passes
--amber on --amber-bg7.45:110.83:1passes

Use it in an app

# copy the sheet into the app and point it at this version
node modules/design/bin/install.mjs --app ~/my-app --version 2.5.0

# prove the page follows the standard
node modules/design/bin/check.mjs --page https://my-app.stefanfehr.com/

A version never changes. Upgrading is one line, per app, on purpose.