@nulogy/tokens
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "@nulogy/tokens", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Design tokens for the Nulogy Design System - http://nulogy.design", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/nulogy/design-system.git", |
# @nulogy/tokens | ||
This is where Nulogy's design tokens are stored and converted using [Style Dictionary](https://amzn.github.io/style-dictionary) | ||
This is where Nulogy's design tokens are stored and converted using [Style Dictionary](https://amzn.github.io/style-dictionary). Tokens are mostly used in our React components and CSS classes, but tokens can be imported directly into your application if needed. | ||
@@ -8,16 +8,13 @@ ## What are tokens? | ||
## Adding tokens | ||
1. Add or update tokens in the `/src/` folder | ||
2. Run `yarn build` to convert those tokens into `_variables.scss` for Sass and `exports.js` for React usage | ||
## Installation | ||
`yarn add @nulogy/tokens` | ||
Your application can them import and use whichever format is required. | ||
## Usage | ||
New export formats can be added in `config.js`. | ||
## Usage | ||
`$ yarn add @nulogy/tokens` | ||
### In JS | ||
`import * as tokens from '@nulogy/tokens'` | ||
`Black is: {tokens.color_base_black}` | ||
`Blue is: {tokens.color_base_blue}` | ||
### In Sass | ||
`@import '/node_modules/@nulogy/tokens/build/variables.scss';` | ||
`.blue-thing {color: $color_base_blue}` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
12670
20