Re: [community-group] $type should be a required property (#139)

> Using $type for every token also adds security that an alias matches the expected type for the token.

Hehe, this is the one exception where I think `$type` can not be set.

A background color and a background image will have different types as tokens but might be able to be assigned to the same property by consumers.

If tokens with references as values have a type, it will no longer be possible to change the type at all for the source token. Each attempt will just be an error.

----

It might be interesting to have a specialised `diff` and validation tool for token consumers. You could feed this 2 token files and it could tell you if any types have changed.

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


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

Received on Wednesday, 13 July 2022 06:34:26 UTC