You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's an example of adding a local font to a CSS stylesheet:
6
+
7
+
```css
8
+
@font-face {
9
+
font-family: Font, serif;
10
+
font-weight: 400;
11
+
font-style: normal;
12
+
src: url("fonts/font.woff2");
13
+
}
14
+
```
15
+
16
+
Note the usage of the [`url()`](https://developer.mozilla.org/en-US/docs/Web/CSS/url_function) function. This allows us to specify the path to the font that is relative to the URL of the stylesheet.
0 commit comments