1.2.5 • Published 9 months ago

@uktrade/great-design-system v1.2.5

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Great Design System

Overview

The Great Design System 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:

  1. Static site: Generated using Eleventy (11ty) to provide documentation on design system components and patterns.
  2. 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 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.

1.2.5

9 months ago

1.2.4

9 months ago

1.2.3

9 months ago

1.2.2

9 months ago

1.2.1

9 months ago

1.2.0

10 months ago

1.1.9

10 months ago

1.1.8

10 months ago

1.1.7

10 months ago

1.1.6

10 months ago

1.1.11

10 months ago

1.1.10

10 months ago

1.1.5

10 months ago

1.1.4

10 months ago

1.1.3

10 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.9

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

0.0.70

1 year ago

0.0.71

1 year ago

0.0.72

1 year ago

0.0.68

1 year ago

0.0.69

1 year ago

0.0.66

1 year ago

0.0.67

1 year ago

0.0.62

1 year ago

0.0.63

1 year ago

0.0.64

1 year ago

0.0.65

1 year ago

0.0.60

1 year ago

0.0.61

1 year ago

0.0.59

1 year ago

0.0.56

1 year ago

0.0.57

1 year ago

0.0.58

1 year ago

0.0.52

1 year ago

0.0.53

1 year ago

0.0.54

1 year ago

0.0.55

1 year ago

0.0.44

1 year ago

0.0.45

1 year ago

0.0.46

1 year ago

0.0.47

1 year ago

0.0.51

1 year ago

0.0.50

1 year ago

0.0.48

1 year ago

0.0.49

1 year ago

0.0.40

1 year ago

0.0.41

1 year ago

0.0.42

1 year ago

0.0.43

1 year ago

0.0.38

1 year ago

0.0.39

1 year ago

0.0.37

1 year ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.24

1 year ago

0.0.25

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.30

1 year ago

0.0.31

1 year ago

0.0.33

1 year ago

0.0.34

1 year ago

0.0.12

1 year ago

0.0.35

1 year ago

0.0.13

1 year ago

0.0.36

1 year ago

0.0.14

1 year ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.29

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.5

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago