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