Prototyping Update the Prototype Kit
Overview
Keep your prototype kit up to date with the latest components and features. Follow steps for Windows PC or macOS.
Update your local prototype kit repository
To make sure you are working with the latest features, components and updates, you will need to regularly update your local version of the prototype kit. This ensures consistency with the current design system and avoids version-related issues.
Follow the steps below to update your repository.
1. Make sure your local repository name matches the one in GitHub
In your command terminal, change your local directory path to match the name of the repository you created earlier on GitHub. This is the folder name that appears after the final '\' in your path.
Make sure you have chosen a clear and memorable name, such as 'my-ons-prototype-kit'. This name will also be used for the local folder on your PC.
cd C:\my-prototypes\my-ons-prototype-kit
2. Update the repository
Use the code block below to update your repository with the ONS design system.
This will update the package.json and yarn.lock files so that other developers working on the project will get the same dependencies as you when they run yarn or yarn install. This will be useful if you have other developers needing to use the same repository later.
yarn add @ons/design-system
Related documentation
Add Mac link when built
Further help
If you need any help installing the prototype kit, or creating or publishing your prototype, email the design system team at ons.design.system@ons.gov.uk (opens in a new tab)
Help improve this page
Let us know how we could improve this page, or share your user research findings. Discuss this page on GitHub (opens in a new tab)