One stylesheet, every app
liveEvery 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
greenA 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
| App | State | Checks | Last run |
|---|---|---|---|
| monitor | green | 12 | 2 min ago |
| kitviewer | red | 3 | 9 min ago |
| a-very-long-application-name-that-must-not-break-the-layout | degraded | 7 | 1 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.
| Token | Light | Dark |
|---|---|---|
--font-sans | ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif | ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif |
--font-mono | ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace | ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace |
--fs-xs | 0.75rem | 0.75rem |
--fs-sm | 0.875rem | 0.875rem |
--fs-md | 1rem | 1rem |
--fs-lg | 1.1875rem | 1.1875rem |
--fs-xl | 1.5rem | 1.5rem |
--fs-2xl | 1.875rem | 1.875rem |
--fs-3xl | 2.25rem | 2.25rem |
--lh-tight | 1.2 | 1.2 |
--lh-body | 1.55 | 1.55 |
--weight-normal | 400 | 400 |
--weight-medium | 550 | 550 |
--weight-bold | 680 | 680 |
--sp-1 | 0.25rem | 0.25rem |
--sp-2 | 0.5rem | 0.5rem |
--sp-3 | 0.75rem | 0.75rem |
--sp-4 | 1rem | 1rem |
--sp-5 | 1.5rem | 1.5rem |
--sp-6 | 2rem | 2rem |
--sp-7 | 3rem | 3rem |
--radius | 0.5rem | 0.5rem |
--radius-lg | 0.875rem | 0.875rem |
--radius-pill | 999px | 999px |
--tap | 44px | 44px |
--measure | 68ch | 68ch |
--border-w | 1px | 1px |
--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 |
--shadow | 0 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.
| Pair | Light | Dark | Verdict |
|---|---|---|---|
--fg on --bg | 16.83:1 | 16.85:1 | passes |
--fg on --surface | 17.43:1 | 15.50:1 | passes |
--muted on --bg | 7.25:1 | 8.58:1 | passes |
--muted on --surface | 7.51:1 | 7.89:1 | passes |
--accent on --bg | 6.64:1 | 9.20:1 | passes |
--on-accent on --accent | 6.88:1 | 8.27:1 | passes |
--green on --green-bg | 5.78:1 | 9.93:1 | passes |
--red on --red-bg | 6.28:1 | 8.50:1 | passes |
--amber on --amber-bg | 7.45:1 | 10.83:1 | passes |
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.