1.1.0 • Published 3 years ago
@netlify/netlify-colors v1.1.0
Netlify Design Tokens
Repo contains Netlify's design tokens for sharing across products and repos. These tokens are co-owned by Netlify's Engineering and Marketing teams.
Install
Clone this repository, then run:
npm install
Build
Changes should be made to relevant files in the tokens
folder.
Once tokens have been updated, you'll need to generate updated css files (which live in the dist/css
folder).
npm run build:colors
Publish to npm
To use the updated tokens from a build, you'll need to publish a new version of the package to the npm registry.
Follow the npm docs for updating the package version and publishing.
Usage
Install the package in the project of your choice:
npm install @netlify/netlify-colors
From there, you may import any of the dist
files into your codebase for reuse as desired.