Tasks design system
Everything the board at tasks.nielskorte.nl is made of: tokens, type, icons, motion and every component, shown with the board's own stylesheet. The stylesheet and icons are copied from the board with scripts/sync-taskboard.sh in the design-system-nielskorte project; run it after a style change on the board.
Graphite, calm and dense. Light and dark are equals; switch above to check both.
Principles
Six ideas that explain most decisions on the board. When something new does not fit one of them, it probably does not belong.
Colour
All colour comes from CSS custom properties at the top of app.css. Each token has a light and a dark value; the swatch shows the theme you are looking at, the two hex values show both. Never use a raw hex in a component.
Niels picks one of these for each board in the board dialog. They show as a small rounded dot (board name, sidebar, card in Everything), never as a fill behind text.
Computed from the token values (WCAG 2 ratio). --faint is below 4.5 on purpose: it is for ticket numbers, counts and hints that sit next to stronger text, never for something that has to be read on its own.
Typography
The system font (SF Pro on Apple devices) for everything, and the system mono for ticket numbers, Jira keys, paths and code. Weights between 450 and 680; numbers that line up use font-variant-numeric: tabular-nums. On a phone the body grows to 14.5 px.
| Sample | Use | Size / weight |
|---|---|---|
| Book the dentist | Card title in the drawer (.d-title) | 20 / 650, −0.02em |
| Personal | Page title in the top bar, dialog title | 16 / 650, −0.015em |
| Approve the plan for T-38 | Decision title | 14.5 / 600 |
| Renew the passport before March | Card title on the board, body text | 13.5 / 520 (body 400) |
| Label of a property | Secondary text, small buttons, field labels | 12.5 / 400–600 |
| 3 comments · due tomorrow | Card meta, captions, counts | 11.5 / 400 |
| Checklist | Section heading (.sect-head h3, .nav-head) | 11 / 650, +0.06em, caps |
| T-40 | Ticket number | 10.5 mono / 400 |
| ~/Projects/taskboard | Paths, keys, code (.mono) | 0.88em mono |
Notes are written in a small Markdown: bold, code, links (underlined, because there is no colour accent to show them).
- Lists with a hanging indent
- Tables, for agent summaries
| Step | Result |
|---|---|
| Build | Passed |
| Deploy | Waiting for Niels |
docker restart taskboard
Space, radius, depth
Spacing is tight and follows a loose 2 px grid: 6 px between cards, 8 to 12 px inside them, 20 px around the page. Control heights come in four sizes.
code, kbdnav, icon buttonbutton, input--r, cardpanel, columndialogchat bubblepill, chipdone card, navcard, button, paneldialog, drawer, toast, dragSurfaces stack from back to front: --bg (page) → --panel (sidebar, inset boxes) → --surface (cards, inputs) → --raised (dialogs, tooltips). In dark mode each step is a little lighter instead of casting a shadow.
| Token or rule | Value | Where |
|---|---|---|
--side | 236px | Sidebar width |
| Column | 226 – 420px, flexible | Board columns share the width; on a phone 86vw with scroll snap |
| Drawer | min(640px, 100vw) | Card details, slides in from the right |
| Dialog | min(480px, 100%) | Centred, scrim at 36% |
| Reading width | 760 – 1120px | Settings 760, decisions and chat 860, dashboard 1120 |
| Breakpoint | 860px | The only one. Safe-area insets are respected everywhere. |
Icons and glyphs
One hand-drawn set on a 16 × 16 grid: 1.6 px round strokes, no fills, currentColor. Shown at 15 px (12.5 px in card meta). Use icon('name') in app.js; this grid is read from the ICONS table, so new icons show up here by themselves. Click one to copy its name.
Each column has a 14 px glyph that fills up as work moves right: a dashed ring for Inbox, half full for Doing, a spark for Agents, a dot for Review, a filled check for Done. A plain ring marks a closed agent session in the drawer.
Motion
Motion explains where something came from, and stops. With reduced motion turned on, every animation and transition is switched off. Press a demo to play it.
Something is working right now · 1.4 s loop
A graphite sweep from left to right and a check that pops and draws itself; no confetti (Niels' choice). It survives board refreshes by offsetting every animation with the time already passed (--el).
Buttons
One primary button per view at most. Labels are verbs in sentence case; an icon goes before the label, never after.
.btn · .primary · .ghost · .danger · .small · .icon-btn (28 px square) · .seg (language) · .segs (segmented choice)
Inputs and controls
Focus is always visible: the border goes to --accent-line with a 3 px --accent-soft ring. In the drawer, fields look like plain text until you hover them (.field).
- Status
- Due
- Jira key
Any <select> opens this menu instead of the browser's list: one delegated listener in app.js (openSelm), nothing to opt in. Touch screens keep the phone's own picker.
Super mode can deploy, push to main and send messages.
Status and labels
Small, rounded, and only in colour when the colour means something. Blue (--info) means an agent is busy, the accent means it waits on Niels, red means late or failed, green means done.
.av 18 px on cards, .avatar 22 px in comments; agents get the spark on accent-soft.
Cards
The card is the heart of the board. Its rows are fixed slots so every card reads the same way.
- Title, wraps, never cut off.
- Progress of the checklist, and a mail chip when the card came in by mail.
- Folder and repo (hidden when the board is already filtered on that folder).
- Bottom row: ticket number always first, then board (in Everything), due date or planned agent, comments, repeat, Jira key. Agent state and assignee always bottom right. A wide pill takes its own line instead of squeezing the details.
Bare: title and number only. Came in by mail.
Late and recurring, assigned to Niels.
Agent asked a question. Folder lives on Drive (cloud).
Planned agent: lives in Agents until it runs.
.open: the card shown in the drawer.
Done: flat, muted, struck through.
.drag-src: the place it left. The ghost under the pointer tilts 1.6°.
Quick add at the top of a column.
Board and columns
Five columns, always in this order: Inbox, Doing, Agents, Review, Done. Doing is Niels' own work, Agents is what agents work on (dropping a card there opens the start dialog). Review means "ready for Niels"; only Niels moves a card to Done.
Card drawer
Opens from the right over a 28% scrim. Header with ticket number and actions, then title, properties, notes, checklist, agent and comments, each under an uppercase section head. Every text box that holds unsent text keeps a draft across redraws.
- Status
- Assignee
- Folder
Notes
Host it on tasks.nielskorte.nl/design-system.
Checklist
2/4Agent
Built the page and the route. Left: check on a real phone.
Comments
Looks good.
Dialogs and toasts
Dialogs sit on --raised with a 12 px radius and pop in. Actions at the bottom right, primary last; anything destructive or outward-facing gets its own checkbox, not a second dialog.
Start agent
Claude Code works on this card in the project folder.
A toast is inverted (text colour as background) and goes after a few seconds. A notice (notice()) stays until it is closed, for things that must not be missed.
Empty column.
Dashboard
Tiles for the big numbers, panels for everything else. Two series colours (--s-created, --s-done), checked for both themes with the dataviz palette validator. Hover a column for its exact numbers.
Created and completed
last 14 daysPer board
Overdue
Settings row
Settings are rows: label and hint on the left, the control on the right.
Chat and decisions
Niels' messages are accent bubbles on the right, Claude's are surface bubbles on the left. A decision is a panel with a kind icon, the question or plan, and the actions right under it.
Started Opus on T-40 in taskboard.
There are two repos with a checkout flow. Use shop-v2?
Rules for new work
The things that went wrong before, so they do not go wrong again. Most come from the project notes in CLAUDE.md.
Styling
- Tokens only. Colours, shadows and fonts come from the custom properties; a new token gets both a light and a dark value, in all three theme blocks.
- Prefix new class names (
cele-,dec-,chat-,ds-). Short names collide:.agenthit the agent badge,.dashhit the celebration. Checkapp.cssfirst. - Links are underlined inside text, because there is no colour accent to mark them.
- Test in light and dark, and below 860 px.
Behaviour
- Drafts survive redraws. The drawer and Decisions are rebuilt on every refresh: give each text box with unsent text
data: { draft: '<key>' }. - Never redraw under a pointer. Replacing the button being pressed swallows the click (
pressing()). replaceChildren(null)prints "null": filter children first.- Anything that must feel instant cannot wait for a
claude -pcall (~3.5 s): prepare it ahead.
Shipping
- Files in
server/publicare served from disk: edit and reload. - Pages load
app.css?v=with a version from the newest file time, because Cloudflare caches .js and .css for 4 hours. A new page links its assets the same way. - Always check a UI change on tasks.nielskorte.nl too, not only on localhost.
Words
The board speaks English and Dutch (the language switch in the sidebar). Every string lives in the T table in app.js, in both languages.
"Waiting for you" · "Agent is done for now, continues tomorrow 07:30" · "AI added your note as a step to T-42"
Plain, short, sentence case. Say what happened and what Niels can do.
"Awaiting User Input" · "Operation completed successfully!" · "Oops, something went wrong"
No title case, no exclamation marks, no jargon, no blame.
| Concept | English | Dutch | Note |
|---|---|---|---|
| Card id | T-40 | T-40 | Never reused, also after a delete |
| Agent waits on Niels | Waiting for you | Wacht op jou | Accent pill |
| AI tidies a card | AI is writing it up | AI werkt het uit | Info pill with pulse |
| Late | 2d late | 2d te laat | Red, open cards only |
| Columns | Inbox · Doing · Agents · Review · Done | Inbox · Bezig · Agents · Review · Klaar | Fixed order |
Design system is live at /design-system.