New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@uktrade/great-design-system

Package Overview
Dependencies
Maintainers
8
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uktrade/great-design-system

## Overview

latest
npmnpm
Version
2.4.5
Version published
Weekly downloads
54
157.14%
Maintainers
8
Weekly downloads
 
Created
Source

Design System for Business

Overview

The Design System for Business provides markup, SCSS and JS in the form of layouts, styling and components. Everything you need to build a front end in your application that is accessible, consistent and efficient.

The application serves two main purposes:

  • Static site: Generated using Eleventy (11ty) to provide documentation on design system components and patterns.
  • Design system frontend: Publishes the design system code to npm for consumption in other applications.

Prerequisites

Ensure you have the following installed:

  • Node.js: Version 20.9.0
  • npm: Version 10.1.0
  • nvm (Node Version Manager): Recommended for managing Node.js versions

Using nvm

To install nvm, follow the instructions from the nvm repository.

Once nvm is installed, you can use it to install the required Node.js version:

nvm install 20.9.0
nvm use 20.9.0

Setup

Clone the repository:

git clone https://github.com/uktrade/great-design-system.git

cd great-design-system

Install dependencies:

npm install

Static Site

The static site provides documentation for the design system and is generated using Eleventy (11ty).

Development

Start development server:

npm run dev

This runs the development server for Eleventy and watches for changes using Webpack.

Building

Build the static site:

npm run build

This script cleans the dist directory and runs the Eleventy and Webpack build processes.

Design system for Business frontend code

The design system frontend code is designed to be published to npm for consumption in other applications. Components are written in Nunjucks.

Figma Tokens

Environment Variables:

Create a .env file in the root of your project and add your Figma access token and file ID:

ACCESS_TOKEN=your_figma_access_token
FILE_ID=your_figma_file_id

Fetch Figma design tokens:

npm run figma:token-fetch

This script fetches design tokens from Figma and generates SCSS files.

Publishing to npm

Publish the codebase to npm:

npm run npm:package

This script cleans the dist directory, builds the Webpack bundles, copies components and SCSS files, and prepares the package for publishing.

Linting

Lint JavaScript files:

npm run lint:js

Lint SCSS files:

npm run lint:scss

License

This project is licensed under the MIT License.

FAQs

Package last updated on 11 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts