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 now ship as `.woff2` assets next to the stylesheets, with only the two dominant faces inlined.
7
-
A Content-Security-Policy that lists `font-src` now needs `'self'` or the serving origin instead of `data:`.
7
+
8
+
Breaking changes:
9
+
10
+
- Preserve the published `dist/assets` directory next to copied stylesheets so their relative font URLs keep resolving.
11
+
- If a Content Security Policy defines `font-src`, add `'self'` or the serving origin while retaining `data:` for the inlined faces.
12
+
13
+
Only Poppins latin 400 and 600 are inline. Other weights, Inter, and non-ASCII glyphs use `font-display: swap` assets and may briefly render in the fallback font; preload the relevant files when that flash of unstyled text (FOUT) is unacceptable.
Copy file name to clipboardExpand all lines: apps/docs/src/content/docs/get-started/theming.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,9 @@ The aggregated `style.css` ships with the SDK's default visual layer. Override C
9
9
10
10
## Typography
11
11
12
-
Poppins is bundled into `style.css` as inline base64 woff2 (latin + latin-ext, weights 300–700). No external font CDN is contacted at runtime — works under strict CSP, behind GDPR-controlled consent flows, and in air-gapped deployments.
12
+
`style.css` inlines Poppins latin 400 and 600 and references the remaining Poppins and Inter faces in the adjacent `assets` directory. Preserve that `dist` layout when copying the stylesheet. A Content Security Policy (CSP) that defines `font-src` must allow both `data:` and `'self'` or the origin serving those assets. No external font CDN is contacted at runtime, so the SDK still works behind consent controls and in air-gapped deployments.
13
+
14
+
Other weights, Inter, and non-ASCII glyphs use `font-display: swap` assets. They can briefly appear in the fallback font while the matching file loads; preload the relevant `.woff2` files when that flash of unstyled text (FOUT) is unacceptable.
13
15
14
16
Override `--wb-font-family` to use a different face:
0 commit comments