@leafygreen-ui/tokens
leafyGreen UI Kit Tokens
Last updated 3 months ago by michael.mitchell .
Apache-2.0 · Original npm · Tarball · package.json
$ cnpm install @leafygreen-ui/tokens 
SYNC missed versions from official npm registry.

Tokens

npm (scoped)

Installation

Yarn

yarn add @leafygreen-ui/tokens

NPM

npm install @leafygreen-ui/tokens

Usage

Spacing

import { spacing } from '@leafygreen-ui/tokens';

const example = () => <span style={{ margin: spacing[1] }}>Hello World</span>;

Fonts

import { fontFamilies } from '@leafygreen-ui/tokens';

const example = () => <span style={{ font-family: fontFamilies.default }}>Hello World</span>;

Breakpoints

import { breakpoints } from '@leafygreen-ui/tokens';

const mq = facepaint(
  breakpoints.map(bp => `@media (min-width: ${bp}px)`),
  { literal: true },
);

Current Tags

  • 0.5.0                                ...           latest (3 months ago)

6 Versions

  • 0.5.0                                ...           3 months ago
  • 0.4.0                                ...           3 months ago
  • 0.3.0                                ...           4 months ago
  • 0.2.0                                ...           5 months ago
  • 0.1.1                                ...           5 months ago
  • 0.1.0                                ...           5 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 6
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |