0.1.6 • Published 4 years ago
@graphemic/primitives v0.1.6
Graphemic Primitives
Color, spacing, and typography primitives for the Graphemic design system.
Install
This repository is distributed on npm.
After installing npm, you can install @graphemic/primitives with this npm:
$ npm install --save @graphemic/primitivesOr, install, with yarn:
yarn add @graphemic/primitivesUsage
Primitive data comes in several formats from the dist/ folder:
dist/scsscontains SCSS files that define CSS variables to be imported into other SCSS filesdist/jsoncontains JSON files for each set of primitivesdist/jscontains CommonJS-style JavaScript modules for each set of primitives, as well as an index file that loads all of the primitives for all primitive types; you can access this viarequire('@graphemic/primitives'). The JavaScript modules also include TypeScript typings files for use in TypeScript projects.