← Back to the screen

Design system portfolio

Apply for a private water supply t — the record

The four direction lines behind this page, the generator command that produced its tokens, and the pairs it was measured against.

A householder on a private borehole applies to Wealdshire District Council for a sampling visit. The live screen is the date question; the same screen is shown again as the council's server returns it after an impossible date, and the rest of the journey is the task list and the check-your-answers page.

Direction

Generator

govuk_tokens.py --theme palette
govuk_tokens.py --theme functional
govuk_tokens.py --type --spacing
govuk_tokens.py --contrast

tokens.css is the first two, unedited. The type scale and the 5px spacing scale come from the third and are authored in the page's own <style>, because the generator publishes them as a table rather than as custom properties.

Measured contrast

contrast.py from web-design/scripts, WCAG 2.2:

PairRatioWhere
--govuk-text #0b0c0c on --govuk-body-background #ffffff19.59:1every word of the question, the hint and the answers
--govuk-white on --govuk-green-primary #0f7a525.35:1Continue, Accept and send
--govuk-error #ca3535 on #ffffff5.16:1the error summary and the field message
--govuk-focus-text on --govuk-focus #ffdd0014.54:1every focused control
--govuk-blue-shade-50 on --govuk-blue-tint-809.13:1the In progress tag
--govuk-black-tint-25 on --govuk-black-tint-958.14:1the Cannot start yet tag
--govuk-input-border on #ffffff19.59:1the 2px control boundary (SC 1.4.11)

Deviations