Skip to content

T1015: Duplicate theme ​

Cause ​

Two theme files have the same name for the same attribute.

Example ​

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

// a/dark.tokens.json
{
  "$extends": "base"
}

// b/dark.tokens.json
{
  "$extends": "base"
}

What you see ​

text
ERROR  T1015  b/dark.tokens.json
  Theme "dark" for data-theme is already defined in a/dark.tokens.json.
  Run `tessera explain T1015` for details.

Fix ​

Rename one theme, or give it a different $attribute.

All errors and warnings