Docs › For developers
Design tokens
With a tokens file in DTCG JSON format, Live binds colours, sizes and spacing to your tokens instead of raw values, and designs come back to you in tokens.
{
"color": {
"primary": { "$type": "color", "$value": "#2d6cdf" }
},
"space": {
"md": { "$type": "dimension", "$value": "16px" }
}
}- Set its path in
.codesignflo/config.json(tokens). - A design that changes a colour to one of your tokens reaches you as that token.