Convert your variable font to .woff2, upload it via Project Settings > Fonts in Webflow.
Add a custom @font-face rule using the uploaded file URL in the site’s head or embed.
Apply the font using custom classes and CSS with font-family
and font-variation-settings
.
Use Webflow Designer for layout with fallback fonts, and style with your custom class.
Webflow does not currently support full native integration of custom variable fonts, but you can still implement them manually with a few workarounds. While Webflow doesn’t offer specific documentation or blog articles on this, here’s how you can achieve variable font support based on Webflow best practices and community resources.
font-variation-settings
.Example:
@font-face { font-family: 'MyVariableFont'; src: url('https://cdn.prod.website-files.com/YOUR-PROJECT-ID/variable-font.woff2') format('woff2'); font-weight: 100 900; font-stretch: 75% 125%;}
(URLs must be exact from your Webflow file uploads and cannot be edited within the designer.)
font-variation-settings
or shorthand.Example:
.my-text { font-family: 'MyVariableFont', sans-serif; font-variation-settings: 'wght' 700, 'wdth' 100;}
.my-text
class to use the variable font on publish.While Webflow lacks native variable font tools, you can manually upload, define, and implement variable fonts using custom code. Upload the font file, define @font-face and CSS rules, and apply them through classes or embeds. Look to the Webflow Forum and community posts for live examples and best practices.