ID-SK elements is three things:
- An online design guide, explaining how to make your service look consistent with the rest of ID-SK.
- An example of how to use the code in the ID-SK template and the ID-SK frontend toolkit.
- An npm package of the Sass files.
http://idsk-elements.herokuapp.com/.
Installation and usage instructions can be found in the idsk-elements-sass README.
If you would like to clone the repository and run it locally, you will need Node.js (at least version v0.10.0).
Clone this repository
git clone git@github.com:id-sk/idsk_elements.git
Install all dependencies
npm install
Run the app
npm start
Go to localhost:3000 in your browser.
To check the whole codebase, run:
npm test
ID-SK elements uses govuk-lint, which uses scss-lint as its scss linter.
ID-SK elements uses standardjs, an opinionated JavaScript linter. All JavaScript files follow its conventions.
Both linters run on CI to ensure that new pull requests are in line with them.
ID-SK elements uses Wraith so that regressions can be easily spotted.
This needs to be run from the Wraith directory /tests/wraith
and some dependencies need to be installed on the local machine first.
-
Install Wraith and its dependencies.
gem install wraith brew install phantomjs brew install imagemagick
-
Take a baseline of the current version.
On master run:
wraith history config.yaml
- Switch to your feature branch and make changes.
On your feature branch run:
wraith latest config.yaml
Follow the instructions in CONTRIBUTING.md.
Here are examples of service-specific pattern libraries using upstream GOV.UK elements.
- Rural Payments style guide | Source Code
- Land Registry pattern library | Source Code
- Digital Marketplace frontend toolkit | Source Code
You can find contribution guidelines in CONTRIBUTING.md