Currently, I am working on setting up a @font-face
in my index.css file:
@font-face {
font-family: "Raleway";
src: url(../assets/fonts/Raleway/Raleway-VariableFont_wght.ttf) format(truetype),
}
Next, I am trying to apply this font family by specifying it in the font-family
property within the body
tag:
body {
position: relative;
font-family: "Raleway";
overflow-x: hidden;
overflow-y: auto;
}
Even though I have imported the index.css file into my index.js
, the specified font is still not being applied to the body.