Output format
Token type mapping
Humic token types map to W3C types as follows:| Humic type | W3C $type |
|---|---|
color | color |
spacing | dimension |
radius | dimension |
font.size | fontSize |
font.weight | fontWeight |
font.family | fontFamily |
font.lineHeight | lineHeight |
font.letterSpacing | letterSpacing |
shadow | shadow |
opacity | number |
duration | duration |
easing | cubicBezier |
z-index | number |
boolean | boolean |
Dark mode
Dark mode values are stored in the$extensions.com.humic.dark field. Only tokens with different dark values include this extension.
This approach keeps the W3C format valid while preserving dark mode information. You can use it in your token pipeline:

