NHS.UK frontend
Frontend code, with CSS, JavaScript and assets, for building user interfaces for NHS websites and services.
nhsuk.github.io/nhsuk-frontend/repositorydocs
NHS.UK frontend is the code for building user interfaces for NHS websites and services, maintained by NHS England and published on npm as nhsuk-frontend. The npm route gives a project the Sass source, which it forwards into its own stylesheet, the JavaScript that starts all components with an initAll call, and Nunjucks macros for the components. The installation guide describes that route, and the precompiled-files guide describes copying the built CSS, JavaScript and assets into a project instead.
Worth knowing
The precompiled files cannot change the Sass settings, cannot use the Nunjucks macros and cannot import single components, so the guide points live applications to the npm route. The npm route needs Node.js and Dart Sass in the project’s build. The README points to the NHS digital service manual for component examples and guidance.
Identity
Rendering and deploy
- Runs as
- In the browser7
- Install with
- npm36
Releases
Adoption
Sources
- 2026-10-27: links
nhsuk.github.io/nhsuk-frontend/ - 2026-10-27: links, Written in, License, License model, GitHub stars, Contributors
github.com/nhsuk/nhsuk-frontend - 2026-10-27: links, Categories, Install with, License
github.com/nhsuk/nhsuk-frontend/blob/main/README.md - 2026-10-27: First release
github.com/nhsuk/nhsuk-frontend/releases/tag/0.1.4 - 2026-10-27: Maintainer, License
github.com/nhsuk/nhsuk-frontend/blob/main/LICENSE - 2026-10-27: Install with, Templating
github.com/nhsuk/nhsuk-frontend/blob/main/docs/installation/installing-with-npm.md - 2026-10-27: Runs as
github.com/nhsuk/nhsuk-frontend/blob/main/docs/installation/installing-compiled.md - 2026-10-27: Current major version, Last release
github.com/nhsuk/nhsuk-frontend/releases/tag/v10.7.0 - 2026-10-28: npm downloads a week
api.npmjs.org/downloads/range/2026-09-28:2026-10-04/nhsuk-frontend - 2026-10-27: Dependent repositories, Dependent packages
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/nhsuk-frontend