-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is the root node of a token tree a standard group? #249
Comments
The same question goes with Do we allow? {
"$type": "color",
"aColor": {
"$value": "#ff0000"
}
} |
This isn’t explicit, you’re right, but the root node is a group node. Any node that isn’t a token node (contains There have been some proposals to add root properties (such as Out of convention, though, most people don’t place anything in the root because there’s rarely any properties that make sense to apply to all tokens ( Technically, too, the root node could be a token if it contained |
Thx @drwpow for the clear answer 👍 |
I was looking into the spec to slide in this bit of information. But I find myself not knowing where it would fit? Anyone with opinion? |
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? 👇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?
The text was updated successfully, but these errors were encountered: