Design reference · reviewed 16 October 2026
Kettle style guide
Small local tools, with work you can see, check and finish.
A guide to the app's visual language and behaviour, built on Kettle's GOV.UK theme. These specimens render with the website's own theme; the app source stays authoritative for each tool's layout and behaviour.
Principles
Start with the task
Say what the person can finish. Name any models and their jobs separately, where people can inspect them.
Make work explicit
Picking a file doesn't start processing it. Label the button that starts work, show progress and offer Stop whenever cancellation works.
Keep the source close
Put the original beside the draft. Let people fix values and keep empty cells empty instead of filling gaps with guesses.
Review before saving
Make review an explicit step. Editing a reviewed draft clears its review state before you can export again.
Keep local operation, setup downloads and any configured source fetching explained separately, stating what the tool actually reads and writes.
Marks and motion
The kttl wordmark and geometric cup identify the app. Keep icons secondary to visible labels. The header above uses the site's lockup at 40px high.
One copy of the lockup lives at ui-patterns/theme/lockup.svg, with a slot for each Cup's mark. Every Cup page starts from shell.html beside it: skip link, header, main and footer. This site's header and the specimen below include the same file, and npm run patterns:check catches drift.
Nothing leaves this computer.
App header specimen: wordmark, cup and local-operation line on navy. That line describes the local tool, not this website. Setup downloads are explained separately.
In the app, steam hides at rest and animates while work runs (static steam under reduced motion). Always state status in words too — motion alone never explains what's happening.
Icons
Angular shapes on a 32 × 32 grid, using navy and supporting greys. Having an icon in this set doesn't mean a tool or feature has shipped.
One for each Cup
Select an icon's name to open its SVG. Previews here are static; the logo above shows motion. Pair icons with visible labels and hide decorative icons from screen readers when adjacent text carries the meaning.
Colour
Navy text on pale blue and white, with one blue for actions. Swatches come from tokens.json, which npm run patterns:check checks against the theme.
-
Ground
#edf2f7 · $k-groundApp background: pale blue. -
Paper
#ffffff · $k-paperCards and working surfaces. -
Ink
#16335b · $k-inkNavy: all primary text and dark chrome. -
Grey
#54677f · $k-greyThe single grey step for secondary text, AA on ground and paper. -
Rule
#c9d3e0 · $k-ruleHairline rules only, never text. -
Interactive
#2f6fd0 · $k-interactivePrimary buttons and focus. -
Interactive text
#1d55b0 · $k-interactive-textThe same blue, dark enough for AA link text. -
Tint
#e0eafa · $k-tintTinted pills: tags and quiet notices. -
Highlight
#00e5e5 · $k-highlightCyan, only on navy: the privacy rule, the lockup rule and steam. -
Border soft
#d7e0ec · $k-border-softCard border, between paper and rule. -
Ink muted
#bfd2ea · $k-ink-mutedMuted copy on navy. -
Error
#b02a2a · $k-errorGOV.UK error treatment. -
Success
#1c7a4f · $k-successStatus: a claim proven. -
Pending ink
#7a3c1c · $k-pending-inkStatus: measured but not settled (GOV.UK Frontend 6.4.0's orange tag), on pending-tint. -
Pending tint
#fde4d7 · $k-pending-tintGround for pending-ink. -
Mark
#ffdd00GOV.UK mark: matched words in read text (Share Copy, Label). Not a theme setting; carried as each tool's own style. -
Mark ink
#0b0c0cText on mark.
Errors use GOV.UK error styling ($k-error: #b02a2a), alongside success and pending colours for evidence states. Flagging a cell to review isn't automatically an error or a confidence score.
Typography
System fonts only: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, with monospace for filenames, timings and raw values. No web fonts to download.
Read this table
--k-t-display · 37.3–48.8pxCheck the cells
--k-t-title · 25.9–31.3pxKeep the original in view
--k-t-section · 21.6–25pxCorrect the draft before saving your CSV.
--k-t-body · 18–20pxChanging a cell clears the review checkbox.
--k-t-small · 15–16pxruled.png · source image
--k-t-tiny · 12.5–12.8pxUtopia scales between 360px and 1240px viewports in rem. Pixel figures assume the browser's default font size. The app caps its H1 at 2.25rem (36px); this site uses the full display scale.
Keep prose to the theme's 66ch measure where practical. Pair size and line height via k-font(), and keep heading levels in order.
Space and shape
Use the fluid space scale for gaps and padding, with k-stack() for vertical stacks and k-cluster() for wrapping controls.
--k-space-3xs--k-space-2xs--k-space-xs--k-space-s--k-space-m--k-space-l--k-space-xl--k-space-2xlCards
White surface, soft border, light shadow and --k-radius (16px).
Inner panels
--k-radius-soft (10px) for inset surfaces. Buttons and tags use --k-radius-pill.
Keep the task's width bounded. Let controls wrap, stack source and result in narrow windows, and put wide tables inside a labelled scroll container.
Components
GOV.UK markup with Kettle's settings bridge and skin. These are static specimens, not a live Cup.
Actions
The links navigate; the disabled button shows an unavailable action. In the app, explain why right beside it (check the cells and confirm review before saving).
State in words
Tags show state; they aren't buttons. While a job runs, show the current stage and elapsed time — don't invent a fake percentage or ETA.
Where this example came from
The table below is invented example data for this guide, not a model run.
| Item | Quantity | Price |
|---|---|---|
| Notebook | 2 | £4.50 |
| Pencil | 6 | £0.80 |
Table rows have dividing rules, with no bottom border on the last body row (including row headers).
File selection and correction
Use the file-picker pattern: a real labelled file input with an optional drop target. State accepted formats and size limits, and keep previews, validation and unsaved-work checks inside the tool.
Give editable fields visible labels or precise accessible names (like row and column coordinates). Put errors near the field, summarise failures at the top, and keep the original visible while editing.
Voice
Plain British English. Lead with the person's task, say what an action will do, and keep drafts clearly distinct from reviewed results.
- Actions
- "Read this table", "Stop", "Save reviewed CSV". Use verb + object where it makes the action clearer.
- Uncertainty
- "Check this cell against the image." Say what needs attention; don't invent a confidence score.
- Failures
- Say what broke, what happened to the person's work and what they can try next. Only promise their work is safe when that's actually true.
- Models
- Name active models, their jobs and exact sources. A tool without a model says "Models used: none".
Accessibility
GOV.UK gives a solid base, though Kettle's own adaptations and full flows still need testing.
- Every control, disclosure, file picker and edit field must work by keyboard, with visible focus landing somewhere sensible after actions.
- Focus uses a 3px blue outline, 2px offset and white inner edge so it stays clear on navy.
- Associate labels, hints and errors with their inputs. Never rely on colour, icons or motion alone.
- Announce live status changes politely and expose failures to assistive tech (static specimens don't need live regions).
- Check zoom, narrow windows, reduced motion and forced colours. Keep hit targets at least 44px; long filenames and wide tables shouldn't blow out page width.
- Check contrast on real surfaces — hover, focus, disabled and error states — rather than assuming overrides inherit GOV.UK contrast.
iPhone and iPad
Kettle Cups for iOS uses the same theme in SwiftUI, reading its own copy of tokens.json checked by unit tests. Everything above applies except where iOS conventions differ:
| Role | Web | iOS text style |
|---|---|---|
| display | 37.3–48.8px | largeTitle, bold |
| title | 25.9–31.3px | title2, bold |
| section | 21.6–25px | title3, bold |
| body | 18–20px | body |
| small | 15–16px | subheadline |
| tiny | 12.5–12.8px | caption |
- Dynamic Type replaces the fluid scale, tracking the user's iOS text size just as rem follows browser settings. Spacing uses the smaller end of the scale, in points.
- Light mode only, matching the desktop app.
- The header keeps the wordmark, Cup name under a cyan rule and "Nothing leaves this device." The system back button stays on a navy bar so swipe-back works.
- Photos instead of files. Camera and photo picker replace the file picker, still stating what's accepted and that it stays on the phone.
- Tags reuse the same palette plus green for passed checks and light-on-ink for firm findings or failures. Every status is still a word.
- No hover or focus rings. Pressed states darken instead. VoiceOver and Dynamic Type are the accessibility checks that matter on iOS.
Sources and maintenance
The desktop design reference shaped these sections; the live app and site theme define the defaults.
- Shared design tokens (DTCG format), verified by
npm run patterns:check. - Site theme settings, GOV.UK skin and theme provenance.
- App typography and chrome and Tables layout and correction styles.
- This guide's source and design-reference provenance.
Update app source first when app behaviour changes, then bring this guide into line. The site keeps its own theme copy and builds on its own, with no shared runtime or extra component library.