cerebral / classy-ui

An automatically optimized design system
MIT License
176 stars 13 forks source link

Default tokens for classy-ui config #24

Closed nksaraf closed 4 years ago

nksaraf commented 4 years ago

I have been trying to set custom tokens like this in classy-ui.config.js.

const defaultTokens = require('classy-ui/tokens').default
const theme = require('./src/core/theme');
const colors = require('./src/core/colors').classyColors;

module.exports = {
  tokens: {
    ...defaultTokens,
    color: colors
  }
}

But it doesnt seem to work. I also looked into the code, and couldnt find a classy-ui/tokens package