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

whitehall-ui

v1.0.0

Published

GOV.UK Design System component library for React 19 + Tailwind CSS 4. Available as an npm package and a shadcn-compatible registry.

Readme

Whitehall-UI

GOV.UK Design System component library for React 19 + Tailwind CSS 4.

Distributed two ways:

  • npm package — install whitehall-ui and import components.
  • shadcn registry — copy component source straight into your project with the shadcn CLI.

Live Storybook & full component list: https://dawidmakos.github.io/whitehall-ui/


Requirements

These are peer dependencies — install them in your app:

npm install react@^19 react-dom@^19 tailwindcss@^4 @base-ui/react

Option A — npm package

1. Install

npm install whitehall-ui

2. Load the theme tokens

Import the GOV.UK design tokens in your CSS entry point, after Tailwind:

@import 'tailwindcss';
@import 'whitehall-ui/tokens.css';

3. Use a component

Import from the package root:

import { Button, TextInput, Label } from 'whitehall-ui';

export function Example() {
  return (
    <form>
      <Label htmlFor='name'>Full name</Label>
      <TextInput id='name' name='name' />
      <Button>Continue</Button>
    </form>
  );
}

Per-component subpath imports also work (better tree-shaking):

import { Button } from 'whitehall-ui/button';

Option B — shadcn registry

Copy the component source into your own codebase (fully editable, no runtime dependency on the package).

1. Add the theme tokens (once)

npx shadcn@latest add https://dawidmakos.github.io/whitehall-ui/r/govuk-tokens.json

2. Add components

npx shadcn@latest add https://dawidmakos.github.io/whitehall-ui/r/button.json
npx shadcn@latest add https://dawidmakos.github.io/whitehall-ui/r/text-input.json

Swap button / text-input for any component name below. The CLI resolves each component's dependencies (e.g. the cn util) automatically.

3. Use it

import { Button } from '@/components/ui/button';

export function Example() {
  return <Button>Continue</Button>;
}

Available components

accordion · back-link · breadcrumbs · button · character-count · checkboxes · cookie-banner · date-input · details · error-message · error-summary · exit-this-page · fieldset · file-upload · footer · generic-header · header · hint · inset-text · label · link · notification-banner · pagination · panel · password-input · phase-banner · radios · select · service-navigation · skip-link · summary-list · table · tabs · tag · task-list · text-input · textarea · warning-text

See the Storybook for props and live examples.


License

MIT