Skip to content

$extends bug #679

@drwpow

Description

@drwpow

Versions

@alpha

Node.js version

24

OS + version

26.3

Description

From Discord:

Are extends only valid if I also overwrite values? Or can they operate in isolation?

I've got my new T1 tokens with lightBlue 100-900:

{
  "color": {
    "lightBlue": {
      "100": {
        "$value": {
          "colorSpace": "hsl",
          "components": [193, 82, 89],
          "alpha": 1
        },
        "$description": "#ccf0fa"
      }
    }
  }
}

We're mapping legacy naming to this to avoid breaking changes while we go through deprecation, so I tried extending all the sub-values, just under the old name, but it just, doesn't render this out to CSS:

{
  "color": {
    "$type": "color",
    "light-blue": {
      "$extends": "{forge.color.lightBlue}",
      "$deprecated": "Use forge.color.lightBlue.*",
      "$description": "Deprecated"
    }
  }
}

Reproduction

(see previous)

Expected result

No bug

Extra

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions