style-dictionary
Version:
Style once, use everywhere. A build system for creating cross-platform styles.
21 lines (20 loc) • 392 B
JSON
{
"source": ["tokens/**/*.json"],
"platforms": {
"scss": {
"transformGroup": "scss",
"buildPath": "build/scss/",
"files": [{
"destination": "tokens.scss",
"format": "scss/variables"
}]
},
"js": {
"transformGroup": "js",
"files": [{
"destination": "tokens.js",
"format": "javascript/es6"
}]
}
}
}