Replies: 3 comments 5 replies
-
This is most likely the domain of the bundler. Are you using one of the vite starter templates? |
Beta Was this translation helpful? Give feedback.
5 replies
-
For newcomers, this NPM package is a good choice, https://github.com/fontsource/fontsource |
Beta Was this translation helpful? Give feedback.
0 replies
-
Though this is more about vite, I figure others might find the steps useful...
@font-face {
font-family: "Quicksand";
src: url("/fonts/Quicksand-VariableFont_wght.ttf") format("truetype-variations");
/* variable fonts support this: two values specifies a range */
font-weight: 300 700;
font-style: normal;
}
body {
font-family: Quicksand, 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
-
I am absolutely loving working with Solid so far, but I do have one issue.
In my index.css file I import a font file using @font-face and with the url './src/fonts/[font].woff2'. However when I build using npm run build I notice that the font file is not being put into the dist/ folder, which causes the font to not exist on the production build.
Am I doing something wrong or is this an issue other people are facing as well?
Beta Was this translation helpful? Give feedback.
All reactions