This plugin for the GOV.UK Prototype Kit lets you create prototypes using the Scottish Government Design System. It contains a set of common page templates and has the Scottish Government Design System as a dependency.
- follow the instructions on creating a new GOV.UK prototype
- open a terminal window within that folder and run the following command to install the plugin
npm install @scottish-government-design-system/prototype-templates
- in the same terminal window then run the following command, to install the Scottish Government Design System dependency,
npm install @scottish-government/design-system
- in your text editor create a
settings.scss
file inapp/assets/sass
and add$govuk-global-styles: false;
to it to prevent GOV.UK Frontend styles overriding other styling that you have
The Scottish Government Design System does not require the GOV.UK Design System code (GOV.UK Frontend) so you may wish to uninstall this to reduce the file size of your prototype.
- add
"allowGovukFrontendUninstall": true
to your prototype config file atapp/config.json
to unlock the option to uninstall the plugin - in the browser, navigate to the 'Manage your prototype' section and go to 'Plugins'
- click on the uninstall button of the plugins you wish to remove
- in the browser, navigate to the 'Manage your prototype' section and go to 'Templates'
- create pages using the available templates
View more information on templates.
If you need help or support you can e-mail us at [email protected]