这是indexloc提供的服务,不要输入任何密码
Skip to content

Is the root node of a token tree a standard group? #249

@nclsndr

Description

@nclsndr

I couldn't find this detail in the current spec: Do we consider the root node of a token tree a standard group?
Said differently, can I have $description and/or $extensions at the root level? 👇

{
  "$description": "Tokens from brand A",
  "color": {
    "$type": "color",
    "$value": "#ff0000"
  }
}

It seems giving the root node the group definition opens opportunity to store global metadata. But becomes harder to work with, anytime there're more than 1 tokens file to handle.

Is there a decision about this already?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions