I'm opening this to ideally implement Fluid Typography in the future in Claro once we have a working MVP and can start improvements. It isn't properly defined on the design side yet but it would be a huge improvement.
More about Fluid typography: https://css-tricks.com/snippets/css/fluid-typography/)
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3045797-6.patch | 34.07 KB | martijn.cuppens |
Comments
Comment #2
fhaeberle@ckrina Any plans on still implementing this?
Comment #3
ckrinaYes, the plan is implementing this at some point in the future but it's a new feature that has a very low priority for now. Anything that is Stable blocker is more important than implementing this feature.
Only #3067208: Add an option to reduce font-size/spacing (scaling) would maybe require this, and only depending of the approach taken.
So this is a new feature, nice to have, but not a stable blocker. :)
Comment #4
fhaeberle+1 consider implementing this at some point in the future after stable
Comment #5
huzookaComment #6
martijn.cuppens commentedWe recently added something new to Bootstrap called RFS (which will be enabled by default in version 5). This automates fluid resizing and is quite easy to implement (see included patch).
Comment #7
jeroentComment #8
dimiter commentedWhile I did not look in detail at Martijn's fix in #6, I recently 'learned' that you could also set a font-size using the vw-unit. That way, as the screen width decreases, the font-size gets smaller. I see that RFS also uses this trick. Would it be better if we'd set a vw-size on, say, the html/body, and then use only relative font-sizes in other places? What benefit would RFS give us that this approach does not have?
Comment #9
martijn.cuppens commentedNope, this way smaller font sizes can get too small to be readable.
RFS makes sure only the bigger font sizes resize while keeping the hierarchy in mind (eg.
<h1>will always be larger than<h2>)Read https://css-tricks.com/using-a-mixin-to-take-the-math-out-of-responsive-... and https://css-tricks.com/using-a-postcss-function-to-automate-your-respons... for more background info.
Comment #11
ckrinaLet's postpone this until Claro is stable, and revisit then the strategy to follow taking into account other options like clamp() and to what elements it needs to be implemented (only typography or spacing too).