Replies: 2 comments
-
If you are looking to point to a locally installed version of Roboto, then |
Beta Was this translation helpful? Give feedback.
0 replies
-
Check my implementation import { globalFontFace } from '@vanilla-extract/css';
globalFontFace('Plus Jakarta Sans', {
fontWeight: 400,
src: `url('/assets/fonts/PlusJakartaSans/PlusJakartaSans-Regular.ttf') format('truetype')`,
});
globalFontFace('Plus Jakarta Sans', {
fontWeight: 700,
src: `url('/assets/fonts/PlusJakartaSans/PlusJakartaSans-Bold.ttf') format('truetype')`,
}); |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys. I need your help. I'm trying to connect local fonts to my project, but it doesn't work.
I would be very grateful if someone could help me.
Bundler - Wepback 5 ( I don't use template Create-React-App) In the config settings:
and my code, with the connection of fonts, which doesn't work:
Beta Was this translation helpful? Give feedback.
All reactions