Text
Font Family
Setting up the site's font family under Font Family variables ensures consistent typography throughout the site and makes it easy to update the font family globally without having to change each element individually.
Font Size
S2 applied Fluid Type Scale on some key tags and classes, including:
Body
,text-base
text-sm
,text-xs
,text-2xs
,text-3xs
text-lg
,text-xl
,text-2xl
,text-3xl
Heading 1
~Heading 6
h1
~h6
In S2, we also have these variables for font sizes under Text > Font Size in the Variables panel:
3xs
← 2xs
← xs
← sm
← base
→ lg
→ xl
→ 2xl
→ 3xl
Ideally, we would like to apply the fluid values to these variables. The code would look like this if we use custom CSS:
This allows other classes and elements to use font sizes that closely follow the Fluid Type Scale. Besides, once Webflow releases support for custom variable values, upgrading will be effortless.
Last updated