Skip to content

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.

Preview the working state. If your device requests reduced motion, the steam stays still.

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.

Colour supports words — use labels like "Needs review" or "Could not read the image". Keep cyan on navy and use the grey token for muted text instead of dropping opacity.

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.8px

Check the cells

--k-t-title · 25.9–31.3px

Keep the original in view

--k-t-section · 21.6–25px

Correct the draft before saving your CSV.

--k-t-body · 18–20px

Changing a cell clears the review checkbox.

--k-t-small · 15–16px

ruled.png · source image

--k-t-tiny · 12.5–12.8px

Utopia 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-2xl

Cards

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

See Tables View the source

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

Done Waiting Needs review

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.

Check the draft

Compare every cell with the original image. Empty cells and misplaced values may need fixing.

Where this example came from

The table below is invented example data for this guide, not a model run.

Synthetic table example
ItemQuantityPrice
Notebook2£4.50
Pencil6£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.

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:

Type roles
RoleWebiOS text style
display37.3–48.8pxlargeTitle, bold
title25.9–31.3pxtitle2, bold
section21.6–25pxtitle3, bold
body18–20pxbody
small15–16pxsubheadline
tiny12.5–12.8pxcaption

Sources and maintenance

The desktop design reference shaped these sections; the live app and site theme define the defaults.

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.