Can I use custom fonts?
Use custom fonts in Avante: pick from Google Fonts in Theme settings → Typography (no code needed), or upload a WOFF/WOFF2 file with a small code edit.
Last updated
Was this helpful?
Was this helpful?
{% assign useCustomStyles = false %}{% assign useCustomStyles = true %}@font-face {
font-family: 'Your Font Name';
src: url('your-font-regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Your Font Name';
src: url('your-font-bold.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
}
:root {
--base-font-family: 'Your Font Name', sans-serif;
}.button,
.shopify-challenge__button,
.shopify-payment-button__button,
button[type="submit"],
a.button,
.product-form__submit,
.cart__checkout-button {
font-family: 'Your Font Name', sans-serif;
}