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
"fonts": "@font-face { font-family: \"Custom Font Name\"; src: url(\"https://...\"); }"
466
474
}
467
475
},
468
476
"displayMode": "inline",
@@ -596,7 +604,46 @@ Example usage of standardized CSS variables:
596
604
.container {
597
605
background: var(--color-background-primary);
598
606
color: var(--color-text-primary);
599
-
font: var(--font-style-body);
607
+
font-family: var(--font-sans);
608
+
}
609
+
```
610
+
611
+
#### Custom Fonts
612
+
613
+
Hosts can provide custom fonts via `styles.css.fonts`, which can contain `@font-face` rules for self-hosted fonts, `@import` statements for font services like Google Fonts, or both:
0 commit comments