Re: [community-group] How to deal with "fluid" dimensions (#188)

Hm… @acstll `clamp` is a `CSS` function, you can do many things with it, and "fluid typography" here is a trick. I don't think there should be any declared types for tricks unless we have an official solution. Also it's very specific and work for web only. 

Because you use this approach on web, why don't you create a `@mixin` for this or a `CSS` variables and store it in the web lib. Then you can take design tokens and your mixins and create a file `typography.css` where you will sore `CSS` classes like `header1`, `header2` etc. with included mixins, media-queries etc.

<img width="536" alt="image" src="https://user-images.githubusercontent.com/18498712/204053517-7dcc3742-c134-46c3-abe9-3c7a17e01002.png">


In my opinion it better to isolate `CSS` logic inside the web UI lib. If you need it in other projects, then just import it

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


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

Received on Friday, 25 November 2022 20:41:42 UTC