npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

great-design-system

v0.0.2

Published

## Overview

Downloads

3

Readme

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.