Skip to content

T1003: Missing token type ​

Cause ​

Every token needs a $type, set on the token or inherited from a parent group, so its value can be checked and written as CSS.

Example ​

text
// base.tokens.json
{
  "a": {
    "$value": {
      "colorSpace": "srgb",
      "components": [
        0,
        0,
        0
      ]
    }
  }
}

What you see ​

text
ERROR  T1003  base.tokens.json  a
  Token "a" has no $type. Set "$type" on the token or on a parent group.
  Run `tessera explain T1003` for details.

Fix ​

Add "$type" to the token, or to the group that holds it.

All errors and warnings