Re: [community-group] How to do tokens that share a name with a group (#97)

I'm mostly just toying with two different approaches to the group syntax, which may necessitate a separate issue. So I'm gonna open up a new discussion to continue that thread to keep things on-topic here.

I do want to be direct about the question: **should we allow a group and a token to have the same name?**

In once sense, it makes it slightly easier to organize your tokens if you like to have things like `accent` and `accent.light` both refer to tokens.

However, it might make it very difficult to talk about (and parse) the thing called `accent`. Are you talking about the accent group, or the accent token? Say you wanted to compile the accent token into one file, but the contents of the accent group into a different file? I think it'd be a bit fuzzy as to the right way to do that.

I'd love to try and motivate the requirement that tokens and groups should be able to share a name before going deep on solving it - but please excuse me if that conversation was had in an editors meeting.


-- 
GitHub Notification of comment by ilikescience
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/97#issuecomment-1013318318 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 14 January 2022 17:30:12 UTC