0.1.6 • Published 2 years ago

@graphemic/primitives v0.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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 files
  • dist/json contains JSON files for each set of primitives
  • dist/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 via require('@graphemic/primitives'). The JavaScript modules also include TypeScript typings files for use in TypeScript projects.