Unapproved prototype. Not approved for use in a live service.

Deviations

Everything this library does differently from GOV.UK Frontend or from the published Defra branding guidance, and why.

Generated from deviations.json, which is the same file the drift check reads. A deviation that is not in that file fails the build, so this page is the whole list rather than a summary of it.

Markup deviations

Checked mechanically: the drift check renders all 692 upstream fixtures and fails on any divergence that is not declared here.

DEF-001 — Footer

Reason
GOV.UK footer asserts Royal Arms + OGL; not permitted outside the GOV.UK proposition
Approved by
TBC - Defra design authority
Review
each govuk-frontend minor

Design deviations

These cannot be caught by comparing markup, so the drift check prints them rather than asserting them. Printing is the point: an unassertable deviation must still be visible to a reviewer.

DEF-002 — Typeface

Requirement
Off-GOV.UK services must use Helvetica or Arial CSS font stacks
What we do
system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, sans-serif
Reason
Helvetica and Arial ship regular and bold only. The guidance is met on every point it exists to protect - New Transport is not used, no webfont is downloaded, zero font bytes - but the two-weight limit collapses the Defra weight scale (400/500/600/700/800) to two tiers, and with a restrained palette and no imagery weight is the primary carrier of hierarchy. The stack still ends in Helvetica Neue and arial, so any system without a richer face lands on the mandated fonts anyway.
Risk
Users on Helvetica/Arial-only systems see a flatter hierarchy, not a broken one - weights round down to regular and bold, which is upstream GOV.UK's own appearance.
Approved by
TBC - Defra design authority. Raise with the AI Capability and Enablement team, who maintain the branding guidance.

Additions

Components with no upstream equivalent. Each records why GOV.UK Frontend has none, the cross-government work it follows rather than invents, and whether it has been proposed back.

Reference Component Prior art Proposed upstream
DEF-101 Timeline MoJ Design System - Timeline No - raise once the Defra pattern has been used in a live service
DEF-102 Card GOV.UK publishing components, and card components in several departmental systems No - generic cards have been rejected upstream before; treat this as a Defra-local convenience
DEF-103 Add Another MoJ Design System - Add another No
DEF-104 Filter MoJ Design System - Filter No
DEF-105 Sortable Table MoJ Design System - Sortable table No
DEF-109 Search GOV.UK publishing components - search, and MoJ Design System No
DEF-110 Identity Bar MoJ Design System - Identity bar No
DEF-111 Grid Reference Input None. Format follows the Ordnance Survey national grid convention. No - too Defra-specific to be useful upstream
DEF-107 Sub Navigation MoJ Design System - Sub navigation No
DEF-108 Side Navigation MoJ Design System - Side navigation, and the GOV.UK publishing components contents list No
DEF-106 Timeout Dialog HMRC Frontend - Timeout dialog No