Skip to content

T1014: Invalid theme file ​

Cause ​

A theme file sets $attribute or $auto to something invalid. $attribute is a lowercase name (theme, density); $auto is a media feature such as prefers-color-scheme: dark.

Example ​

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

// dark.tokens.json
{
  "$extends": "base",
  "$attribute": "Theme"
}

What you see ​

text
ERROR  T1014  dark.tokens.json
  "$attribute" must be a lowercase name such as "theme" or "density", got "Theme".
  Run `tessera explain T1014` for details.

Fix ​

Use a lowercase attribute name, and a full media feature for $auto.

All errors and warnings