Skip to content

T1004: Unsupported token type ​

Cause ​

The token has a $type Tessera does not support. Supported: color, dimension, duration, number, fontFamily, fontWeight, cubicBezier, strokeStyle, shadow, border and transition.

Example ​

text
// base.tokens.json
{
  "t": {
    "$type": "typography",
    "$value": {}
  }
}

What you see ​

text
ERROR  T1004  base.tokens.json  t
  Unsupported $type "typography". Supported types: color, dimension, duration, number, fontFamily, fontWeight, cubicBezier, strokeStyle, shadow, border, transition.
  Run `tessera explain T1004` for details.

Fix ​

Split a composite such as typography into tokens of supported types (a fontFamily, a dimension, a number).

All errors and warnings