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.
@@ -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/subsets actually referenced by the layer:
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
- `latin-<weight>.css` ships only the latin @font-face rule, skipping the
15
- cyrillic / greek / vietnamese / latin-ext declarations whose subsets
16
- never get fetched anyway (unicode-range gates the WOFF2 request, but the
17
- @font-face rules themselves still pad critical CSS). Consumers serving
18
- non-latin content should override main.css with the broader imports. */
19
- @import "@fontsource/space-grotesk/latin-500.css";
20
- @import "@fontsource/space-grotesk/latin-700.css";
21
- @import "@fontsource/literata/latin-400.css";
22
- @import "@fontsource/literata/latin-400-italic.css";
23
- @import "@fontsource/literata/latin-600.css";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "andy-note-nuxt",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Brutalist-terminal Nuxt Content theme for personal notes, guides, and second-brain knowledge bases. Use as a Nuxt layer.",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",