Skip to content

T1005: Invalid token value ​

Cause ​

The value does not have the shape its $type requires: a color is an object with colorSpace and components, a dimension is { "value": 16, "unit": "px" }, and so on.

Example ​

text
// base.tokens.json
{
  "c": {
    "$type": "color",
    "$value": "red"
  }
}

What you see ​

text
ERROR  T1005  base.tokens.json  c
  A color value must be an object with "colorSpace" and "components".
  Run `tessera explain T1005` for details.

Fix ​

Write the value in the strict DTCG form for the type. The message says which part is wrong.

All errors and warnings