@nulogy/tokens
Advanced tools
Comparing version 0.9.1 to 0.10.0
/** | ||
* Do not edit directly | ||
* Generated on Wed, 19 Jun 2019 13:23:26 GMT | ||
* Generated on Thu, 27 Jun 2019 21:37:51 GMT | ||
*/ | ||
@@ -5,0 +5,0 @@ |
{ | ||
"name": "@nulogy/tokens", | ||
"version": "0.9.1", | ||
"version": "0.10.0", | ||
"description": "Design tokens for the Nulogy Design System - http://nulogy.design", | ||
@@ -19,3 +19,3 @@ "repository": "https://github.com/nulogy/design-system.git", | ||
}, | ||
"gitHead": "a54a55dd8fb3c82ad3d68b5bcbbdf32b2ff6af5c" | ||
"gitHead": "ffbe3c43740dc52de0b69f32c5bb39e388b7baa2" | ||
} |
@@ -15,7 +15,2 @@ ![npm (scoped)](https://img.shields.io/npm/v/@nulogy/tokens.svg?color=blue) | ||
### In JS | ||
`import * as tokens from '@nulogy/tokens'` | ||
`Blue is: {tokens.color_base_blue}` | ||
### In Sass | ||
@@ -25,1 +20,10 @@ `@import '/node_modules/@nulogy/tokens/dist/variables.scss';` | ||
`.blue-thing {color: $color_base_blue}` | ||
### With CSS Modules | ||
In your component's jsx file, add `import "@nulogy/tokens/dist/variables.css";` | ||
`.blue-thing {color: var(--color-base-blue)}` | ||
### In JS | ||
If you're using javascript, you can access our theme instead of the tokens directly. For instructions on that, see "For custom components" at [nulogy.design/theme](https://nulogy.design/theme/) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
28
13783
17
274
1