Cookies on ons.gov.uk

Cookies are small files stored on your device when you visit a website. We use some essential cookies to make this website work.

We would like to set additional cookies to remember your settings and understand how you use the site. This helps us to improve our services.

You have accepted all additional cookies. You have rejected all additional cookies. You can change your cookie preferences at any time.

Skip to main content

This website no longer supports your browser. You can upgrade your browser to the latest version.

BETA

This is a new service. To help us improve it, give feedback

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

ONS Prototype Kit

Install Prototype Kit on PC

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)