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

Defra Frontend

A theme layer over GOV.UK Frontend for Defra services. It does not fork GOV.UK Frontend and it does not replace it.

This is an unapproved prototype. The colour and typeface values are placeholders rather than the result of a brand audit, and the library is not yet approved for use in a live service.

What is here

Upstream components
37, restyled through tokens alone
Defra additions
11, each registered with its prior art
Markup deviations
1
Design deviations
1

Brand modes

A licence boundary rather than a preference. Services on *.service.gov.uk use GDS Transport with the GOV.UK header and footer. Services elsewhere do not, and instead use a system font stack with Defra chrome.

The typeface is settled by that licence, and it is also the largest single carbon saving here: GDS Transport is two font files removed rather than made smaller. See carbon.

Live examples

Every component has interactive examples, prop tables and the Nunjucks and HTML for each one in the Storybook. This site holds the guidance and the governance; the Storybook holds the examples.