Appearance
T1012: Theme changes a token type
Cause
A theme gives a token a different $type than the base does.
Example
text
// base.tokens.json
{
"primary": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [
0,
0,
0
]
}
}
}
// dark.tokens.json
{
"$extends": "base",
"primary": {
"$type": "number",
"$value": 1
}
}What you see
text
ERROR T1012 dark.tokens.json primary
Theme "dark" sets "primary" to type "number", but the base type is "color".
Run `tessera explain T1012` for details.Fix
Keep the type the base declares; only the value changes in a theme.