style-dictionary
Version:
Style once, use everywhere. A build system for creating cross-platform styles.
15 lines (14 loc) • 491 B
JSON
{
"size": {
"font": {
"tiny": { "value": "0.75", "type": "fontSize" },
"small": { "value": "0.875", "type": "fontSize" },
"medium": { "value": "1", "type": "fontSize" },
"large": { "value": "1.25", "type": "fontSize" },
"xl": { "value": "1.5", "type": "fontSize" },
"xxl": { "value": "2", "type": "fontSize" },
"xxxl": { "value": "3", "type": "fontSize" },
"base": { "value": "{size.font.medium.value}", "type": "fontSize" }
}
}
}