Skip to content

A GOV.UK Prototype Kit plugin to build prototypes with the Scottish Government Design System

License

Notifications You must be signed in to change notification settings

scottish-government-design-system/prototype-templates

Repository files navigation

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

  1. follow the instructions on creating a new GOV.UK prototype
  2. open a terminal window within that folder and run the following command to install the plugin npm install @scottish-government-design-system/prototype-templates
  3. in the same terminal window then run the following command, to install the Scottish Government Design System dependency, npm install @scottish-government/design-system
  4. in your text editor create a settings.scss file in app/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.

  1. add "allowGovukFrontendUninstall": true to your prototype config file at app/config.json to unlock the option to uninstall the plugin
  2. in the browser, navigate to the 'Manage your prototype' section and go to 'Plugins'
  3. click on the uninstall button of the plugins you wish to remove

How to use the Scottish Government Design System Prototype Templates plugin

  1. in the browser, navigate to the 'Manage your prototype' section and go to 'Templates'
  2. 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 designsystem@gov.scot

About

A GOV.UK Prototype Kit plugin to build prototypes with the Scottish Government Design System

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published