@scottish-government-design-system/prototype-templates
v0.3.0
Published
Construct prototypes using the Scottish Government Design System.
Downloads
57
Readme
Scottish Government Design System templates for GOV.UK Prototype Kit
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.
How to install the Scottish Government Design System Prototype Templates plugin
- 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
Optionally uninstall the GOV.UK Frontend plugin
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
How to use the Scottish Government Design System Prototype Templates plugin
- 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.
Feedback, help and support
If you need help or support you can e-mail us at [email protected]