Replies: 2 comments 1 reply
-
Wouldn't it be better to apply font-size: clamp([min]rem, [v]vw + [r]rem, [max]rem);
The above description is from Adrian Bece 's tutorial (https://www.smashingmagazine.com/2022/01/modern-fluid-typography-css-clamp/) |
Beta Was this translation helpful? Give feedback.
-
If you want to map things out a bit more in line with typographic scales, the Utopia type calculator is fantastic ( What's interesting is, if you don't use Utopia has a fluid space calculator as well, which is pretty similar to the type scale without (there is a small issue with the upper limit though, as it's also defined within a media query. custom media queries would solve this, but until they're supported it could lead to issues if someone tries to update that value if they aren't using PostCSS, so maybe it's not worth the trouble). Vertical spacingAs I mentioned on the Discord, it might be worth having fluid sizes based on For something like this something like I think having them as the same scale as the |
Beta Was this translation helpful? Give feedback.
-
some of the fluid sizes do most their scaling in the lower widths, while others in the larger widths. using a multiplier in the equation could enable controlling these flow points better, for hopefully a more linear experience between lower and upper bounds.
too much? the fluid props are really fun to use, but i feel it needs a tiny bit more variety and a bit more consistency.
Beta Was this translation helpful? Give feedback.
All reactions