Re: [community-group] Custom Types / Interpritations (#233)

> * There is `fontWeight` in the latest draft
> 
>     * I think radius is `dimension` type
> 
>     * Yes, if we have `transition` type, we need also `animation`
> 
> 
> But it is interesting idea to have custom types. How would you define the type and how would you tell any design token tool, how to deal with it?

I imagine custom types using some sort of "prefix" to indicate it is nonstandard, perhaps a namespace (`namespace:type`). There would likely be some sort of property in the root document to declare what namespaces are being used, including links to the specifications of some types (in human language, like the design tokens spec is). When a program is asked to read the design tokens, it would return an error if it does not implement every namespace to the version specified.

The idea needs a bit of refining, but I stand by the fact that if made, this should be a standard which works just as well far from now as it does today, and we cannot anticipate every need.

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


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

Received on Friday, 19 July 2024 22:40:58 UTC