One place for service teams to find styles, components and patterns for designing government services.
Make sure you have Node.js installed.
git clone git@github.com:alphagov/govuk-design-system.git # or clone your own fork
npm install
This will build sources, serve pages and watch for changes.
npm start
Build ./src
to ./deploy/public
npm run build
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
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
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.