forked from axa-ch/design-tokens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
32 lines (31 loc) · 1.05 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const transform = require('./transform');
const { customMediaFormatter } = require('./formats/custom-media');
const { scssCssVarsMixinFormatter } = require('./formats/scss-css-vars-mixin');
const { scssMediaQueryFormatter } = require('./formats/scss-mq');
const { tailwindFormatter } = require('./formats/tailwind');
const { jsonTransformer } = require('./formats/json');
const { tailwind } = require('./platforms/tailwind');
const { css } = require('./platforms/css');
const { scss } = require('./platforms/scss');
const { json } = require('./platforms/json');
const { javascript } = require('./platforms/javascript');
const { scssMixin } = require('./platforms/scss-mixins');
module.exports = {
source: ['tokens/**/*.json'],
format: {
'css/custom-media': customMediaFormatter,
'scss/media-query': scssMediaQueryFormatter,
'scss/css-vars-mixin': scssCssVarsMixinFormatter,
'json/tokens': jsonTransformer,
tailwind: tailwindFormatter,
},
transform,
platforms: {
tailwind,
css,
scss,
scssMixin,
js: javascript,
json,
},
};