Skip to content

One place for service teams to find styles, components and patterns for designing government services.

License

Notifications You must be signed in to change notification settings

DebsDee/govuk-design-system

Repository files navigation

GOV.UK Design System


⚠️ This project is still in early development, and is not yet ready for production use.


One place for service teams to find styles, components and patterns for designing government services.

Run locally

Make sure you have Node.js installed.

Clone repository

git clone git@github.com:alphagov/govuk-design-system.git # or clone your own fork

Install dependencies

npm install

Start a local server

This will build sources, serve pages and watch for changes.

npm start

Build

Build ./src to ./deploy/public

npm run build

Run the Sass linter

We are using the sass-lint plugin to lint the Sass files in source/stylesheets. You can run the linter from command line by running:

npm run lint

GOV.UK Frontend packages

Design System consumes GOV.UK Frontend packages via NPM. These are defined in the package.json file.


NOTE: For the time being we are consuming private packages. To access private packages, you will first need to log in to NPM with

npm login


Automated Checks

When changes are pushed to GitHub Travis will:

  • run the tests
  • lint the Sass stylesheets in source/stylesheets
  • run the npm run build command to ensure that the site can be generated

If any of these fail, this will be reported in the GitHub status checks interface.

About

One place for service teams to find styles, components and patterns for designing government services.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 75.5%
  • JavaScript 16.9%
  • CSS 7.5%
  • Shell 0.1%