npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@polyxd/ds-govuk

v0.4.6

Published

GOV.UK Frontend design-system pack for Polyxd (DTCG 2025.10 tokens)

Downloads

2,224

Readme

@polyxd/ds-govuk

GOV.UK Frontend as a Polyxd design-system pack: DTCG 2025.10 token files that satisfy the semantic token contract.

npm run check -w @polyxd/ds-govuk     # contract check
npm run generate -w @polyxd/ds-govuk  # regenerate tokens/*.json

Source

govuk-frontend 6.5.1 (MIT). GOV.UK publishes compiled component CSS and no token file at all: its palette, functional colours, spacing points, measurements and type scale live in Sass settings, as maps. Those six settings files are vendored verbatim under scripts/sources/govuk, and the generator reads their maps directly — narrowly, by the shape of each map, rather than by evaluating Sass.

Names are kept: govuk.palette-blue-shade-25 for a palette colour, govuk.link or govuk.secondary-text for a functional one, govuk.spacing-4, govuk.font-size-19.

One mode

GOV.UK has one theme. There is no dark mode to read, and this pack does not invent one: it ships a single mode, and the theme compiler renders it whichever mode a surface asks for. A dark-mode surface in a GOV.UK pack is a light GOV.UK page, which is what GOV.UK is.

What GOV.UK doesn't have, and what the pack does

| Contract token | GOV.UK | What the pack uses | |---|---|---| | radius.* | square corners, everywhere | 0 — the one shape decision the whole system is built on | | shadow.raised, shadow.overlay | no shadows at all | a zero, transparent shadow: depth is a border, not a blur | | motion.duration.* | nothing animates | zero, rather than an invented curve | | color.border.focus | a yellow block with a 4px black bar under it | the black bar — the yellow alone is 1.35:1 on the page, and a single-colour ring can't be both halves | | color.status.warning.* | its warning component is black text beside a black icon | its orange, which the palette carries for exactly this weight of message | | type.label.small | the scale stops at 16px | 16px — GOV.UK has no small print, which is the point of the system |

Where a role does have to move, it moves along GOV.UK's own variants of the same colour (primary, tint-25…tint-95, shade-25, shade-50), sorted by measured luminance. In 6.5.1 the only moves are in orange: orange-primary is 2.25:1 on white, so accents take orange-shade-25, and panel text takes orange-shade-50.

Files

| File | What's in it | |---|---| | tokens/system.light.json | GOV.UK's palette, functional colours, spacing and type scale, plus the polyxd.sys.* additions | | tokens/semantic.json | the Polyxd contract, each token an alias | | manifest.json | the one mode, contract version, provenance | | scripts/sources/govuk/ | the vendored Sass settings and GOV.UK's licence |

Logo

This pack has no logo file, on purpose. The crown and the GOV.UK logotype are protected: the GOV.UK Service Manual (Making your service look like GOV.UK) says a service that isn't on GOV.UK must not use them, nor the GDS Transport typeface, nor suggest it is an official government website. Wherever Polyxd lists this pack it sets the plain words GOV.UK Design System in its own type.

GOV.UK and the crown are protected marks of the UK Government, named here only to identify the design system this pack is modelled on. Polyxd is not affiliated with the Government Digital Service.