Feature Request: ability to use clamp with fonts and for other unit based settings

Prior to responsive I’ve been using clamp with custom CSS for text. This works really well.

With responsive options the way I would use this would be to set the mobile size to the smallest font, the 1200 and greater to the biggest size and then use clamp across the rest so the other sizes inherit clamp so the font adjusts smoothly as the screen size changes.

3 Likes

On the roadmap! The min and max functions will be supported as well. It will still be a bit awkward to get those typed in since they can get rather long (especially if you’re nesting calc as well) but it will at least be functional and not be treated as invalid input. This could be in as early as the next release (Pro 5.1)

2 Likes

are there any news on this?
thanks in advance

Pretty sure you can type in clamp() in font fields now, at least in my shallow tests. I can add a note to add it to the unit selector similar to calc().

ah yes sorry… it works
cheers

1 Like