Skip to content

Color, typography, and spacing primitives in json.

License

Notifications You must be signed in to change notification settings

primer/primitives

Folders and files

NameName
Last commit message
Last commit date
Aug 26, 2021
Aug 19, 2021
Dec 2, 2019
Aug 26, 2021
Aug 12, 2021
Aug 12, 2021
May 24, 2021
Oct 26, 2020
Apr 18, 2018
Aug 26, 2021
Apr 18, 2018
Aug 6, 2020
Aug 26, 2021
Sep 10, 2020
Aug 11, 2021

Repository files navigation

Primer Primitives

This repo contains values for color, spacing, and typography primitives for use with Primer, GitHub's design system.

Install

This repository is distributed on npm. After installing npm, you can install @primer/primitives with this command.

$ npm install --save @primer/primitives

Usage

Primitive data is served 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('@primer/primitives'). The JavaScript modules also include TypeScript typings files for use in TypeScript projects.

License

MIT © GitHub