Reputation: 39
@font-face {
font-family: "roboto";
font-display: swap;
font-style: normal;
font-weight: 400;
src: local("roboto") url(/public/assets/fonts/roboto.woff2);
}
1: https://i.sstatic.net/rti1W.png
If will add the downloaded font in the scss file of react so compiler will be show this error. What can I do?
Upvotes: 0
Views: 205
Reputation: 17358
You are missing a semicolon after the font-family declaration:
@font-face {
font-family: "roboto"; // <-- Here
font-display: swap;
font-style: normal;
font-weight: 400;
src: local("roboto") url(/public/assets/fonts/roboto.woff2);
}
Which will cause a compiler error for SCSS.
Upvotes: 1