Re: [community-group] Remove REM/EM from specification? (#218)

Came here to open the same discussion. 

We know design tokens have core principles, and one of them is “platform agnostic”.

Most examples in the spec use CSS-ready raw values, which is misleading since doesn't illustrate the concept of “transforming the token for different platforms”.

For example, `rem` may be supported by iOS and Android, **but you still need an important part  to calculate the rem value, the base font-size, which is different in each platform.** So a token saying “1rem” will be X on iOS and Y on the web. This rem calculation is part of the conversion and so outside the spec. 

Now, most tools use absolute values to do design (px or pt), and that unit should be used as raw values for tokens, then converted by authors providing the additional info. 

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


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

Received on Thursday, 22 June 2023 05:40:30 UTC