4.0.0 • Published 6 years ago

@matthamlin/ds v4.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

DS

DS is a simple node script to build out a json config file for css-in-js design systems. It consumes three paths to:

  • colors.js
  • fonts.js
  • numbers.js

and then generates a json string representation of the design system.

Use:

import ds from '@matthamlin/ds';

const stringifiedJSON = ds({
  fonts: require('path/to/fonts.js'),
  colors: require('path/to/colors.js'),
  numbers: require('path/to/numbers.js')
});

// fs.writeFile('./out.json', stringifiedJSON);
// JSON.parse(stringifiedJSON);

What does it look like?

To see an example of this in action, clone the repo, run yarn then yarn make-example and see ./example/out.json file generated.

Prior Art:

4.0.0

6 years ago

3.0.0

6 years ago

3.0.0-0

6 years ago

2.0.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago