2.1.0-alpha.2 • Published 5 years ago

@spartanbio/schedio-tokens v2.1.0-alpha.2

Weekly downloads
190
License
MIT
Repository
github
Last release
5 years ago

Schédio design tokens

Built with Theo for @spartanbio/schedio.

A full list of tokens is available at https://spartanbio.github.io/schedio-tokens/.

Installation

yarn add @spartanbio/schedio-tokens

Usage

Tokens are organized with the path structure dist/<platform>/<language>/<token>.<format>.<ext>

JS

Standard usage:

import SchedioTokens from '@spartanbio/schedio-tokens';

const Schedio = new SchedioTokens();
const blue = Schedio.color('blue');

React Native

All CommonJS and ESModule tokens are available in dist/react-native/. Each includes TypeScript typings.

// JS tokens
import SchedioTokens, { nativeTokens } from '@spartanbio/schedio-tokens';

const Schedio = new SchedioTokens(nativeTokens);
const blue = Schedio.color('blue');
// TS interface if needed
import { SchedioTokensNative } from '@spartanbio/schedio-tokens';

SCSS

All variables and keys are kebab-case.

// All tokens as variables
@import '~@spartanbio/schedio/dist/web/scss/tokens';

// All tokens as a map
@import '~@spartanbio/schedio/dist/web/scss/tokens.map';

// All tokens as custom properties (works for CSS too)
@import '~@spartanbio/schedio/dist/web/css/tokens.custom-properties';

// Unprefixed maps of specific token categories
@import '~@spartanbio/schedio/dist/web/scss/<token-category>.map';

// Colors, grouped by hue
@import '~@spartanbio/schedio/dist/web/scss/color.color-map';

Adobe Creative Cloud Applications

CC applications that support swatch files can import dist/web/adobe/color.ase to use color. Note they are imported without groups.

3.0.0-alpha.5

5 years ago

3.0.0-alpha.4

5 years ago

3.0.0-alpha.3

5 years ago

3.0.0-alpha.2

5 years ago

2.1.1

5 years ago

3.0.0-alpha.1

5 years ago

2.1.1-alpha.1

5 years ago

2.1.0

5 years ago

2.1.0-alpha.4

5 years ago

2.1.0-alpha.3

5 years ago

2.1.0-alpha.2

5 years ago

2.1.0-alpha.1

5 years ago

2.0.1-alpha.1

5 years ago

2.0.0

6 years ago

2.0.0-alpha.11

6 years ago

2.0.0-alpha.12

6 years ago

2.0.0-alpha.10

6 years ago

2.0.0-alpha.9

6 years ago

2.0.0-alpha.8

6 years ago

2.0.0-alpha.7

6 years ago

2.0.0-alpha.6

6 years ago

2.0.0-alpha.5

6 years ago

2.0.0-alpha.4

6 years ago

2.0.0-alpha.3

6 years ago

2.0.0-alpha.2

6 years ago

2.0.0-alpha.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago