andy-note-nuxt 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/assets/css/main.css +16 -11
- package/package.json +1 -1
package/app/assets/css/main.css
CHANGED
|
@@ -7,20 +7,25 @@
|
|
|
7
7
|
|
|
8
8
|
/* Fonts — @import MUST precede @tailwind directives per CSS spec.
|
|
9
9
|
Local @fontsource packages = self-host (no FOUT, no third-party request).
|
|
10
|
-
We import only the weights
|
|
10
|
+
We import only the weights actually referenced by the layer:
|
|
11
11
|
- Space Grotesk 500 → LocalStorageChecklist `.lsc-label`
|
|
12
12
|
- Space Grotesk 700 → every `font-bold` headline/label
|
|
13
13
|
- Literata 400 / 400-italic / 600 → prose body / <em> / <strong>
|
|
14
|
-
|
|
15
|
-
cyrillic
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
@import
|
|
14
|
+
The non-`latin-` entry ships @font-face for every unicode subset
|
|
15
|
+
(cyrillic, greek, latin-ext, vietnamese, latin). Each block carries a
|
|
16
|
+
`unicode-range` so the browser only downloads the woff2 that actually
|
|
17
|
+
maps to glyphs on the page — Vietnamese consumers get latin + vietnamese
|
|
18
|
+
subsets, latin-only consumers get just latin. Earlier we narrowed to
|
|
19
|
+
`latin-<weight>.css` to shave a few KB of @font-face rules; that broke
|
|
20
|
+
Vietnamese UI strings (poe1/poe2 nav, site description, builds) because
|
|
21
|
+
characters like ầ ế ợ have no @font-face declaration claiming them and
|
|
22
|
+
fell back to Arial. Reverted: subset gating now lives in unicode-range
|
|
23
|
+
inside the woff2 fetches, not in the @import surface. */
|
|
24
|
+
@import "@fontsource/space-grotesk/500.css";
|
|
25
|
+
@import "@fontsource/space-grotesk/700.css";
|
|
26
|
+
@import "@fontsource/literata/400.css";
|
|
27
|
+
@import "@fontsource/literata/400-italic.css";
|
|
28
|
+
@import "@fontsource/literata/600.css";
|
|
24
29
|
|
|
25
30
|
/* ===== Fallback @font-face overrides — CLS 0.12 → 0.00 =====
|
|
26
31
|
While the real WOFF2 is in flight, `font-display: swap` paints with a
|
package/package.json
CHANGED