0.13.1 • Published 6 years ago

polaris-tokens v0.13.1

Weekly downloads
594
License
MIT
Repository
github
Last release
6 years ago

polaris-tokens

Design tokens for Polaris, Shopify’s design system.

Usage

yarn add polaris-tokens --dev

JavaScript

const tokens = require('polaris-tokens');
console.log(tokens.colorBlueLighter) // rgb(235, 245, 250)

Sass

@import 'node_modules/polaris-tokens/dist/index';
p {
  color: $color-blue-text;
}

Head to https://github.com/Shopify/polaris-tokens/releases/, where generated files are available.

Generate tokens

  1. dev clone polaris-tokens
  2. dev up
  3. yarn dist

Tokens are generated under the dist/ folder:

colors.color-map.scss
colors.common.js
colors.custom-properties.css
colors.json
colors.map.scss
colors.scss
index.common.js
index.custom-properties.css
index.json
index.map.scss
index.scss
Polaris.ase
Polaris.clr
Polaris.sketchpalette
spacing.common.js
spacing.custom-properties.css
spacing.json
spacing.map.scss
spacing.scss
typography.common.js
typography.custom-properties.css
typography.json
typography.map.scss
typography.scss

Dev workflow

dev server
0.13.1

6 years ago

0.13.0

6 years ago

0.12.0

6 years ago

0.11.0

6 years ago

0.10.0

6 years ago

0.9.0

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.0

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago