style-dictionary
Version:
Style once, use everywhere. A build system for creating cross-platform styles.
25 lines (24 loc) • 453 B
JSON
{
"button": {
"color": {
"primary": {
"value": "{color.primary.value}",
"type": "color"
},
"secondary": {
"value": "{color.secondary.value}",
"type": "color"
},
"danger": {
"value": "{color.base.red.value}",
"type": "color"
}
},
"text": {
"size": {
"value": "{globals.baseline}{globals.unit}",
"type": "fontSize"
}
}
}
}