Replies: 1 comment
-
These worked for me: custom-font path:
@font-face {
font-family: "custom-font";
src: url("/fonts/custom-font.woff2") format("woff2");
}
...
extend: {
...
fontFamily: {
"sans": ["custom-font", "sans-serif"],
},
... You can also just use this if you don't want to build the theme css:
@font-face {
font-family: "custom-font";
src: url("/fonts/custom-font.woff2") format("woff2");
}
html {
font-family: custom-font, sans-serif;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
I am trying to add custom font from local source, however, it is not applied. Is there anything that I miss?
What I did so far:
custom.css
custom.css
is omitted after building theme css from source and I added"./assets/css/custom.css
fornpm run build
command script.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions