Skip to content

T1006: Unknown token reference ​

Cause ​

An alias such as {color.blue.50} names a token that does not exist.

Example ​

text
// base.tokens.json
{
  "color": {
    "$type": "color",
    "blue": {
      "500": {
        "$value": {
          "colorSpace": "srgb",
          "components": [
            0,
            0,
            0
          ]
        }
      }
    },
    "bad": {
      "$value": "{color.blue.50}"
    }
  }
}

What you see ​

text
ERROR  T1006  base.tokens.json  color.bad
  Unknown token "{color.blue.50}"
  Did you mean "{color.blue.500}"?
  Run `tessera explain T1006` for details.

Fix ​

Fix the name. The hint suggests the nearest existing token.

All errors and warnings