0.1.6 • Published 2 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/primitives
Or, install, with yarn
:
yarn add @graphemic/primitives
Usage
Primitive data comes in several formats from the dist/
folder:
dist/scss
contains SCSS files that define CSS variables to be imported into other SCSS filesdist/json
contains JSON files for each set of primitivesdist/js
contains 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.