@component-driven/react-design-tokens

2.2.1 • Public • Published

react-design-tokens

Build Status npm

React components to document design tokens in a styleguide.

Examples

Component-driven Design Systems Workshop Design System

import { Grid } from 'theme-ui'
import theme from './src/examples/cdds'
import { Colors, Spacing, Typography } from './src'

;<Grid gap={5}>
  <Colors theme={theme} />
  <Spacing theme={theme} />
  <Typography theme={theme} />
</Grid>

GitHub Primer Design System

import { Grid } from 'theme-ui'
import theme from './src/examples/primer'
import { Colors, Spacing, Typography } from './src'

;<Grid gap={5}>
  <Colors theme={theme} />
  <Spacing theme={theme} />
  <Typography theme={theme} />
</Grid>

Readme

Keywords

none

Package Sidebar

Install

npm i @component-driven/react-design-tokens

Weekly Downloads

65

Version

2.2.1

License

MIT

Unpacked Size

49.2 kB

Total Files

35

Last publish

Collaborators

  • okonet