@takazudo/zudo-doc 9.1.5 → 10.0.0

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/CHANGELOG.md CHANGED
@@ -6,7 +6,20 @@ The format is based on Keep a Changelog, and release notes are generated from th
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- No unreleased changes.
9
+ ## [10.0.0] - 2026-11-10
10
+
11
+ ### Breaking Changes
12
+
13
+ - `themePack: "default"` now selects Graphite instead of Classic: `default` is an alias for Graphite, the default look, and is no longer a pack of its own. The Classic pack moves to the slug `classic`. To keep the Classic look, change `themePack: "default"` to `themePack: "classic"`, and `"default"` to `"classic"` in an explicit `themePacks` list. `zudo-doc theme apply default` now writes `themePack: "graphite"`. (f3f3dd66)
14
+ - A `themePacks` list that contains both `"default"` and `"graphite"` now fails the build as a duplicate. (f3f3dd66)
15
+ - A reader who picked Classic in the switcher before this release has `default` stored in `localStorage["zudo-doc-theme-pack"]`; that slug no longer names a pack, so the page shows the configured pack until the reader picks again. (f3f3dd66)
16
+ - Package API: `DEFAULT_THEME_PACK_SLUG` is replaced by `CLASSIC_THEME_PACK_SLUG` (`"classic"`), and `DEFAULT_THEME_PACK_ALIAS` plus `resolveThemePackAlias()` are added to `@takazudo/zudo-doc/theme-packs-registry`. The bundled pack directory `theme-packs/default/` is now `theme-packs/classic/`, and a pack directory named `default` fails validation. (f3f3dd66)
17
+ - Require the ZFB 6.0.1 family (`^6.0.1`). ZFB 6 bundles with Rolldown, including TypeScript config and plugins, and removed bundler selectors must stay unset. (9e586638)
18
+ - The `@takazudo/zudo-doc-history-server` peer floor moves from `^9.0.0` to `^10.0.0`. Projects that enable document history need history-server 10.x.
19
+
20
+ ### Other Changes
21
+
22
+ - Adopt ZDTP 0.9.3. (e7bd75da)
10
23
 
11
24
  ## [9.1.5] - 2026-11-08
12
25
 
package/dist/catalog.js CHANGED
@@ -3,7 +3,7 @@
3
3
  // validated src/theme-packs/<slug>/meta.json registry. Re-run `pnpm build`
4
4
  // to regenerate after adding, removing, or editing a theme pack.
5
5
  // Catalog schemaVersion 2 is distinct from each pack's meta.json schemaVersion 1.
6
- const catalog = {"schemaVersion":2,"packs":[{"slug":"graphite","meta":{"schemaVersion":1,"slug":"graphite","name":"Graphite","description":"Soft neutral graphite — low-glare grey paper by day, deep graphite at night, one warm copper accent, quiet hairline rules. The configured default.","mode":"dark","version":"1.0.0","fonts":{"sans":"System","mono":"System","loaded":[]},"preview":{"light":{"bg":"#F2F3F2","fg":"#3A4146","accent":"#9A4919","syntax":{"keyword":"#9A4919","string":"#4E6552","comment":"#566168","callable":"#4B6373"}},"dark":{"bg":"#242629","fg":"#D3D5D9","accent":"#E9AA79","syntax":{"keyword":"#E9AA79","string":"#9DBA9A","comment":"#ADB2B8","callable":"#9DB6C5"}}}},"hasStylesheet":true},{"slug":"default","meta":{"schemaVersion":1,"slug":"default","name":"Classic","description":"Classic — the original zudo-doc default look. No pack stylesheet is loaded — your project's configured color scheme and fonts render unchanged.","mode":"dark","version":"1.0.0","fonts":{"sans":"System","mono":"System","loaded":[]},"preview":{"light":{"bg":"oklch(0.965 0.004 65)","fg":"oklch(0.185 0.005 65)","accent":"oklch(0.470 0.120 56)","syntax":{"keyword":"oklch(0.470 0.120 56)","string":"oklch(0.470 0.140 145)","comment":"oklch(0.480 0.008 65)","callable":"oklch(0.485 0.122 245)"}},"dark":{"bg":"oklch(0.185 0.005 65)","fg":"oklch(0.965 0.004 65)","accent":"oklch(0.700 0.158 62)","syntax":{"keyword":"oklch(0.700 0.158 62)","string":"oklch(0.680 0.145 145)","comment":"oklch(0.705 0.008 65)","callable":"oklch(0.680 0.130 245)"}}}},"hasStylesheet":false},{"slug":"academia","meta":{"schemaVersion":1,"slug":"academia","name":"Academia","description":"A LaTeX paper for the web — white page, Computer-Modern-black ink, hyperref navy links, numbered theorem admonitions, booktabs tables. Dark mode is a scholarly slate.","mode":"light","version":"1.0.3","fonts":{"sans":"Source Serif 4","mono":"Courier Prime","loaded":["Source Serif 4","Courier Prime"]},"preview":{"light":{"bg":"#ffffff","fg":"#141414","accent":"#1c3d8f","syntax":{"keyword":"#1c3d8f","string":"#93262a","comment":"#2e6b2e","callable":"#295e80"}},"dark":{"bg":"#1d222b","fg":"#e7eaf0","accent":"#97b8ee","syntax":{"keyword":"#a3c0f2","string":"#e0a09a","comment":"#8cbc8c","callable":"#85c2da"}}}},"hasStylesheet":true},{"slug":"bauhaus","meta":{"schemaVersion":1,"slug":"bauhaus","name":"Bauhaus","description":"Primary triad as structure — gallery white, near-black ink, and red, yellow, blue doing structural work: circle, triangle, square markers, thick geometric rules, zero radius.","mode":"light","version":"1.0.1","fonts":{"sans":"Jost","mono":"Space Mono","display":"Archivo Black","loaded":["Jost","Archivo Black","Space Mono"]},"preview":{"light":{"bg":"#ffffff","fg":"#141414","accent":"#b3231b","syntax":{"keyword":"#b3231b","string":"#6d5800","comment":"#63615a","callable":"#1c4bbe"}},"dark":{"bg":"#18181b","fg":"#f0efe9","accent":"#ff7d70","syntax":{"keyword":"#ff7d70","string":"#e9ce6a","comment":"#999689","callable":"#8fb0ff"}}}},"hasStylesheet":true},{"slug":"beacon","meta":{"schemaVersion":1,"slug":"beacon","name":"Beacon","description":"WCAG-AAA high contrast — 7:1+ ink everywhere, 3px focus rings, always-underlined links. Clarity as beauty.","mode":"light","version":"1.0.1","fonts":{"sans":"Atkinson Hyperlegible","mono":"Atkinson Hyperlegible Mono","loaded":["Atkinson Hyperlegible","Atkinson Hyperlegible Mono"]},"preview":{"light":{"bg":"#ffffff","fg":"#000000","accent":"#0044cc","syntax":{"keyword":"#0044cc","string":"#a50000","comment":"#595959","callable":"#00287a"}},"dark":{"bg":"#000000","fg":"#ffffff","accent":"#6db3ff","syntax":{"keyword":"#6db3ff","string":"#ff8f8f","comment":"#b3b3b3","callable":"#a8d1ff"}}}},"hasStylesheet":true},{"slug":"blueprint","meta":{"schemaVersion":1,"slug":"blueprint","name":"Blueprint","description":"Cyanotype drafting sheet — pale-cyan linework on prussian grid paper, title-block caps, dashed rules, mono-caps labels. Light mode is the vellum original.","mode":"dark","version":"1.0.2","fonts":{"sans":"Inter","mono":"IBM Plex Mono","display":"Josefin Sans","loaded":["Inter","Josefin Sans","IBM Plex Mono"]},"preview":{"light":{"bg":"oklch(0.965 0.012 235)","fg":"oklch(0.28 0.05 253)","accent":"oklch(0.44 0.095 235)","syntax":{"keyword":"oklch(0.46 0.1 80)","string":"oklch(0.43 0.085 195)","comment":"oklch(0.5 0.03 248)","callable":"oklch(0.44 0.09 235)"}},"dark":{"bg":"oklch(0.27 0.055 252)","fg":"oklch(0.965 0.01 220)","accent":"oklch(0.86 0.09 205)","syntax":{"keyword":"oklch(0.87 0.12 95)","string":"oklch(0.83 0.1 185)","comment":"oklch(0.72 0.032 235)","callable":"oklch(0.83 0.085 215)"}}}},"hasStylesheet":true},{"slug":"botanica","meta":{"schemaVersion":1,"slug":"botanica","name":"Botanica","description":"A vintage botanical plate — herbarium cream, deep green ink, engraved double rules, Latin small-caps plate labels.","mode":"light","version":"1.0.1","fonts":{"sans":"Crimson Pro","mono":"Courier Prime","display":"Cormorant Garamond","loaded":["Cormorant Garamond","Crimson Pro","Courier Prime"]},"preview":{"light":{"bg":"oklch(0.956 0.02 92)","fg":"oklch(0.29 0.03 95)","accent":"oklch(0.42 0.09 152)","syntax":{"keyword":"oklch(0.4 0.075 60)","string":"oklch(0.43 0.095 150)","comment":"oklch(0.48 0.04 95)","callable":"oklch(0.43 0.075 205)"}},"dark":{"bg":"oklch(0.215 0.022 160)","fg":"oklch(0.92 0.02 95)","accent":"oklch(0.78 0.09 148)","syntax":{"keyword":"oklch(0.82 0.085 80)","string":"oklch(0.8 0.095 145)","comment":"oklch(0.7 0.03 110)","callable":"oklch(0.78 0.075 200)"}}}},"hasStylesheet":true},{"slug":"broadsheet","meta":{"schemaVersion":1,"slug":"broadsheet","name":"Broadsheet","description":"Newspaper editorial — Playfair masthead, Oxford ink rules, a red drop cap, and a night-edition dark mode.","mode":"light","version":"1.0.3","fonts":{"sans":"Source Serif 4","mono":"Courier Prime","display":"Playfair Display","loaded":["Playfair Display","Source Serif 4","Courier Prime"]},"preview":{"light":{"bg":"oklch(0.955 0.012 92)","fg":"oklch(0.205 0.012 80)","accent":"oklch(0.455 0.155 27)","syntax":{"keyword":"oklch(0.445 0.155 27)","string":"oklch(0.45 0.075 60)","comment":"oklch(0.5 0.016 78)","callable":"oklch(0.42 0.09 252)"}},"dark":{"bg":"oklch(0.185 0.012 75)","fg":"oklch(0.935 0.015 90)","accent":"oklch(0.7 0.145 27)","syntax":{"keyword":"oklch(0.72 0.14 27)","string":"oklch(0.79 0.07 70)","comment":"oklch(0.7 0.02 85)","callable":"oklch(0.74 0.08 248)"}}}},"hasStylesheet":true},{"slug":"brutalist","meta":{"schemaVersion":1,"slug":"brutalist","name":"Brutalist","description":"Raw concrete web — stark black on white, 4px slab borders, zero radius, hazard-orange tape. Structure you can see.","mode":"light","version":"1.0.4","fonts":{"sans":"Space Grotesk","mono":"IBM Plex Mono","display":"Archivo Black","loaded":["Archivo Black","Space Grotesk","IBM Plex Mono"]},"preview":{"light":{"bg":"#ffffff","fg":"#000000","accent":"#c2410c","syntax":{"keyword":"#c2410c","string":"#9a3412","comment":"#767676","callable":"#000000"}},"dark":{"bg":"#0d0d0d","fg":"#f5f5f5","accent":"#ff6a1f","syntax":{"keyword":"#ff7a2e","string":"#ffb38a","comment":"#878787","callable":"#ffffff"}}}},"hasStylesheet":true},{"slug":"drift","meta":{"schemaVersion":1,"slug":"drift","name":"Drift","description":"Floaty slate-blue comfort dark for long reading — soft glows in place of borders, gentle elevation, relaxed Plex type.","mode":"dark","version":"1.0.2","fonts":{"sans":"IBM Plex Sans","mono":"IBM Plex Mono","loaded":["IBM Plex Sans","IBM Plex Mono"]},"preview":{"light":{"bg":"#edf2f6","fg":"#24303d","accent":"#236799","syntax":{"keyword":"#49539c","string":"#2b754f","comment":"#596673","callable":"#00688d"}},"dark":{"bg":"#181f26","fg":"#d6dee4","accent":"#6cafd9","syntax":{"keyword":"#9caeee","string":"#88cba4","comment":"#8494a4","callable":"#75c6e1"}}}},"hasStylesheet":true},{"slug":"eink","meta":{"schemaVersion":1,"slug":"eink","name":"E-Ink","description":"E-reader grayscale — warm paper, near-black ink, shadowless hairline chrome, zero radius. Code is told by weight, slant, and gray value; only diffs keep a trace of ink-blue and ink-red.","mode":"light","version":"1.0.1","fonts":{"sans":"EB Garamond","mono":"Courier Prime","loaded":["EB Garamond","Courier Prime"]},"preview":{"light":{"bg":"oklch(0.956 0.007 90)","fg":"oklch(0.24 0.012 85)","accent":"oklch(0.155 0.01 85)","syntax":{"keyword":"oklch(0.18 0.01 85)","string":"oklch(0.46 0.012 85)","comment":"oklch(0.505 0.01 85)","callable":"oklch(0.31 0.012 85)"}},"dark":{"bg":"oklch(0.215 0.008 80)","fg":"oklch(0.885 0.012 85)","accent":"oklch(0.955 0.008 85)","syntax":{"keyword":"oklch(0.96 0.008 85)","string":"oklch(0.715 0.012 85)","comment":"oklch(0.645 0.01 85)","callable":"oklch(0.82 0.01 85)"}}}},"hasStylesheet":true},{"slug":"fjord","meta":{"schemaVersion":1,"slug":"fjord","name":"Fjord","description":"Polar-night blue under a faint aurora — frost-cyan accents, icy borders, snow-white text. Cold nordic calm.","mode":"dark","version":"1.0.2","fonts":{"sans":"Inter","mono":"JetBrains Mono","loaded":["Inter","JetBrains Mono"]},"preview":{"light":{"bg":"oklch(0.971 0.008 230)","fg":"oklch(0.255 0.03 255)","accent":"oklch(0.455 0.092 205)","syntax":{"keyword":"oklch(0.455 0.105 250)","string":"oklch(0.495 0.105 165)","comment":"oklch(0.51 0.03 245)","callable":"oklch(0.445 0.098 202)"}},"dark":{"bg":"oklch(0.232 0.024 255)","fg":"oklch(0.93 0.012 235)","accent":"oklch(0.79 0.095 195)","syntax":{"keyword":"oklch(0.76 0.095 242)","string":"oklch(0.8 0.105 158)","comment":"oklch(0.63 0.03 245)","callable":"oklch(0.815 0.095 195)"}}}},"hasStylesheet":true},{"slug":"foundry","meta":{"schemaVersion":1,"slug":"foundry","name":"Foundry","description":"GitHub-neutral baseline — white paper, near-black ink, Primer-blue links, quiet gray rules. Restraint, perfected.","mode":"light","version":"1.0.2","fonts":{"sans":"Inter","mono":"System","loaded":["Inter"]},"preview":{"light":{"bg":"#ffffff","fg":"#1f2328","accent":"#0969da","syntax":{"keyword":"#cf222e","string":"#0a3069","comment":"#6e7781","callable":"#8250df"}},"dark":{"bg":"#0d1117","fg":"#e6edf3","accent":"#4493f8","syntax":{"keyword":"#ff7b72","string":"#a5d6ff","comment":"#8b949e","callable":"#d2a8ff"}}}},"hasStylesheet":true},{"slug":"futura-editorial","meta":{"schemaVersion":1,"slug":"futura-editorial","name":"Futura Editorial","description":"Normal-weight geometric Futura headings over Noto Sans body — clean white, near-black ink, one restrained red accent.","mode":"light","version":"1.0.2","fonts":{"sans":"Noto Sans","mono":"Space Mono","display":"Jost","loaded":["Jost","Noto Sans","Space Mono"]},"preview":{"light":{"bg":"oklch(1 0 0)","fg":"oklch(0.17 0 0)","accent":"oklch(0.505 0.18 28)","syntax":{"keyword":"oklch(0.505 0.18 28)","string":"oklch(0.47 0.09 160)","comment":"oklch(0.52 0 0)","callable":"oklch(0.45 0.1 250)"}},"dark":{"bg":"oklch(0.165 0 0)","fg":"oklch(0.935 0 0)","accent":"oklch(0.72 0.15 29)","syntax":{"keyword":"oklch(0.72 0.15 29)","string":"oklch(0.76 0.1 160)","comment":"oklch(0.63 0 0)","callable":"oklch(0.73 0.095 250)"}}}},"hasStylesheet":true},{"slug":"hearth","meta":{"schemaVersion":1,"slug":"hearth","name":"Hearth","description":"Warm cream & brick-red fireside docs — Fraunces headings, amber code blocks, ember-glow dark mode.","mode":"light","version":"1.0.4","fonts":{"sans":"Nunito","mono":"Spline Sans Mono","display":"Fraunces","loaded":["Fraunces","Nunito","Spline Sans Mono"]},"preview":{"light":{"bg":"oklch(0.958 0.02 85)","fg":"oklch(0.255 0.028 40)","accent":"oklch(0.49 0.145 31)","syntax":{"keyword":"oklch(0.48 0.148 30)","string":"oklch(0.47 0.1 135)","comment":"oklch(0.51 0.035 60)","callable":"oklch(0.45 0.092 245)"}},"dark":{"bg":"oklch(0.215 0.022 45)","fg":"oklch(0.915 0.02 80)","accent":"oklch(0.735 0.128 45)","syntax":{"keyword":"oklch(0.745 0.138 40)","string":"oklch(0.785 0.1 130)","comment":"oklch(0.645 0.032 65)","callable":"oklch(0.765 0.075 235)"}}}},"hasStylesheet":true},{"slug":"hollow","meta":{"schemaVersion":1,"slug":"hollow","name":"Hollow","description":"Dark violet space — neon pink headings, violet links, a quiet starfield, and razor-square midnight chrome.","mode":"dark","version":"1.0.2","fonts":{"sans":"Space Grotesk","mono":"Space Mono","loaded":["Space Grotesk","Space Mono"]},"preview":{"light":{"bg":"oklch(0.962 0.012 300)","fg":"oklch(0.24 0.045 295)","accent":"oklch(0.45 0.17 300)","syntax":{"keyword":"oklch(0.53 0.2 348)","string":"oklch(0.45 0.1 195)","comment":"oklch(0.51 0.035 292)","callable":"oklch(0.46 0.16 300)"}},"dark":{"bg":"oklch(0.155 0.035 295)","fg":"oklch(0.93 0.015 295)","accent":"oklch(0.74 0.14 300)","syntax":{"keyword":"oklch(0.76 0.17 347)","string":"oklch(0.83 0.1 190)","comment":"oklch(0.62 0.045 292)","callable":"oklch(0.76 0.13 300)"}}}},"hasStylesheet":true},{"slug":"ledger","meta":{"schemaVersion":1,"slug":"ledger","name":"Ledger","description":"Cream academic serif in the Tufte tradition — warm paper, ink prose, oxblood links, hairline rules, quiet code.","mode":"light","version":"1.0.2","fonts":{"sans":"Crimson Pro","mono":"IBM Plex Mono","loaded":["Crimson Pro","IBM Plex Mono"]},"preview":{"light":{"bg":"#fffff8","fg":"#16130e","accent":"#8b1a1a","syntax":{"keyword":"#8b1a1a","string":"#4e6328","comment":"#766b5c","callable":"#33586e"}},"dark":{"bg":"#191510","fg":"#e9e2d0","accent":"#d68a75","syntax":{"keyword":"#e2907c","string":"#a8b47c","comment":"#948a77","callable":"#93b4cd"}}}},"hasStylesheet":true},{"slug":"manuscript","meta":{"schemaVersion":1,"slug":"manuscript","name":"Manuscript","description":"A quiet Garamond book page — warm paper, soft ink, sepia rubrication, small-caps subheads, fleuron section marks.","mode":"light","version":"1.0.2","fonts":{"sans":"EB Garamond","mono":"Courier Prime","loaded":["EB Garamond","Courier Prime"]},"preview":{"light":{"bg":"oklch(0.963 0.013 85)","fg":"oklch(0.245 0.018 60)","accent":"oklch(0.44 0.095 55)","syntax":{"keyword":"oklch(0.455 0.13 30)","string":"oklch(0.44 0.085 150)","comment":"oklch(0.5 0.03 70)","callable":"oklch(0.435 0.09 275)"}},"dark":{"bg":"oklch(0.215 0.015 65)","fg":"oklch(0.885 0.022 80)","accent":"oklch(0.735 0.095 70)","syntax":{"keyword":"oklch(0.72 0.115 35)","string":"oklch(0.745 0.085 150)","comment":"oklch(0.645 0.03 75)","callable":"oklch(0.745 0.07 275)"}}}},"hasStylesheet":true},{"slug":"matcha","meta":{"schemaVersion":1,"slug":"matcha","name":"Matcha","description":"Green tea ceremony — deep matcha on warm cream, mincho headings, zen whitespace, tea-foam surfaces in both modes.","mode":"light","version":"1.0.3","fonts":{"sans":"Zen Kaku Gothic New","mono":"M PLUS 1 Code","display":"Shippori Mincho","loaded":["Zen Kaku Gothic New","Shippori Mincho","M PLUS 1 Code"]},"preview":{"light":{"bg":"oklch(0.973 0.012 106)","fg":"oklch(0.245 0.018 148)","accent":"oklch(0.435 0.105 142)","syntax":{"keyword":"oklch(0.418 0.105 150)","string":"oklch(0.47 0.092 106)","comment":"oklch(0.512 0.034 130)","callable":"oklch(0.438 0.082 196)"}},"dark":{"bg":"oklch(0.205 0.016 152)","fg":"oklch(0.938 0.018 106)","accent":"oklch(0.79 0.115 138)","syntax":{"keyword":"oklch(0.782 0.118 148)","string":"oklch(0.822 0.102 108)","comment":"oklch(0.668 0.034 130)","callable":"oklch(0.772 0.088 192)"}}}},"hasStylesheet":true},{"slug":"nocturne","meta":{"schemaVersion":1,"slug":"nocturne","name":"Nocturne","description":"Purple midnight — velvet aubergine depths, lavender links, and muted gold hairlines. Elegant, never neon.","mode":"dark","version":"1.0.3","fonts":{"sans":"Manrope","mono":"IBM Plex Mono","display":"Cormorant Garamond","loaded":["Cormorant Garamond","Manrope","IBM Plex Mono"]},"preview":{"light":{"bg":"oklch(0.958 0.012 300)","fg":"oklch(0.245 0.05 312)","accent":"oklch(0.455 0.15 295)","syntax":{"keyword":"oklch(0.46 0.16 295)","string":"oklch(0.5 0.105 85)","comment":"oklch(0.5 0.042 305)","callable":"oklch(0.455 0.125 265)"}},"dark":{"bg":"oklch(0.155 0.03 310)","fg":"oklch(0.922 0.018 300)","accent":"oklch(0.765 0.105 292)","syntax":{"keyword":"oklch(0.772 0.128 293)","string":"oklch(0.8 0.108 88)","comment":"oklch(0.645 0.045 302)","callable":"oklch(0.77 0.095 262)"}}}},"hasStylesheet":true},{"slug":"observatory","meta":{"schemaVersion":1,"slug":"observatory","name":"Observatory","description":"Night-sky atlas: star-field depth, constellation-line rules, nebula violet and comet gold over astronomer's navy.","mode":"dark","version":"1.0.4","fonts":{"sans":"Jost","mono":"Space Mono","display":"Josefin Sans","loaded":["Josefin Sans","Jost","Space Mono"]},"preview":{"light":{"bg":"oklch(0.965 0.012 255)","fg":"oklch(0.235 0.045 268)","accent":"oklch(0.47 0.1 75)","syntax":{"keyword":"oklch(0.46 0.14 300)","string":"oklch(0.45 0.1 162)","comment":"oklch(0.5 0.03 265)","callable":"oklch(0.46 0.11 250)"}},"dark":{"bg":"oklch(0.155 0.028 268)","fg":"oklch(0.93 0.015 255)","accent":"oklch(0.82 0.13 86)","syntax":{"keyword":"oklch(0.76 0.118 300)","string":"oklch(0.8 0.112 162)","comment":"oklch(0.61 0.038 265)","callable":"oklch(0.78 0.095 240)"}}}},"hasStylesheet":true},{"slug":"onyx","meta":{"schemaVersion":1,"slug":"onyx","name":"Onyx","description":"Luxury noir — jet black, champagne serif headings, and a single gold hairline accent. Watch-brand restraint.","mode":"dark","version":"1.0.4","fonts":{"sans":"Jost","mono":"IBM Plex Mono","display":"Cormorant Garamond","loaded":["Cormorant Garamond","Jost","IBM Plex Mono"]},"preview":{"light":{"bg":"oklch(0.972 0.005 85)","fg":"oklch(0.22 0.012 80)","accent":"oklch(0.5 0.105 80)","syntax":{"keyword":"oklch(0.51 0.105 82)","string":"oklch(0.47 0.07 155)","comment":"oklch(0.5 0.015 85)","callable":"oklch(0.45 0.045 250)"}},"dark":{"bg":"oklch(0.145 0.003 80)","fg":"oklch(0.92 0.022 88)","accent":"oklch(0.79 0.115 88)","syntax":{"keyword":"oklch(0.8 0.115 88)","string":"oklch(0.78 0.07 155)","comment":"oklch(0.62 0.02 85)","callable":"oklch(0.82 0.04 250)"}}}},"hasStylesheet":true},{"slug":"phosphor","meta":{"schemaVersion":1,"slug":"phosphor","name":"Phosphor","description":"Green CRT terminal — phosphor glow, scanlines, inverse-video nav, monospace everything.","mode":"dark","version":"1.0.2","fonts":{"sans":"JetBrains Mono","mono":"JetBrains Mono","display":"VT323","loaded":["VT323","JetBrains Mono"]},"preview":{"light":{"bg":"oklch(0.955 0.014 150)","fg":"oklch(0.28 0.058 150)","accent":"oklch(0.42 0.13 150)","syntax":{"keyword":"oklch(0.4 0.13 148)","string":"oklch(0.39 0.095 165)","comment":"oklch(0.49 0.05 150)","callable":"oklch(0.43 0.095 200)"}},"dark":{"bg":"oklch(0.135 0.014 150)","fg":"oklch(0.845 0.145 150)","accent":"oklch(0.87 0.215 148)","syntax":{"keyword":"oklch(0.9 0.21 148)","string":"oklch(0.9 0.12 165)","comment":"oklch(0.58 0.062 150)","callable":"oklch(0.83 0.125 200)"}}}},"hasStylesheet":true},{"slug":"quiet-slate","meta":{"schemaVersion":1,"slug":"quiet-slate","name":"Quiet Slate","description":"Quiet blue-grey slate — misty slate paper by day, cool slate at night, a muted copper accent and quiet hairline rules.","mode":"dark","version":"1.0.0","fonts":{"sans":"System","mono":"System","loaded":[]},"preview":{"light":{"bg":"#EDF1F3","fg":"#3E4953","accent":"#95491E","syntax":{"keyword":"#95491E","string":"#4D6356","comment":"#52606D","callable":"#476274"}},"dark":{"bg":"#2B3238","fg":"#D8DDE0","accent":"#E4AF89","syntax":{"keyword":"#E4AF89","string":"#A9BFAD","comment":"#B3BFC9","callable":"#A3BDCD"}}}},"hasStylesheet":true},{"slug":"riso","meta":{"schemaVersion":1,"slug":"riso","name":"Riso","description":"Risograph duotone print — warm paper, two inks (riso blue + fluorescent coral), misregistered offset shadows, and a soft linear paper grain.","mode":"light","version":"1.0.1","fonts":{"sans":"Space Grotesk","mono":"Space Mono","display":"Archivo Black","loaded":["Space Grotesk","Archivo Black","Space Mono"]},"preview":{"light":{"bg":"#f9f3e5","fg":"#1d3345","accent":"#0d5c94","syntax":{"keyword":"#a02310","string":"#0d5e6e","comment":"#4d5c66","callable":"#0b5b9b"}},"dark":{"bg":"#101d28","fg":"#f1e9d8","accent":"#58b8e8","syntax":{"keyword":"#ff8d72","string":"#66d4cf","comment":"#93a4ad","callable":"#5aaef5"}}}},"hasStylesheet":true},{"slug":"sakura","meta":{"schemaVersion":1,"slug":"sakura","name":"Sakura","description":"Cherry-blossom pastels — blush-white paper, plum ink, and rose accents on petal-soft corners; dark mode is yozakura, night blossoms under lantern-pink light.","mode":"light","version":"1.0.2","fonts":{"sans":"Nunito","mono":"M PLUS 1 Code","display":"Shippori Mincho","loaded":["Nunito","Shippori Mincho","M PLUS 1 Code"]},"preview":{"light":{"bg":"oklch(0.977 0.009 350)","fg":"oklch(0.29 0.055 340)","accent":"oklch(0.5 0.168 358)","syntax":{"keyword":"oklch(0.5 0.168 358)","string":"oklch(0.49 0.115 150)","comment":"oklch(0.5 0.04 340)","callable":"oklch(0.49 0.135 300)"}},"dark":{"bg":"oklch(0.215 0.03 330)","fg":"oklch(0.935 0.014 350)","accent":"oklch(0.78 0.115 355)","syntax":{"keyword":"oklch(0.79 0.125 355)","string":"oklch(0.78 0.115 150)","comment":"oklch(0.71 0.038 345)","callable":"oklch(0.78 0.105 300)"}}}},"hasStylesheet":true},{"slug":"scandi","meta":{"schemaVersion":1,"slug":"scandi","name":"Scandi","description":"Hygge minimalism — oat linen, sage & clay, pill nav actives and 8px corners; night mode is warm charcoal lit by candle amber.","mode":"light","version":"1.0.1","fonts":{"sans":"Manrope","mono":"Spline Sans Mono","loaded":["Manrope","Spline Sans Mono"]},"preview":{"light":{"bg":"oklch(0.963 0.012 83)","fg":"oklch(0.28 0.02 55)","accent":"oklch(0.44 0.08 152)","syntax":{"keyword":"oklch(0.47 0.105 40)","string":"oklch(0.45 0.09 150)","comment":"oklch(0.5 0.02 70)","callable":"oklch(0.45 0.08 240)"}},"dark":{"bg":"oklch(0.235 0.015 55)","fg":"oklch(0.92 0.012 85)","accent":"oklch(0.82 0.105 75)","syntax":{"keyword":"oklch(0.76 0.1 45)","string":"oklch(0.78 0.09 150)","comment":"oklch(0.66 0.02 75)","callable":"oklch(0.75 0.075 238)"}}}},"hasStylesheet":true},{"slug":"solar","meta":{"schemaVersion":1,"slug":"solar","name":"Solar","description":"Solarized precision — low-eyestrain paper tones, blue/cyan/orange accents, mono labels, technical calm in both modes.","mode":"light","version":"1.0.2","fonts":{"sans":"Source Sans 3","mono":"Source Code Pro","loaded":["Source Sans 3","Source Code Pro"]},"preview":{"light":{"bg":"#fdf6e3","fg":"#4f6369","accent":"#1c6a9f","syntax":{"keyword":"#606f00","string":"#12746c","comment":"#586b72","callable":"#1d6da3"}},"dark":{"bg":"#002b36","fg":"#93a1a1","accent":"#53a6df","syntax":{"keyword":"#8ea300","string":"#2caaa0","comment":"#899da4","callable":"#49a0dd"}}}},"hasStylesheet":true},{"slug":"sumi","meta":{"schemaVersion":1,"slug":"sumi","name":"Sumi","description":"Sumi-e ink on washi — bold mincho brush headings, deep black strokes, one vermillion hanko seal accent.","mode":"light","version":"1.0.4","fonts":{"sans":"Zen Kaku Gothic New","mono":"IBM Plex Mono","display":"Shippori Mincho B1","loaded":["Shippori Mincho B1","Zen Kaku Gothic New","IBM Plex Mono"]},"preview":{"light":{"bg":"#f7f4ec","fg":"#1b1a18","accent":"#b8232e","syntax":{"keyword":"#b8232e","string":"#6a6156","comment":"#726b5e","callable":"#433d35"}},"dark":{"bg":"#161514","fg":"#ece7db","accent":"#ea6a72","syntax":{"keyword":"#ee7a81","string":"#c8bfa6","comment":"#837d72","callable":"#f4efe4"}}}},"hasStylesheet":true},{"slug":"swissgrid","meta":{"schemaVersion":1,"slug":"swissgrid","name":"Swissgrid","description":"International Typographic Style — grid discipline, black on white, one hot Swiss-red accent, oversized section numbers.","mode":"light","version":"1.0.2","fonts":{"sans":"Inter","mono":"IBM Plex Mono","display":"Inter Tight","loaded":["Inter","Inter Tight","IBM Plex Mono"]},"preview":{"light":{"bg":"#ffffff","fg":"#0a0a0a","accent":"#e60000","syntax":{"keyword":"#d40000","string":"#3f3f3f","comment":"#6b6b6b","callable":"#0a0a0a"}},"dark":{"bg":"#0c0c0c","fg":"#f2f2f2","accent":"#ff4d4d","syntax":{"keyword":"#ff4d4d","string":"#c9c9c9","comment":"#8c8c8c","callable":"#ffffff"}}}},"hasStylesheet":true},{"slug":"tidepool","meta":{"schemaVersion":1,"slug":"tidepool","name":"Tidepool","description":"Marine teal dark — deep-sea teal surfaces, seafoam text, bioluminescent aqua accents, kelp-green success, coral danger. Light mode is the same pool at low tide.","mode":"dark","version":"1.0.0","fonts":{"sans":"Space Grotesk","mono":"JetBrains Mono","loaded":["Space Grotesk","JetBrains Mono"]},"preview":{"light":{"bg":"oklch(0.966 0.013 165)","fg":"oklch(0.27 0.045 200)","accent":"oklch(0.43 0.073 195)","syntax":{"keyword":"oklch(0.42 0.071 193)","string":"oklch(0.42 0.11 150)","comment":"oklch(0.44 0.03 200)","callable":"oklch(0.44 0.089 232)"}},"dark":{"bg":"oklch(0.235 0.032 205)","fg":"oklch(0.92 0.028 180)","accent":"oklch(0.82 0.13 185)","syntax":{"keyword":"oklch(0.84 0.14 183)","string":"oklch(0.83 0.14 152)","comment":"oklch(0.69 0.035 195)","callable":"oklch(0.8 0.1 228)"}}}},"hasStylesheet":true},{"slug":"timberline","meta":{"schemaVersion":1,"slug":"timberline","name":"Timberline","description":"Forest cabin after dark — pine & umber planks, cream prose, and matte lantern-amber accents; light mode is the same lodge at morning.","mode":"dark","version":"1.0.2","fonts":{"sans":"Source Sans 3","mono":"JetBrains Mono","display":"Fraunces","loaded":["Fraunces","Source Sans 3","JetBrains Mono"]},"preview":{"light":{"bg":"oklch(0.962 0.016 90)","fg":"oklch(0.27 0.032 155)","accent":"oklch(0.465 0.11 62)","syntax":{"keyword":"oklch(0.475 0.11 70)","string":"oklch(0.46 0.09 145)","comment":"oklch(0.49 0.035 140)","callable":"oklch(0.45 0.085 235)"}},"dark":{"bg":"oklch(0.207 0.02 60)","fg":"oklch(0.928 0.02 88)","accent":"oklch(0.78 0.125 72)","syntax":{"keyword":"oklch(0.8 0.125 80)","string":"oklch(0.79 0.1 135)","comment":"oklch(0.66 0.035 110)","callable":"oklch(0.78 0.075 220)"}}}},"hasStylesheet":true},{"slug":"warm-mineral","meta":{"schemaVersion":1,"slug":"warm-mineral","name":"Warm Mineral","description":"Warm mineral tones — sandstone paper by day, umber stone at night, a terracotta accent and quiet hairline rules.","mode":"dark","version":"1.0.0","fonts":{"sans":"System","mono":"System","loaded":[]},"preview":{"light":{"bg":"#F3EFE8","fg":"#47403A","accent":"#92471C","syntax":{"keyword":"#92471C","string":"#556047","comment":"#655B52","callable":"#505E67"}},"dark":{"bg":"#2D2A27","fg":"#D6CFC6","accent":"#E5AA7D","syntax":{"keyword":"#E5AA7D","string":"#A9B892","comment":"#B7ADA2","callable":"#A6B4BD"}}}},"hasStylesheet":true},{"slug":"washi","meta":{"schemaVersion":1,"slug":"washi","name":"Washi","description":"Warm washi paper, sumi ink, and ai-iro indigo seals — quiet Japanese stationery for calm documentation.","mode":"light","version":"1.0.4","fonts":{"sans":"Zen Kaku Gothic New","mono":"M PLUS 1 Code","display":"Shippori Mincho","loaded":["Zen Kaku Gothic New","Shippori Mincho","M PLUS 1 Code"]},"preview":{"light":{"bg":"#f6f1e4","fg":"#2b2822","accent":"#274a78","syntax":{"keyword":"#274a78","string":"#41653a","comment":"#6f6654","callable":"#963f34"}},"dark":{"bg":"#1b212c","fg":"#eae3d2","accent":"#8ab0dd","syntax":{"keyword":"#97b9e6","string":"#a9cb90","comment":"#8894a4","callable":"#e0a49a"}}}},"hasStylesheet":true}]};
6
+ const catalog = {"schemaVersion":2,"packs":[{"slug":"graphite","meta":{"schemaVersion":1,"slug":"graphite","name":"Graphite","description":"Soft neutral graphite — low-glare grey paper by day, deep graphite at night, one warm copper accent, quiet hairline rules. The configured default.","mode":"dark","version":"1.0.0","fonts":{"sans":"System","mono":"System","loaded":[]},"preview":{"light":{"bg":"#F2F3F2","fg":"#3A4146","accent":"#9A4919","syntax":{"keyword":"#9A4919","string":"#4E6552","comment":"#566168","callable":"#4B6373"}},"dark":{"bg":"#242629","fg":"#D3D5D9","accent":"#E9AA79","syntax":{"keyword":"#E9AA79","string":"#9DBA9A","comment":"#ADB2B8","callable":"#9DB6C5"}}}},"hasStylesheet":true},{"slug":"classic","meta":{"schemaVersion":1,"slug":"classic","name":"Classic","description":"Classic — the original zudo-doc default look. No pack stylesheet is loaded — your project's configured color scheme and fonts render unchanged.","mode":"dark","version":"1.0.0","fonts":{"sans":"System","mono":"System","loaded":[]},"preview":{"light":{"bg":"oklch(0.965 0.004 65)","fg":"oklch(0.185 0.005 65)","accent":"oklch(0.470 0.120 56)","syntax":{"keyword":"oklch(0.470 0.120 56)","string":"oklch(0.470 0.140 145)","comment":"oklch(0.480 0.008 65)","callable":"oklch(0.485 0.122 245)"}},"dark":{"bg":"oklch(0.185 0.005 65)","fg":"oklch(0.965 0.004 65)","accent":"oklch(0.700 0.158 62)","syntax":{"keyword":"oklch(0.700 0.158 62)","string":"oklch(0.680 0.145 145)","comment":"oklch(0.705 0.008 65)","callable":"oklch(0.680 0.130 245)"}}}},"hasStylesheet":false},{"slug":"academia","meta":{"schemaVersion":1,"slug":"academia","name":"Academia","description":"A LaTeX paper for the web — white page, Computer-Modern-black ink, hyperref navy links, numbered theorem admonitions, booktabs tables. Dark mode is a scholarly slate.","mode":"light","version":"1.0.3","fonts":{"sans":"Source Serif 4","mono":"Courier Prime","loaded":["Source Serif 4","Courier Prime"]},"preview":{"light":{"bg":"#ffffff","fg":"#141414","accent":"#1c3d8f","syntax":{"keyword":"#1c3d8f","string":"#93262a","comment":"#2e6b2e","callable":"#295e80"}},"dark":{"bg":"#1d222b","fg":"#e7eaf0","accent":"#97b8ee","syntax":{"keyword":"#a3c0f2","string":"#e0a09a","comment":"#8cbc8c","callable":"#85c2da"}}}},"hasStylesheet":true},{"slug":"bauhaus","meta":{"schemaVersion":1,"slug":"bauhaus","name":"Bauhaus","description":"Primary triad as structure — gallery white, near-black ink, and red, yellow, blue doing structural work: circle, triangle, square markers, thick geometric rules, zero radius.","mode":"light","version":"1.0.1","fonts":{"sans":"Jost","mono":"Space Mono","display":"Archivo Black","loaded":["Jost","Archivo Black","Space Mono"]},"preview":{"light":{"bg":"#ffffff","fg":"#141414","accent":"#b3231b","syntax":{"keyword":"#b3231b","string":"#6d5800","comment":"#63615a","callable":"#1c4bbe"}},"dark":{"bg":"#18181b","fg":"#f0efe9","accent":"#ff7d70","syntax":{"keyword":"#ff7d70","string":"#e9ce6a","comment":"#999689","callable":"#8fb0ff"}}}},"hasStylesheet":true},{"slug":"beacon","meta":{"schemaVersion":1,"slug":"beacon","name":"Beacon","description":"WCAG-AAA high contrast — 7:1+ ink everywhere, 3px focus rings, always-underlined links. Clarity as beauty.","mode":"light","version":"1.0.1","fonts":{"sans":"Atkinson Hyperlegible","mono":"Atkinson Hyperlegible Mono","loaded":["Atkinson Hyperlegible","Atkinson Hyperlegible Mono"]},"preview":{"light":{"bg":"#ffffff","fg":"#000000","accent":"#0044cc","syntax":{"keyword":"#0044cc","string":"#a50000","comment":"#595959","callable":"#00287a"}},"dark":{"bg":"#000000","fg":"#ffffff","accent":"#6db3ff","syntax":{"keyword":"#6db3ff","string":"#ff8f8f","comment":"#b3b3b3","callable":"#a8d1ff"}}}},"hasStylesheet":true},{"slug":"blueprint","meta":{"schemaVersion":1,"slug":"blueprint","name":"Blueprint","description":"Cyanotype drafting sheet — pale-cyan linework on prussian grid paper, title-block caps, dashed rules, mono-caps labels. Light mode is the vellum original.","mode":"dark","version":"1.0.2","fonts":{"sans":"Inter","mono":"IBM Plex Mono","display":"Josefin Sans","loaded":["Inter","Josefin Sans","IBM Plex Mono"]},"preview":{"light":{"bg":"oklch(0.965 0.012 235)","fg":"oklch(0.28 0.05 253)","accent":"oklch(0.44 0.095 235)","syntax":{"keyword":"oklch(0.46 0.1 80)","string":"oklch(0.43 0.085 195)","comment":"oklch(0.5 0.03 248)","callable":"oklch(0.44 0.09 235)"}},"dark":{"bg":"oklch(0.27 0.055 252)","fg":"oklch(0.965 0.01 220)","accent":"oklch(0.86 0.09 205)","syntax":{"keyword":"oklch(0.87 0.12 95)","string":"oklch(0.83 0.1 185)","comment":"oklch(0.72 0.032 235)","callable":"oklch(0.83 0.085 215)"}}}},"hasStylesheet":true},{"slug":"botanica","meta":{"schemaVersion":1,"slug":"botanica","name":"Botanica","description":"A vintage botanical plate — herbarium cream, deep green ink, engraved double rules, Latin small-caps plate labels.","mode":"light","version":"1.0.1","fonts":{"sans":"Crimson Pro","mono":"Courier Prime","display":"Cormorant Garamond","loaded":["Cormorant Garamond","Crimson Pro","Courier Prime"]},"preview":{"light":{"bg":"oklch(0.956 0.02 92)","fg":"oklch(0.29 0.03 95)","accent":"oklch(0.42 0.09 152)","syntax":{"keyword":"oklch(0.4 0.075 60)","string":"oklch(0.43 0.095 150)","comment":"oklch(0.48 0.04 95)","callable":"oklch(0.43 0.075 205)"}},"dark":{"bg":"oklch(0.215 0.022 160)","fg":"oklch(0.92 0.02 95)","accent":"oklch(0.78 0.09 148)","syntax":{"keyword":"oklch(0.82 0.085 80)","string":"oklch(0.8 0.095 145)","comment":"oklch(0.7 0.03 110)","callable":"oklch(0.78 0.075 200)"}}}},"hasStylesheet":true},{"slug":"broadsheet","meta":{"schemaVersion":1,"slug":"broadsheet","name":"Broadsheet","description":"Newspaper editorial — Playfair masthead, Oxford ink rules, a red drop cap, and a night-edition dark mode.","mode":"light","version":"1.0.3","fonts":{"sans":"Source Serif 4","mono":"Courier Prime","display":"Playfair Display","loaded":["Playfair Display","Source Serif 4","Courier Prime"]},"preview":{"light":{"bg":"oklch(0.955 0.012 92)","fg":"oklch(0.205 0.012 80)","accent":"oklch(0.455 0.155 27)","syntax":{"keyword":"oklch(0.445 0.155 27)","string":"oklch(0.45 0.075 60)","comment":"oklch(0.5 0.016 78)","callable":"oklch(0.42 0.09 252)"}},"dark":{"bg":"oklch(0.185 0.012 75)","fg":"oklch(0.935 0.015 90)","accent":"oklch(0.7 0.145 27)","syntax":{"keyword":"oklch(0.72 0.14 27)","string":"oklch(0.79 0.07 70)","comment":"oklch(0.7 0.02 85)","callable":"oklch(0.74 0.08 248)"}}}},"hasStylesheet":true},{"slug":"brutalist","meta":{"schemaVersion":1,"slug":"brutalist","name":"Brutalist","description":"Raw concrete web — stark black on white, 4px slab borders, zero radius, hazard-orange tape. Structure you can see.","mode":"light","version":"1.0.4","fonts":{"sans":"Space Grotesk","mono":"IBM Plex Mono","display":"Archivo Black","loaded":["Archivo Black","Space Grotesk","IBM Plex Mono"]},"preview":{"light":{"bg":"#ffffff","fg":"#000000","accent":"#c2410c","syntax":{"keyword":"#c2410c","string":"#9a3412","comment":"#767676","callable":"#000000"}},"dark":{"bg":"#0d0d0d","fg":"#f5f5f5","accent":"#ff6a1f","syntax":{"keyword":"#ff7a2e","string":"#ffb38a","comment":"#878787","callable":"#ffffff"}}}},"hasStylesheet":true},{"slug":"drift","meta":{"schemaVersion":1,"slug":"drift","name":"Drift","description":"Floaty slate-blue comfort dark for long reading — soft glows in place of borders, gentle elevation, relaxed Plex type.","mode":"dark","version":"1.0.2","fonts":{"sans":"IBM Plex Sans","mono":"IBM Plex Mono","loaded":["IBM Plex Sans","IBM Plex Mono"]},"preview":{"light":{"bg":"#edf2f6","fg":"#24303d","accent":"#236799","syntax":{"keyword":"#49539c","string":"#2b754f","comment":"#596673","callable":"#00688d"}},"dark":{"bg":"#181f26","fg":"#d6dee4","accent":"#6cafd9","syntax":{"keyword":"#9caeee","string":"#88cba4","comment":"#8494a4","callable":"#75c6e1"}}}},"hasStylesheet":true},{"slug":"eink","meta":{"schemaVersion":1,"slug":"eink","name":"E-Ink","description":"E-reader grayscale — warm paper, near-black ink, shadowless hairline chrome, zero radius. Code is told by weight, slant, and gray value; only diffs keep a trace of ink-blue and ink-red.","mode":"light","version":"1.0.1","fonts":{"sans":"EB Garamond","mono":"Courier Prime","loaded":["EB Garamond","Courier Prime"]},"preview":{"light":{"bg":"oklch(0.956 0.007 90)","fg":"oklch(0.24 0.012 85)","accent":"oklch(0.155 0.01 85)","syntax":{"keyword":"oklch(0.18 0.01 85)","string":"oklch(0.46 0.012 85)","comment":"oklch(0.505 0.01 85)","callable":"oklch(0.31 0.012 85)"}},"dark":{"bg":"oklch(0.215 0.008 80)","fg":"oklch(0.885 0.012 85)","accent":"oklch(0.955 0.008 85)","syntax":{"keyword":"oklch(0.96 0.008 85)","string":"oklch(0.715 0.012 85)","comment":"oklch(0.645 0.01 85)","callable":"oklch(0.82 0.01 85)"}}}},"hasStylesheet":true},{"slug":"fjord","meta":{"schemaVersion":1,"slug":"fjord","name":"Fjord","description":"Polar-night blue under a faint aurora — frost-cyan accents, icy borders, snow-white text. Cold nordic calm.","mode":"dark","version":"1.0.2","fonts":{"sans":"Inter","mono":"JetBrains Mono","loaded":["Inter","JetBrains Mono"]},"preview":{"light":{"bg":"oklch(0.971 0.008 230)","fg":"oklch(0.255 0.03 255)","accent":"oklch(0.455 0.092 205)","syntax":{"keyword":"oklch(0.455 0.105 250)","string":"oklch(0.495 0.105 165)","comment":"oklch(0.51 0.03 245)","callable":"oklch(0.445 0.098 202)"}},"dark":{"bg":"oklch(0.232 0.024 255)","fg":"oklch(0.93 0.012 235)","accent":"oklch(0.79 0.095 195)","syntax":{"keyword":"oklch(0.76 0.095 242)","string":"oklch(0.8 0.105 158)","comment":"oklch(0.63 0.03 245)","callable":"oklch(0.815 0.095 195)"}}}},"hasStylesheet":true},{"slug":"foundry","meta":{"schemaVersion":1,"slug":"foundry","name":"Foundry","description":"GitHub-neutral baseline — white paper, near-black ink, Primer-blue links, quiet gray rules. Restraint, perfected.","mode":"light","version":"1.0.2","fonts":{"sans":"Inter","mono":"System","loaded":["Inter"]},"preview":{"light":{"bg":"#ffffff","fg":"#1f2328","accent":"#0969da","syntax":{"keyword":"#cf222e","string":"#0a3069","comment":"#6e7781","callable":"#8250df"}},"dark":{"bg":"#0d1117","fg":"#e6edf3","accent":"#4493f8","syntax":{"keyword":"#ff7b72","string":"#a5d6ff","comment":"#8b949e","callable":"#d2a8ff"}}}},"hasStylesheet":true},{"slug":"futura-editorial","meta":{"schemaVersion":1,"slug":"futura-editorial","name":"Futura Editorial","description":"Normal-weight geometric Futura headings over Noto Sans body — clean white, near-black ink, one restrained red accent.","mode":"light","version":"1.0.2","fonts":{"sans":"Noto Sans","mono":"Space Mono","display":"Jost","loaded":["Jost","Noto Sans","Space Mono"]},"preview":{"light":{"bg":"oklch(1 0 0)","fg":"oklch(0.17 0 0)","accent":"oklch(0.505 0.18 28)","syntax":{"keyword":"oklch(0.505 0.18 28)","string":"oklch(0.47 0.09 160)","comment":"oklch(0.52 0 0)","callable":"oklch(0.45 0.1 250)"}},"dark":{"bg":"oklch(0.165 0 0)","fg":"oklch(0.935 0 0)","accent":"oklch(0.72 0.15 29)","syntax":{"keyword":"oklch(0.72 0.15 29)","string":"oklch(0.76 0.1 160)","comment":"oklch(0.63 0 0)","callable":"oklch(0.73 0.095 250)"}}}},"hasStylesheet":true},{"slug":"hearth","meta":{"schemaVersion":1,"slug":"hearth","name":"Hearth","description":"Warm cream & brick-red fireside docs — Fraunces headings, amber code blocks, ember-glow dark mode.","mode":"light","version":"1.0.4","fonts":{"sans":"Nunito","mono":"Spline Sans Mono","display":"Fraunces","loaded":["Fraunces","Nunito","Spline Sans Mono"]},"preview":{"light":{"bg":"oklch(0.958 0.02 85)","fg":"oklch(0.255 0.028 40)","accent":"oklch(0.49 0.145 31)","syntax":{"keyword":"oklch(0.48 0.148 30)","string":"oklch(0.47 0.1 135)","comment":"oklch(0.51 0.035 60)","callable":"oklch(0.45 0.092 245)"}},"dark":{"bg":"oklch(0.215 0.022 45)","fg":"oklch(0.915 0.02 80)","accent":"oklch(0.735 0.128 45)","syntax":{"keyword":"oklch(0.745 0.138 40)","string":"oklch(0.785 0.1 130)","comment":"oklch(0.645 0.032 65)","callable":"oklch(0.765 0.075 235)"}}}},"hasStylesheet":true},{"slug":"hollow","meta":{"schemaVersion":1,"slug":"hollow","name":"Hollow","description":"Dark violet space — neon pink headings, violet links, a quiet starfield, and razor-square midnight chrome.","mode":"dark","version":"1.0.2","fonts":{"sans":"Space Grotesk","mono":"Space Mono","loaded":["Space Grotesk","Space Mono"]},"preview":{"light":{"bg":"oklch(0.962 0.012 300)","fg":"oklch(0.24 0.045 295)","accent":"oklch(0.45 0.17 300)","syntax":{"keyword":"oklch(0.53 0.2 348)","string":"oklch(0.45 0.1 195)","comment":"oklch(0.51 0.035 292)","callable":"oklch(0.46 0.16 300)"}},"dark":{"bg":"oklch(0.155 0.035 295)","fg":"oklch(0.93 0.015 295)","accent":"oklch(0.74 0.14 300)","syntax":{"keyword":"oklch(0.76 0.17 347)","string":"oklch(0.83 0.1 190)","comment":"oklch(0.62 0.045 292)","callable":"oklch(0.76 0.13 300)"}}}},"hasStylesheet":true},{"slug":"ledger","meta":{"schemaVersion":1,"slug":"ledger","name":"Ledger","description":"Cream academic serif in the Tufte tradition — warm paper, ink prose, oxblood links, hairline rules, quiet code.","mode":"light","version":"1.0.2","fonts":{"sans":"Crimson Pro","mono":"IBM Plex Mono","loaded":["Crimson Pro","IBM Plex Mono"]},"preview":{"light":{"bg":"#fffff8","fg":"#16130e","accent":"#8b1a1a","syntax":{"keyword":"#8b1a1a","string":"#4e6328","comment":"#766b5c","callable":"#33586e"}},"dark":{"bg":"#191510","fg":"#e9e2d0","accent":"#d68a75","syntax":{"keyword":"#e2907c","string":"#a8b47c","comment":"#948a77","callable":"#93b4cd"}}}},"hasStylesheet":true},{"slug":"manuscript","meta":{"schemaVersion":1,"slug":"manuscript","name":"Manuscript","description":"A quiet Garamond book page — warm paper, soft ink, sepia rubrication, small-caps subheads, fleuron section marks.","mode":"light","version":"1.0.2","fonts":{"sans":"EB Garamond","mono":"Courier Prime","loaded":["EB Garamond","Courier Prime"]},"preview":{"light":{"bg":"oklch(0.963 0.013 85)","fg":"oklch(0.245 0.018 60)","accent":"oklch(0.44 0.095 55)","syntax":{"keyword":"oklch(0.455 0.13 30)","string":"oklch(0.44 0.085 150)","comment":"oklch(0.5 0.03 70)","callable":"oklch(0.435 0.09 275)"}},"dark":{"bg":"oklch(0.215 0.015 65)","fg":"oklch(0.885 0.022 80)","accent":"oklch(0.735 0.095 70)","syntax":{"keyword":"oklch(0.72 0.115 35)","string":"oklch(0.745 0.085 150)","comment":"oklch(0.645 0.03 75)","callable":"oklch(0.745 0.07 275)"}}}},"hasStylesheet":true},{"slug":"matcha","meta":{"schemaVersion":1,"slug":"matcha","name":"Matcha","description":"Green tea ceremony — deep matcha on warm cream, mincho headings, zen whitespace, tea-foam surfaces in both modes.","mode":"light","version":"1.0.3","fonts":{"sans":"Zen Kaku Gothic New","mono":"M PLUS 1 Code","display":"Shippori Mincho","loaded":["Zen Kaku Gothic New","Shippori Mincho","M PLUS 1 Code"]},"preview":{"light":{"bg":"oklch(0.973 0.012 106)","fg":"oklch(0.245 0.018 148)","accent":"oklch(0.435 0.105 142)","syntax":{"keyword":"oklch(0.418 0.105 150)","string":"oklch(0.47 0.092 106)","comment":"oklch(0.512 0.034 130)","callable":"oklch(0.438 0.082 196)"}},"dark":{"bg":"oklch(0.205 0.016 152)","fg":"oklch(0.938 0.018 106)","accent":"oklch(0.79 0.115 138)","syntax":{"keyword":"oklch(0.782 0.118 148)","string":"oklch(0.822 0.102 108)","comment":"oklch(0.668 0.034 130)","callable":"oklch(0.772 0.088 192)"}}}},"hasStylesheet":true},{"slug":"nocturne","meta":{"schemaVersion":1,"slug":"nocturne","name":"Nocturne","description":"Purple midnight — velvet aubergine depths, lavender links, and muted gold hairlines. Elegant, never neon.","mode":"dark","version":"1.0.3","fonts":{"sans":"Manrope","mono":"IBM Plex Mono","display":"Cormorant Garamond","loaded":["Cormorant Garamond","Manrope","IBM Plex Mono"]},"preview":{"light":{"bg":"oklch(0.958 0.012 300)","fg":"oklch(0.245 0.05 312)","accent":"oklch(0.455 0.15 295)","syntax":{"keyword":"oklch(0.46 0.16 295)","string":"oklch(0.5 0.105 85)","comment":"oklch(0.5 0.042 305)","callable":"oklch(0.455 0.125 265)"}},"dark":{"bg":"oklch(0.155 0.03 310)","fg":"oklch(0.922 0.018 300)","accent":"oklch(0.765 0.105 292)","syntax":{"keyword":"oklch(0.772 0.128 293)","string":"oklch(0.8 0.108 88)","comment":"oklch(0.645 0.045 302)","callable":"oklch(0.77 0.095 262)"}}}},"hasStylesheet":true},{"slug":"observatory","meta":{"schemaVersion":1,"slug":"observatory","name":"Observatory","description":"Night-sky atlas: star-field depth, constellation-line rules, nebula violet and comet gold over astronomer's navy.","mode":"dark","version":"1.0.4","fonts":{"sans":"Jost","mono":"Space Mono","display":"Josefin Sans","loaded":["Josefin Sans","Jost","Space Mono"]},"preview":{"light":{"bg":"oklch(0.965 0.012 255)","fg":"oklch(0.235 0.045 268)","accent":"oklch(0.47 0.1 75)","syntax":{"keyword":"oklch(0.46 0.14 300)","string":"oklch(0.45 0.1 162)","comment":"oklch(0.5 0.03 265)","callable":"oklch(0.46 0.11 250)"}},"dark":{"bg":"oklch(0.155 0.028 268)","fg":"oklch(0.93 0.015 255)","accent":"oklch(0.82 0.13 86)","syntax":{"keyword":"oklch(0.76 0.118 300)","string":"oklch(0.8 0.112 162)","comment":"oklch(0.61 0.038 265)","callable":"oklch(0.78 0.095 240)"}}}},"hasStylesheet":true},{"slug":"onyx","meta":{"schemaVersion":1,"slug":"onyx","name":"Onyx","description":"Luxury noir — jet black, champagne serif headings, and a single gold hairline accent. Watch-brand restraint.","mode":"dark","version":"1.0.4","fonts":{"sans":"Jost","mono":"IBM Plex Mono","display":"Cormorant Garamond","loaded":["Cormorant Garamond","Jost","IBM Plex Mono"]},"preview":{"light":{"bg":"oklch(0.972 0.005 85)","fg":"oklch(0.22 0.012 80)","accent":"oklch(0.5 0.105 80)","syntax":{"keyword":"oklch(0.51 0.105 82)","string":"oklch(0.47 0.07 155)","comment":"oklch(0.5 0.015 85)","callable":"oklch(0.45 0.045 250)"}},"dark":{"bg":"oklch(0.145 0.003 80)","fg":"oklch(0.92 0.022 88)","accent":"oklch(0.79 0.115 88)","syntax":{"keyword":"oklch(0.8 0.115 88)","string":"oklch(0.78 0.07 155)","comment":"oklch(0.62 0.02 85)","callable":"oklch(0.82 0.04 250)"}}}},"hasStylesheet":true},{"slug":"phosphor","meta":{"schemaVersion":1,"slug":"phosphor","name":"Phosphor","description":"Green CRT terminal — phosphor glow, scanlines, inverse-video nav, monospace everything.","mode":"dark","version":"1.0.2","fonts":{"sans":"JetBrains Mono","mono":"JetBrains Mono","display":"VT323","loaded":["VT323","JetBrains Mono"]},"preview":{"light":{"bg":"oklch(0.955 0.014 150)","fg":"oklch(0.28 0.058 150)","accent":"oklch(0.42 0.13 150)","syntax":{"keyword":"oklch(0.4 0.13 148)","string":"oklch(0.39 0.095 165)","comment":"oklch(0.49 0.05 150)","callable":"oklch(0.43 0.095 200)"}},"dark":{"bg":"oklch(0.135 0.014 150)","fg":"oklch(0.845 0.145 150)","accent":"oklch(0.87 0.215 148)","syntax":{"keyword":"oklch(0.9 0.21 148)","string":"oklch(0.9 0.12 165)","comment":"oklch(0.58 0.062 150)","callable":"oklch(0.83 0.125 200)"}}}},"hasStylesheet":true},{"slug":"quiet-slate","meta":{"schemaVersion":1,"slug":"quiet-slate","name":"Quiet Slate","description":"Quiet blue-grey slate — misty slate paper by day, cool slate at night, a muted copper accent and quiet hairline rules.","mode":"dark","version":"1.0.0","fonts":{"sans":"System","mono":"System","loaded":[]},"preview":{"light":{"bg":"#EDF1F3","fg":"#3E4953","accent":"#95491E","syntax":{"keyword":"#95491E","string":"#4D6356","comment":"#52606D","callable":"#476274"}},"dark":{"bg":"#2B3238","fg":"#D8DDE0","accent":"#E4AF89","syntax":{"keyword":"#E4AF89","string":"#A9BFAD","comment":"#B3BFC9","callable":"#A3BDCD"}}}},"hasStylesheet":true},{"slug":"riso","meta":{"schemaVersion":1,"slug":"riso","name":"Riso","description":"Risograph duotone print — warm paper, two inks (riso blue + fluorescent coral), misregistered offset shadows, and a soft linear paper grain.","mode":"light","version":"1.0.1","fonts":{"sans":"Space Grotesk","mono":"Space Mono","display":"Archivo Black","loaded":["Space Grotesk","Archivo Black","Space Mono"]},"preview":{"light":{"bg":"#f9f3e5","fg":"#1d3345","accent":"#0d5c94","syntax":{"keyword":"#a02310","string":"#0d5e6e","comment":"#4d5c66","callable":"#0b5b9b"}},"dark":{"bg":"#101d28","fg":"#f1e9d8","accent":"#58b8e8","syntax":{"keyword":"#ff8d72","string":"#66d4cf","comment":"#93a4ad","callable":"#5aaef5"}}}},"hasStylesheet":true},{"slug":"sakura","meta":{"schemaVersion":1,"slug":"sakura","name":"Sakura","description":"Cherry-blossom pastels — blush-white paper, plum ink, and rose accents on petal-soft corners; dark mode is yozakura, night blossoms under lantern-pink light.","mode":"light","version":"1.0.2","fonts":{"sans":"Nunito","mono":"M PLUS 1 Code","display":"Shippori Mincho","loaded":["Nunito","Shippori Mincho","M PLUS 1 Code"]},"preview":{"light":{"bg":"oklch(0.977 0.009 350)","fg":"oklch(0.29 0.055 340)","accent":"oklch(0.5 0.168 358)","syntax":{"keyword":"oklch(0.5 0.168 358)","string":"oklch(0.49 0.115 150)","comment":"oklch(0.5 0.04 340)","callable":"oklch(0.49 0.135 300)"}},"dark":{"bg":"oklch(0.215 0.03 330)","fg":"oklch(0.935 0.014 350)","accent":"oklch(0.78 0.115 355)","syntax":{"keyword":"oklch(0.79 0.125 355)","string":"oklch(0.78 0.115 150)","comment":"oklch(0.71 0.038 345)","callable":"oklch(0.78 0.105 300)"}}}},"hasStylesheet":true},{"slug":"scandi","meta":{"schemaVersion":1,"slug":"scandi","name":"Scandi","description":"Hygge minimalism — oat linen, sage & clay, pill nav actives and 8px corners; night mode is warm charcoal lit by candle amber.","mode":"light","version":"1.0.1","fonts":{"sans":"Manrope","mono":"Spline Sans Mono","loaded":["Manrope","Spline Sans Mono"]},"preview":{"light":{"bg":"oklch(0.963 0.012 83)","fg":"oklch(0.28 0.02 55)","accent":"oklch(0.44 0.08 152)","syntax":{"keyword":"oklch(0.47 0.105 40)","string":"oklch(0.45 0.09 150)","comment":"oklch(0.5 0.02 70)","callable":"oklch(0.45 0.08 240)"}},"dark":{"bg":"oklch(0.235 0.015 55)","fg":"oklch(0.92 0.012 85)","accent":"oklch(0.82 0.105 75)","syntax":{"keyword":"oklch(0.76 0.1 45)","string":"oklch(0.78 0.09 150)","comment":"oklch(0.66 0.02 75)","callable":"oklch(0.75 0.075 238)"}}}},"hasStylesheet":true},{"slug":"solar","meta":{"schemaVersion":1,"slug":"solar","name":"Solar","description":"Solarized precision — low-eyestrain paper tones, blue/cyan/orange accents, mono labels, technical calm in both modes.","mode":"light","version":"1.0.2","fonts":{"sans":"Source Sans 3","mono":"Source Code Pro","loaded":["Source Sans 3","Source Code Pro"]},"preview":{"light":{"bg":"#fdf6e3","fg":"#4f6369","accent":"#1c6a9f","syntax":{"keyword":"#606f00","string":"#12746c","comment":"#586b72","callable":"#1d6da3"}},"dark":{"bg":"#002b36","fg":"#93a1a1","accent":"#53a6df","syntax":{"keyword":"#8ea300","string":"#2caaa0","comment":"#899da4","callable":"#49a0dd"}}}},"hasStylesheet":true},{"slug":"sumi","meta":{"schemaVersion":1,"slug":"sumi","name":"Sumi","description":"Sumi-e ink on washi — bold mincho brush headings, deep black strokes, one vermillion hanko seal accent.","mode":"light","version":"1.0.4","fonts":{"sans":"Zen Kaku Gothic New","mono":"IBM Plex Mono","display":"Shippori Mincho B1","loaded":["Shippori Mincho B1","Zen Kaku Gothic New","IBM Plex Mono"]},"preview":{"light":{"bg":"#f7f4ec","fg":"#1b1a18","accent":"#b8232e","syntax":{"keyword":"#b8232e","string":"#6a6156","comment":"#726b5e","callable":"#433d35"}},"dark":{"bg":"#161514","fg":"#ece7db","accent":"#ea6a72","syntax":{"keyword":"#ee7a81","string":"#c8bfa6","comment":"#837d72","callable":"#f4efe4"}}}},"hasStylesheet":true},{"slug":"swissgrid","meta":{"schemaVersion":1,"slug":"swissgrid","name":"Swissgrid","description":"International Typographic Style — grid discipline, black on white, one hot Swiss-red accent, oversized section numbers.","mode":"light","version":"1.0.2","fonts":{"sans":"Inter","mono":"IBM Plex Mono","display":"Inter Tight","loaded":["Inter","Inter Tight","IBM Plex Mono"]},"preview":{"light":{"bg":"#ffffff","fg":"#0a0a0a","accent":"#e60000","syntax":{"keyword":"#d40000","string":"#3f3f3f","comment":"#6b6b6b","callable":"#0a0a0a"}},"dark":{"bg":"#0c0c0c","fg":"#f2f2f2","accent":"#ff4d4d","syntax":{"keyword":"#ff4d4d","string":"#c9c9c9","comment":"#8c8c8c","callable":"#ffffff"}}}},"hasStylesheet":true},{"slug":"tidepool","meta":{"schemaVersion":1,"slug":"tidepool","name":"Tidepool","description":"Marine teal dark — deep-sea teal surfaces, seafoam text, bioluminescent aqua accents, kelp-green success, coral danger. Light mode is the same pool at low tide.","mode":"dark","version":"1.0.0","fonts":{"sans":"Space Grotesk","mono":"JetBrains Mono","loaded":["Space Grotesk","JetBrains Mono"]},"preview":{"light":{"bg":"oklch(0.966 0.013 165)","fg":"oklch(0.27 0.045 200)","accent":"oklch(0.43 0.073 195)","syntax":{"keyword":"oklch(0.42 0.071 193)","string":"oklch(0.42 0.11 150)","comment":"oklch(0.44 0.03 200)","callable":"oklch(0.44 0.089 232)"}},"dark":{"bg":"oklch(0.235 0.032 205)","fg":"oklch(0.92 0.028 180)","accent":"oklch(0.82 0.13 185)","syntax":{"keyword":"oklch(0.84 0.14 183)","string":"oklch(0.83 0.14 152)","comment":"oklch(0.69 0.035 195)","callable":"oklch(0.8 0.1 228)"}}}},"hasStylesheet":true},{"slug":"timberline","meta":{"schemaVersion":1,"slug":"timberline","name":"Timberline","description":"Forest cabin after dark — pine & umber planks, cream prose, and matte lantern-amber accents; light mode is the same lodge at morning.","mode":"dark","version":"1.0.2","fonts":{"sans":"Source Sans 3","mono":"JetBrains Mono","display":"Fraunces","loaded":["Fraunces","Source Sans 3","JetBrains Mono"]},"preview":{"light":{"bg":"oklch(0.962 0.016 90)","fg":"oklch(0.27 0.032 155)","accent":"oklch(0.465 0.11 62)","syntax":{"keyword":"oklch(0.475 0.11 70)","string":"oklch(0.46 0.09 145)","comment":"oklch(0.49 0.035 140)","callable":"oklch(0.45 0.085 235)"}},"dark":{"bg":"oklch(0.207 0.02 60)","fg":"oklch(0.928 0.02 88)","accent":"oklch(0.78 0.125 72)","syntax":{"keyword":"oklch(0.8 0.125 80)","string":"oklch(0.79 0.1 135)","comment":"oklch(0.66 0.035 110)","callable":"oklch(0.78 0.075 220)"}}}},"hasStylesheet":true},{"slug":"warm-mineral","meta":{"schemaVersion":1,"slug":"warm-mineral","name":"Warm Mineral","description":"Warm mineral tones — sandstone paper by day, umber stone at night, a terracotta accent and quiet hairline rules.","mode":"dark","version":"1.0.0","fonts":{"sans":"System","mono":"System","loaded":[]},"preview":{"light":{"bg":"#F3EFE8","fg":"#47403A","accent":"#92471C","syntax":{"keyword":"#92471C","string":"#556047","comment":"#655B52","callable":"#505E67"}},"dark":{"bg":"#2D2A27","fg":"#D6CFC6","accent":"#E5AA7D","syntax":{"keyword":"#E5AA7D","string":"#A9B892","comment":"#B7ADA2","callable":"#A6B4BD"}}}},"hasStylesheet":true},{"slug":"washi","meta":{"schemaVersion":1,"slug":"washi","name":"Washi","description":"Warm washi paper, sumi ink, and ai-iro indigo seals — quiet Japanese stationery for calm documentation.","mode":"light","version":"1.0.4","fonts":{"sans":"Zen Kaku Gothic New","mono":"M PLUS 1 Code","display":"Shippori Mincho","loaded":["Zen Kaku Gothic New","Shippori Mincho","M PLUS 1 Code"]},"preview":{"light":{"bg":"#f6f1e4","fg":"#2b2822","accent":"#274a78","syntax":{"keyword":"#274a78","string":"#41653a","comment":"#6f6654","callable":"#963f34"}},"dark":{"bg":"#1b212c","fg":"#eae3d2","accent":"#8ab0dd","syntax":{"keyword":"#97b9e6","string":"#a9cb90","comment":"#8894a4","callable":"#e0a49a"}}}},"hasStylesheet":true}]};
7
7
 
8
8
  /**
9
9
  * Validate the browser-facing catalog contract before consuming its entries.
package/dist/config.d.ts CHANGED
@@ -568,11 +568,11 @@ export interface ZudoDocConfig {
568
568
  /**
569
569
  * Active theme pack slug. Omitted selects Graphite, except that a config
570
570
  * supplying its own `colorSchemes` or setting `colorMode: false` keeps
571
- * Classic (`"default"`, the original zudo-doc look — no pack stylesheet
571
+ * Classic (`"classic"`, the original zudo-doc look — no pack stylesheet
572
572
  * loaded) so an authored palette is never overlaid. An explicit slug always
573
- * wins. Must be a member of the resolved `themePacks` list; an unknown or
573
+ * wins; `"default"` is an alias for `"graphite"`. Must be a member of the resolved `themePacks` list; an unknown or
574
574
  * excluded slug fails the build loudly at plugin setup.
575
- * @default "graphite" (or "default" with custom colorSchemes / colorMode: false)
575
+ * @default "graphite" (or "classic" with custom colorSchemes / colorMode: false)
576
576
  */
577
577
  themePack?: string;
578
578
  /**
@@ -583,12 +583,13 @@ export interface ZudoDocConfig {
583
583
  themePackSwitcher?: boolean;
584
584
  /**
585
585
  * Enabled pack slugs, in switcher order. `undefined` = all bundled packs:
586
- * "graphite" first, "default" (Classic) second, then the bundled registry
586
+ * "graphite" first, "classic" second, then the bundled registry
587
587
  * in canonical (alphabetical-by-slug) order. An explicit list is
588
588
  * authoritative — may omit any pack, reorder freely; duplicates/unknown
589
589
  * slugs fail loudly. Graphite is never inserted implicitly: a list that
590
- * excludes it needs an explicit `themePack` (e.g. `themePack: "default"`,
591
- * `themePacks: ["default"]` for Classic only).
590
+ * excludes it needs an explicit `themePack` (e.g. `themePack: "classic"`,
591
+ * `themePacks: ["classic"]` for Classic only). A `"default"` entry is the
592
+ * alias for `"graphite"`.
592
593
  * @default undefined
593
594
  */
594
595
  themePacks?: string[];
@@ -10,7 +10,7 @@ import {
10
10
  AFTER_NAVIGATE_EVENT
11
11
  } from "./transitions/page-events.js";
12
12
  import {
13
- DEFAULT_THEME_PACK_SLUG,
13
+ CLASSIC_THEME_PACK_SLUG,
14
14
  THEME_PACK_CHANGED_EVENT,
15
15
  readThemePackFromDom
16
16
  } from "./theme-pack-switcher/theme-pack-sync.js";
@@ -64,7 +64,7 @@ function readMode() {
64
64
  return document.documentElement.getAttribute("data-theme") === "dark" ? "dark" : "light";
65
65
  }
66
66
  function withPackScopedStoragePrefix(config, activePack) {
67
- if (activePack === DEFAULT_THEME_PACK_SLUG) return config;
67
+ if (activePack === CLASSIC_THEME_PACK_SLUG) return config;
68
68
  return { ...config, storagePrefix: `${config.storagePrefix}--${activePack}` };
69
69
  }
70
70
  function collectDeclaredTokenNames(config) {
@@ -26,7 +26,7 @@ export interface CopyThemePacksResult {
26
26
  * (`{ schemaVersion: 1, packs: ThemePackMeta[] }`) in resolved order.
27
27
  *
28
28
  * No-ops (writes nothing, returns `{ copied: false }`) when the enabled set
29
- * has no CSS-bearing pack — i.e. only `"default"` is enabled — per the ADR's
29
+ * has no CSS-bearing pack — i.e. only `"classic"` is enabled — per the ADR's
30
30
  * dead-weight-avoidance rule.
31
31
  */
32
32
  export declare function copyEnabledThemePacks({ packsDir, enabled, outDir, }: CopyThemePacksParams): CopyThemePacksResult;
package/dist/preset.d.ts CHANGED
@@ -202,7 +202,8 @@ export interface PresetSettings {
202
202
  * Threaded into the `@takazudo/zudo-doc/plugins/theme-packs` descriptor's
203
203
  * options; the plugin's `setup()` validates it against the resolved
204
204
  * registry and throws loudly on an unknown slug. Omitted is normalized by
205
- * `resolveConfiguredThemePack`: `"graphite"`, or `"default"` (Classic) when
205
+ * `resolveConfiguredThemePack`: `"graphite"` (also for the `"default"`
206
+ * alias), or `"classic"` when
206
207
  * custom `colorSchemes` are passed or `colorMode` is `false`.
207
208
  */
208
209
  themePack?: string | null;
package/dist/preset.js CHANGED
@@ -283,7 +283,7 @@ function buildPlugins(settings, routeContext) {
283
283
  // above (never an imported plugin function, keeping this preset's
284
284
  // node-free eval-graph guard green). The plugin internally no-ops
285
285
  // (postBuild/devMiddleware write/serve nothing) when the resolved
286
- // enabled set has no CSS-bearing pack (i.e. only "default" is enabled),
286
+ // enabled set has no CSS-bearing pack (i.e. only "classic" is enabled),
287
287
  // so an unconfigured project pays no asset cost beyond the bundled
288
288
  // registry scan at plugin setup.
289
289
  {
@@ -16,7 +16,7 @@ export type RouteContextTranslations = Record<string, Record<string, string>>;
16
16
  * - `settings` is a shallow, top-level merge over that result and wins last.
17
17
  * Nested settings objects replace wholesale; they are never deep-merged.
18
18
  * - A `themePack` still omitted (nullish) after that merge resolves through
19
- * `resolveConfiguredThemePack`: `"graphite"`, or `"default"` (Classic)
19
+ * `resolveConfiguredThemePack`: `"graphite"`, or `"classic"`
20
20
  * when `colorSchemes` data is supplied or `settings.colorMode` is `false`.
21
21
  * - `translations` deep-merges into `defaultTranslations` in two levels:
22
22
  * locales are retained and individual keys within an overridden locale are
@@ -87,7 +87,7 @@ const DEFAULT_SETTINGS = {
87
87
  headerRightItems: [{ type: "component", component: "theme-toggle" }],
88
88
  packageOwnedRoutes: true,
89
89
  // Omitted on purpose: `resolveConfiguredThemePack` turns an omitted pack into
90
- // "graphite", or into "default" (Classic) for custom/fixed color schemes.
90
+ // "graphite", or into "classic" for custom/fixed color schemes.
91
91
  themePack: void 0,
92
92
  themePackSwitcher: false,
93
93
  themePacks: void 0
@@ -625,9 +625,10 @@ export interface Settings {
625
625
  designTokenPanelConfigModule?: string;
626
626
  /**
627
627
  * Active theme-pack slug (ADR `docs/adr/theme-packs.md`). Omitted resolves
628
- * to `"graphite"`, or to `"default"` when the project supplies custom
629
- * `colorSchemes` or sets `colorMode: false`. `"default"` is Classic, the
630
- * original zudo-doc look — no pack stylesheet is loaded. Must be a member
628
+ * to `"graphite"`, or to `"classic"` when the project supplies custom
629
+ * `colorSchemes` or sets `colorMode: false`. `"classic"` is the original
630
+ * zudo-doc look — no pack stylesheet is loaded. `"default"` is an alias
631
+ * for `"graphite"`. Must be a member
631
632
  * of the resolved `themePacks` list; an unknown slug fails the build
632
633
  * loudly at plugin setup (`src/plugins/routes.ts`).
633
634
  */
@@ -639,7 +640,7 @@ export interface Settings {
639
640
  themePackSwitcher?: boolean;
640
641
  /**
641
642
  * Enabled theme-pack slugs, in switcher order. `undefined` = every bundled
642
- * pack, `"graphite"` first, `"default"` (Classic) second, then the rest in
643
+ * pack, `"graphite"` first, `"classic"` second, then the rest in
643
644
  * canonical (alphabetical-by-slug) order. An explicit list is
644
645
  * authoritative: may omit any pack, reorder freely; duplicate or unknown
645
646
  * slugs fail the build loudly, and so does a list that excludes the
@@ -4,7 +4,7 @@ import {
4
4
  BEFORE_SWAP_EVENT
5
5
  } from "../transitions/page-events.js";
6
6
  import {
7
- DEFAULT_THEME_PACK_SLUG,
7
+ CLASSIC_THEME_PACK_SLUG,
8
8
  THEME_PACK_ATTR,
9
9
  THEME_PACK_LINK_ATTR,
10
10
  THEME_PACK_RUNTIME_GLOBAL,
@@ -33,7 +33,7 @@ function buildThemePackBootstrap(configuredSlug, enabled, base) {
33
33
  const key = JSON.stringify(THEME_PACK_STORAGE_KEY);
34
34
  const attr = JSON.stringify(THEME_PACK_ATTR);
35
35
  const linkAttr = JSON.stringify(THEME_PACK_LINK_ATTR);
36
- const defaultSlug = JSON.stringify(DEFAULT_THEME_PACK_SLUG);
36
+ const defaultSlug = JSON.stringify(CLASSIC_THEME_PACK_SLUG);
37
37
  const runtimeGlobal = JSON.stringify(THEME_PACK_RUNTIME_GLOBAL);
38
38
  const afterNav = JSON.stringify(AFTER_NAVIGATE_EVENT);
39
39
  const beforeSwap = JSON.stringify(BEFORE_SWAP_EVENT);
@@ -104,7 +104,7 @@ function ThemePackProvider({
104
104
  }) {
105
105
  const bootstrap = buildThemePackBootstrap(configuredSlug, enabled, base);
106
106
  const configuredVersion = enabled[configuredSlug];
107
- const noscriptHref = configuredSlug !== DEFAULT_THEME_PACK_SLUG && configuredVersion !== void 0 ? buildPackCssUrl(base, configuredSlug, configuredVersion) : null;
107
+ const noscriptHref = configuredSlug !== CLASSIC_THEME_PACK_SLUG && configuredVersion !== void 0 ? buildPackCssUrl(base, configuredSlug, configuredVersion) : null;
108
108
  return /* @__PURE__ */ jsxs(Fragment, { children: [
109
109
  /* @__PURE__ */ jsx("style", { rawHtml: THEME_PACK_LATCH_CSS }),
110
110
  /* @__PURE__ */ jsx("script", { rawHtml: bootstrap }),
@@ -13,4 +13,4 @@ export interface ApplyThemePackResult {
13
13
  * re-apply of the slug already configured). Only meaningful when `ok`. */
14
14
  changed?: boolean;
15
15
  }
16
- export declare function applyThemePack(slug: string, options?: ApplyThemePackOptions): Promise<ApplyThemePackResult>;
16
+ export declare function applyThemePack(requestedSlug: string, options?: ApplyThemePackOptions): Promise<ApplyThemePackResult>;
@@ -1,11 +1,13 @@
1
1
  import fs from "fs-extra";
2
+ import { resolveThemePackAlias } from "../theme-packs-registry/configured-theme-pack.js";
2
3
  import { applyThemePackToConfigSource } from "./config-rewriter.js";
3
4
  import { resolveZfbConfigPath } from "./config-io.js";
4
5
  import { writeThemePackProvenance } from "./provenance.js";
5
6
  import {
6
7
  loadInstalledThemePackCatalog
7
8
  } from "./registry.js";
8
- async function applyThemePack(slug, options = {}) {
9
+ async function applyThemePack(requestedSlug, options = {}) {
10
+ const slug = resolveThemePackAlias(requestedSlug);
9
11
  const cwd = options.cwd ?? process.cwd();
10
12
  const now = options.now ?? (() => /* @__PURE__ */ new Date());
11
13
  let catalog;
@@ -2,7 +2,8 @@ import fs from "fs-extra";
2
2
  import path from "node:path";
3
3
  import {
4
4
  CONFIGURED_DEFAULT_THEME_PACK_SLUG,
5
- DEFAULT_THEME_PACK_SLUG
5
+ CLASSIC_THEME_PACK_SLUG,
6
+ resolveThemePackAlias
6
7
  } from "../theme-packs-registry/index.js";
7
8
  import {
8
9
  ConfigSyntaxError,
@@ -51,7 +52,7 @@ async function detectActiveThemePack(cwd) {
51
52
  if (colorSchemes === null || colorMode === null) return fallback;
52
53
  const customSchemes = colorSchemes !== void 0 && colorSchemes !== "undefined" && colorSchemes !== "null" && colorSchemes !== "defaultColorSchemes";
53
54
  if (customSchemes || colorMode === "false") {
54
- return { slug: DEFAULT_THEME_PACK_SLUG, detected: true };
55
+ return { slug: CLASSIC_THEME_PACK_SLUG, detected: true };
55
56
  }
56
57
  const colorModeKnownNotFalse = colorMode === void 0 || colorMode === "undefined" || colorMode === "true" || colorMode.startsWith("{");
57
58
  if (!colorModeKnownNotFalse) return fallback;
@@ -61,7 +62,7 @@ async function detectActiveThemePack(cwd) {
61
62
  return fallback;
62
63
  }
63
64
  const slug = unquoteStringLiteralSpan(source, themePackMember.valueStart, themePackMember.valueEnd);
64
- return { slug, detected: true };
65
+ return { slug: resolveThemePackAlias(slug), detected: true };
65
66
  } catch (err) {
66
67
  if (err instanceof ConfigSyntaxError) return fallback;
67
68
  throw err;
@@ -3,7 +3,7 @@ import { Fragment, jsx, jsxs } from "@takazudo/zfb/zudo-react/jsx-runtime";
3
3
  import { computed, For, getScope, Show, signal } from "@takazudo/zfb/zudo-react";
4
4
  import { Close } from "../icons/index.js";
5
5
  import { AFTER_NAVIGATE_EVENT } from "../transitions/index.js";
6
- import { applyThemePack, DEFAULT_THEME_PACK_SLUG } from "../theme-pack-switcher/theme-pack-sync.js";
6
+ import { applyThemePack, CLASSIC_THEME_PACK_SLUG } from "../theme-pack-switcher/theme-pack-sync.js";
7
7
  import { connectActivePackSync } from "../theme-pack-switcher/switcher-state.js";
8
8
  import { modalDialog } from "../use-modal-dialog/index.js";
9
9
  import { parseThemePackRegistryPayload, resolveDialogMode } from "./dialog-state.js";
@@ -18,7 +18,7 @@ function ThemePackDialog({ open, onClose, order, active, base }) {
18
18
  const activeSlug = signal(active);
19
19
  const retryToken = signal(0);
20
20
  const launcherFocusRef = { current: null };
21
- const hasBrowsablePacks = order.some((entry) => entry.slug !== DEFAULT_THEME_PACK_SLUG);
21
+ const hasBrowsablePacks = order.some((entry) => entry.slug !== CLASSIC_THEME_PACK_SLUG);
22
22
  scope.onActivate(() => connectActivePackSync((slug) => {
23
23
  activeSlug.value = slug;
24
24
  }));
@@ -4,23 +4,23 @@ export declare const THEME_PACK_CHANGED_EVENT = "theme-pack-changed";
4
4
  /** localStorage key persisting the user's chosen pack slug. */
5
5
  export declare const THEME_PACK_STORAGE_KEY = "zudo-doc-theme-pack";
6
6
  /** `<html>` attribute carrying the ACTIVE pack slug (always present on a
7
- * theme-pack-enabled page, also for `"default"`). */
7
+ * theme-pack-enabled page, also for `"classic"`). */
8
8
  export declare const THEME_PACK_ATTR = "data-theme-pack";
9
9
  /** Marker attribute of the ACTIVE pack's stylesheet `<link>` (id-free; this
10
10
  * attribute is the canonical selector). Absent when the active pack is
11
- * `"default"`. */
11
+ * `"classic"`. */
12
12
  export declare const THEME_PACK_LINK_ATTR = "data-zd-theme-pack-css";
13
13
  /** Marker attribute of an in-flight (not yet committed) pack stylesheet
14
14
  * `<link>` appended by {@link applyThemePack} step 4a. */
15
15
  export declare const THEME_PACK_LINK_LOADING_ATTR = "data-zd-theme-pack-css-loading";
16
16
  /**
17
17
  * The reserved slug meaning "the stock zudo-doc look" — no pack stylesheet is
18
- * ever inserted for it. Literal parity with `DEFAULT_THEME_PACK_SLUG` in
18
+ * ever inserted for it. Literal parity with `CLASSIC_THEME_PACK_SLUG` in
19
19
  * `../theme-packs-registry/meta-schema.ts` is guarded by a unit test; the
20
20
  * constant is re-declared here (rather than imported) because `meta-schema.ts`
21
21
  * imports `zod`, which must stay out of client island bundles.
22
22
  */
23
- export declare const DEFAULT_THEME_PACK_SLUG = "default";
23
+ export declare const CLASSIC_THEME_PACK_SLUG = "classic";
24
24
  /**
25
25
  * `window` global published by the theme-pack bootstrap script
26
26
  * (`buildThemePackBootstrap`, `../theme/theme-pack-provider.tsx`) on every
@@ -56,7 +56,7 @@ export interface ThemePackChangeDetail {
56
56
  export declare function buildPackCssUrl(base: string, slug: string, version: string): string;
57
57
  /**
58
58
  * Read the ACTIVE theme pack from `<html data-theme-pack>`. Falls back to
59
- * `"default"` when the attribute is missing or empty (e.g. a page rendered
59
+ * `"classic"` when the attribute is missing or empty (e.g. a page rendered
60
60
  * without the theme-pack feature).
61
61
  */
62
62
  export declare function readThemePackFromDom(): string;
@@ -3,7 +3,7 @@ const THEME_PACK_STORAGE_KEY = "zudo-doc-theme-pack";
3
3
  const THEME_PACK_ATTR = "data-theme-pack";
4
4
  const THEME_PACK_LINK_ATTR = "data-zd-theme-pack-css";
5
5
  const THEME_PACK_LINK_LOADING_ATTR = "data-zd-theme-pack-css-loading";
6
- const DEFAULT_THEME_PACK_SLUG = "default";
6
+ const CLASSIC_THEME_PACK_SLUG = "classic";
7
7
  const THEME_PACK_RUNTIME_GLOBAL = "__zudoDocThemePacks";
8
8
  const LOAD_TIMEOUT_MS = 1e4;
9
9
  function buildPackCssUrl(base, slug, version) {
@@ -16,7 +16,7 @@ function readRuntimeConfig() {
16
16
  }
17
17
  function readThemePackFromDom() {
18
18
  const actual = document.documentElement.getAttribute(THEME_PACK_ATTR);
19
- return actual !== null && actual !== "" ? actual : DEFAULT_THEME_PACK_SLUG;
19
+ return actual !== null && actual !== "" ? actual : CLASSIC_THEME_PACK_SLUG;
20
20
  }
21
21
  function awaitLinkLoad(link) {
22
22
  return new Promise((resolve) => {
@@ -55,7 +55,7 @@ async function applyThemePack(next) {
55
55
  }
56
56
  const token = ++seq;
57
57
  let newLink = null;
58
- if (next !== DEFAULT_THEME_PACK_SLUG) {
58
+ if (next !== CLASSIC_THEME_PACK_SLUG) {
59
59
  newLink = document.createElement("link");
60
60
  newLink.setAttribute("rel", "stylesheet");
61
61
  newLink.setAttribute(THEME_PACK_LINK_LOADING_ATTR, "");
@@ -107,7 +107,7 @@ function subscribeThemePackChanged(listener) {
107
107
  return () => window.removeEventListener(THEME_PACK_CHANGED_EVENT, listener);
108
108
  }
109
109
  export {
110
- DEFAULT_THEME_PACK_SLUG,
110
+ CLASSIC_THEME_PACK_SLUG,
111
111
  THEME_PACK_ATTR,
112
112
  THEME_PACK_CHANGED_EVENT,
113
113
  THEME_PACK_LINK_ATTR,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "slug": "default",
3
+ "slug": "classic",
4
4
  "name": "Classic",
5
5
  "description": "Classic — the original zudo-doc default look. No pack stylesheet is loaded — your project's configured color scheme and fonts render unchanged.",
6
6
  "mode": "dark",
@@ -1,5 +1,10 @@
1
1
  /** The pack an ordinary configuration resolves to when `themePack` is omitted. */
2
2
  export declare const CONFIGURED_DEFAULT_THEME_PACK_SLUG = "graphite";
3
+ /** The alias slug that always means {@link CONFIGURED_DEFAULT_THEME_PACK_SLUG}. */
4
+ export declare const DEFAULT_THEME_PACK_ALIAS = "default";
5
+ /** Resolve the `"default"` alias to the configured default pack; every other
6
+ * slug passes through unchanged. */
7
+ export declare function resolveThemePackAlias(slug: string): string;
3
8
  /** Inputs read by {@link resolveConfiguredThemePack}. */
4
9
  export interface ConfiguredThemePackInput {
5
10
  /** The configured slug. `null`/`undefined` mean "omitted". */
@@ -12,9 +17,10 @@ export interface ConfiguredThemePackInput {
12
17
  /**
13
18
  * Resolve the effective configured pack slug:
14
19
  *
15
- * 1. an explicit (non-nullish) `themePack` wins verbatim — validation of the
16
- * slug stays with the registry resolver, which fails loudly;
17
- * 2. omitted + custom `colorSchemes` or `colorMode: false` → `"default"`
20
+ * 1. an explicit (non-nullish) `themePack` wins, with the `"default"` alias
21
+ * resolved to `"graphite"` — validation of the slug stays with the
22
+ * registry resolver, which fails loudly;
23
+ * 2. omitted + custom `colorSchemes` or `colorMode: false` → `"classic"`
18
24
  * (Classic, no pack stylesheet);
19
25
  * 3. otherwise → {@link CONFIGURED_DEFAULT_THEME_PACK_SLUG}.
20
26
  */
@@ -1,13 +1,21 @@
1
- const RESERVED_DEFAULT_SLUG = "default";
1
+ const RESERVED_CLASSIC_SLUG = "classic";
2
2
  const CONFIGURED_DEFAULT_THEME_PACK_SLUG = "graphite";
3
+ const DEFAULT_THEME_PACK_ALIAS = "default";
4
+ function resolveThemePackAlias(slug) {
5
+ return slug === DEFAULT_THEME_PACK_ALIAS ? CONFIGURED_DEFAULT_THEME_PACK_SLUG : slug;
6
+ }
3
7
  function resolveConfiguredThemePack(input) {
4
- if (input.themePack !== void 0 && input.themePack !== null) return input.themePack;
8
+ if (input.themePack !== void 0 && input.themePack !== null) {
9
+ return resolveThemePackAlias(input.themePack);
10
+ }
5
11
  if (input.customColorSchemes === true || input.colorMode === false) {
6
- return RESERVED_DEFAULT_SLUG;
12
+ return RESERVED_CLASSIC_SLUG;
7
13
  }
8
14
  return CONFIGURED_DEFAULT_THEME_PACK_SLUG;
9
15
  }
10
16
  export {
11
17
  CONFIGURED_DEFAULT_THEME_PACK_SLUG,
12
- resolveConfiguredThemePack
18
+ DEFAULT_THEME_PACK_ALIAS,
19
+ resolveConfiguredThemePack,
20
+ resolveThemePackAlias
13
21
  };
@@ -1,5 +1,5 @@
1
- export { THEME_PACK_SLUG_RE, DEFAULT_THEME_PACK_SLUG, themePackMetaSchema, type ThemePackMeta, type ThemePackSwatches, } from "./meta-schema.js";
2
- export { CONFIGURED_DEFAULT_THEME_PACK_SLUG, resolveConfiguredThemePack, type ConfiguredThemePackInput, } from "./configured-theme-pack.js";
1
+ export { THEME_PACK_SLUG_RE, CLASSIC_THEME_PACK_SLUG, themePackMetaSchema, type ThemePackMeta, type ThemePackSwatches, } from "./meta-schema.js";
2
+ export { CONFIGURED_DEFAULT_THEME_PACK_SLUG, DEFAULT_THEME_PACK_ALIAS, resolveConfiguredThemePack, resolveThemePackAlias, type ConfiguredThemePackInput, } from "./configured-theme-pack.js";
3
3
  export { KNOWN_THEME_PACK_TOKEN_NAMES, COMMERCIAL_FONT_DENYLIST, THEME_PACK_SOFT_BUDGET_BYTES, } from "./token-manifest.js";
4
4
  export { validateThemePack, type ThemePackValidationInput, type ThemePackValidationIssue, type ThemePackValidationResult, type ThemePackValidationSeverity, } from "./validator.js";
5
5
  export type { ThemePackRegistry, ThemePackRegistryEntry } from "./types.js";
@@ -1,11 +1,13 @@
1
1
  import {
2
2
  THEME_PACK_SLUG_RE,
3
- DEFAULT_THEME_PACK_SLUG,
3
+ CLASSIC_THEME_PACK_SLUG,
4
4
  themePackMetaSchema
5
5
  } from "./meta-schema.js";
6
6
  import {
7
7
  CONFIGURED_DEFAULT_THEME_PACK_SLUG,
8
- resolveConfiguredThemePack
8
+ DEFAULT_THEME_PACK_ALIAS,
9
+ resolveConfiguredThemePack,
10
+ resolveThemePackAlias
9
11
  } from "./configured-theme-pack.js";
10
12
  import {
11
13
  KNOWN_THEME_PACK_TOKEN_NAMES,
@@ -23,15 +25,17 @@ import {
23
25
  schemaVersion
24
26
  } from "./build-registry.js";
25
27
  export {
28
+ CLASSIC_THEME_PACK_SLUG,
26
29
  COMMERCIAL_FONT_DENYLIST,
27
30
  CONFIGURED_DEFAULT_THEME_PACK_SLUG,
28
- DEFAULT_THEME_PACK_SLUG,
31
+ DEFAULT_THEME_PACK_ALIAS,
29
32
  KNOWN_THEME_PACK_TOKEN_NAMES,
30
33
  THEME_PACK_SLUG_RE,
31
34
  THEME_PACK_SOFT_BUDGET_BYTES,
32
35
  buildThemePackRegistry,
33
36
  resolveConfiguredThemePack,
34
37
  resolveEnabledPacks,
38
+ resolveThemePackAlias,
35
39
  schemaVersion,
36
40
  themePackMetaSchema,
37
41
  validateThemePack
@@ -3,10 +3,10 @@ export type { ThemePackMeta, ThemePackSwatches } from "../route-context-payload/
3
3
  /** `[a-z0-9][a-z0-9-]*` — a pack's slug MUST equal its directory name
4
4
  * (Decision 6.7 "slug regex + dir-name parity"). */
5
5
  export declare const THEME_PACK_SLUG_RE: RegExp;
6
- /** The reserved slug meaning "the stock zudo-doc look" — ships `meta.json`
7
- * ONLY (no `pack.css`); the runtime never inserts a stylesheet link for it
8
- * (ADR Decision 1, "The reserved `default` pack"). */
9
- export declare const DEFAULT_THEME_PACK_SLUG = "default";
6
+ /** The reserved slug meaning "the stock zudo-doc look" (Classic) — ships
7
+ * `meta.json` ONLY (no `pack.css`); the runtime never inserts a stylesheet
8
+ * link for it (ADR Decision 1, "The reserved Classic pack"). */
9
+ export declare const CLASSIC_THEME_PACK_SLUG = "classic";
10
10
  export declare const themePackMetaSchema: z.ZodObject<{
11
11
  schemaVersion: z.ZodLiteral<1>;
12
12
  slug: z.ZodString;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  const THEME_PACK_SLUG_RE = /^[a-z0-9][a-z0-9-]*$/;
3
- const DEFAULT_THEME_PACK_SLUG = "default";
3
+ const CLASSIC_THEME_PACK_SLUG = "classic";
4
4
  const SEMVER_RE = /^\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?$/;
5
5
  const themePackSwatchesSchema = z.object({
6
6
  bg: z.string().min(1),
@@ -32,7 +32,7 @@ const themePackMetaSchema = z.object({
32
32
  })
33
33
  });
34
34
  export {
35
- DEFAULT_THEME_PACK_SLUG,
35
+ CLASSIC_THEME_PACK_SLUG,
36
36
  THEME_PACK_SLUG_RE,
37
37
  themePackMetaSchema
38
38
  };
@@ -9,8 +9,8 @@ export interface ResolveEnabledPacksSettings {
9
9
  /** The resolved `colorMode`; `false` makes an omitted `themePack` Classic. */
10
10
  colorMode?: unknown;
11
11
  /** Explicit enabled-pack order, or `undefined` for the canonical default
12
- * order (`"graphite"` first, `"default"` (Classic) second, then the rest
13
- * alphabetically). */
12
+ * order (`"graphite"` first, `"classic"` second, then the rest
13
+ * alphabetically). A `"default"` entry is the alias for `"graphite"`. */
14
14
  themePacks?: string[];
15
15
  }
16
16
  /**
@@ -18,10 +18,11 @@ export interface ResolveEnabledPacksSettings {
18
18
  * / `settings.themePack` (Decision 7):
19
19
  *
20
20
  * - `themePacks` omitted → every bundled pack: the configured default
21
- * (`"graphite"`) first, `"default"` (Classic) second, then the rest in
21
+ * (`"graphite"`) first, `"classic"` second, then the rest in
22
22
  * canonical (alphabetical-by-slug) order.
23
- * - `themePacks` an explicit array → authoritative: may omit `"default"`,
24
- * reorder freely. Duplicate or unknown slugs throw loudly.
23
+ * - `themePacks` an explicit array → authoritative: may omit `"classic"`,
24
+ * reorder freely. A `"default"` entry is resolved to `"graphite"` first, so
25
+ * listing both is a duplicate. Duplicate or unknown slugs throw loudly.
25
26
  * - `themePack` (the active slug, default `"graphite"`) must be a member of
26
27
  * the resolved list — an unknown/excluded active slug throws loudly,
27
28
  * naming the bad slug and the available ones.
@@ -1,20 +1,21 @@
1
- import { DEFAULT_THEME_PACK_SLUG } from "./meta-schema.js";
1
+ import { CLASSIC_THEME_PACK_SLUG } from "./meta-schema.js";
2
2
  import {
3
3
  CONFIGURED_DEFAULT_THEME_PACK_SLUG,
4
- resolveConfiguredThemePack
4
+ resolveConfiguredThemePack,
5
+ resolveThemePackAlias
5
6
  } from "./configured-theme-pack.js";
6
7
  function resolveEnabledPacks(registry, settings) {
7
8
  const bySlug = new Map(registry.map((entry) => [entry.slug, entry]));
8
9
  const availableSlugs = registry.map((e) => e.slug);
9
10
  let orderedSlugs;
10
11
  if (settings.themePacks === void 0) {
11
- const leading = [CONFIGURED_DEFAULT_THEME_PACK_SLUG, DEFAULT_THEME_PACK_SLUG].filter(
12
+ const leading = [CONFIGURED_DEFAULT_THEME_PACK_SLUG, CLASSIC_THEME_PACK_SLUG].filter(
12
13
  (slug) => bySlug.has(slug)
13
14
  );
14
15
  const rest = availableSlugs.filter((s) => !leading.includes(s)).sort();
15
16
  orderedSlugs = [...leading, ...rest];
16
17
  } else {
17
- const requested = settings.themePacks;
18
+ const requested = settings.themePacks.map(resolveThemePackAlias);
18
19
  const seen = /* @__PURE__ */ new Set();
19
20
  const duplicates = [];
20
21
  const unknown = [];
@@ -41,7 +42,7 @@ function resolveEnabledPacks(registry, settings) {
41
42
  colorMode: settings.colorMode
42
43
  });
43
44
  if (!enabled.some((e) => e.slug === activeSlug)) {
44
- const migrationHint = activeSlug === CONFIGURED_DEFAULT_THEME_PACK_SLUG && settings.themePacks !== void 0 ? ` "${CONFIGURED_DEFAULT_THEME_PACK_SLUG}" is the default pack when themePack is omitted; add it to themePacks, or set themePack explicitly to an enabled pack (themePack: "default" keeps the Classic look).` : "";
45
+ const migrationHint = activeSlug === CONFIGURED_DEFAULT_THEME_PACK_SLUG && settings.themePacks !== void 0 ? ` "${CONFIGURED_DEFAULT_THEME_PACK_SLUG}" is the default pack when themePack is omitted; add it to themePacks, or set themePack explicitly to an enabled pack (themePack: "classic" keeps the Classic look).` : "";
45
46
  throw new Error(
46
47
  `zudo-doc: settings.themePack "${activeSlug}" is not one of the enabled theme packs. Enabled packs: ${enabled.map((e) => e.slug).join(", ") || "(none)"}.` + migrationHint
47
48
  );
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  themePackMetaSchema,
3
3
  THEME_PACK_SLUG_RE,
4
- DEFAULT_THEME_PACK_SLUG
4
+ CLASSIC_THEME_PACK_SLUG
5
5
  } from "./meta-schema.js";
6
+ import { DEFAULT_THEME_PACK_ALIAS } from "./configured-theme-pack.js";
6
7
  import {
7
8
  KNOWN_THEME_PACK_TOKEN_NAMES,
8
9
  COMMERCIAL_FONT_DENYLIST,
@@ -73,6 +74,13 @@ function checkSlugAndDirParity(dirName, meta, issues) {
73
74
  message: `directory name "${dirName}" does not match the required slug pattern [a-z0-9][a-z0-9-]*`
74
75
  });
75
76
  }
77
+ if (dirName === DEFAULT_THEME_PACK_ALIAS) {
78
+ issues.push({
79
+ rule: "slug-dir-parity",
80
+ severity: "error",
81
+ message: `"${DEFAULT_THEME_PACK_ALIAS}" is a reserved alias for the configured default pack and cannot be a pack directory name`
82
+ });
83
+ }
76
84
  if (meta && meta.slug !== dirName) {
77
85
  issues.push({
78
86
  rule: "slug-dir-parity",
@@ -82,12 +90,12 @@ function checkSlugAndDirParity(dirName, meta, issues) {
82
90
  }
83
91
  }
84
92
  function checkCssPresence(dirName, cssContent, issues) {
85
- if (dirName === DEFAULT_THEME_PACK_SLUG) {
93
+ if (dirName === CLASSIC_THEME_PACK_SLUG) {
86
94
  if (cssContent !== null) {
87
95
  issues.push({
88
96
  rule: "css-presence",
89
97
  severity: "error",
90
- message: `the reserved "${DEFAULT_THEME_PACK_SLUG}" pack must NOT ship pack.css (it is the no-op stock look)`
98
+ message: `the reserved "${CLASSIC_THEME_PACK_SLUG}" pack must NOT ship pack.css (it is the no-op stock look)`
91
99
  });
92
100
  }
93
101
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takazudo/zudo-doc",
3
- "version": "9.1.5",
3
+ "version": "10.0.0",
4
4
  "type": "module",
5
5
  "description": "zudo-doc framework primitives layer that sits on top of zfb's engine — sidebar, theme, TOC, breadcrumb, layouts, head injection, View Transitions, SSR-skip wrappers (per ADR-003).",
6
6
  "license": "MIT",
@@ -753,10 +753,10 @@
753
753
  "peerDependencies": {
754
754
  "@modelcontextprotocol/sdk": "1.32.2",
755
755
  "@takazudo/zdtp": "^0.5.2 || ^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0",
756
- "@takazudo/zfb": "^5.2.2",
757
- "@takazudo/zfb-md-wasm": "^5.2.2",
758
- "@takazudo/zfb-runtime": "^5.2.2",
759
- "@takazudo/zudo-doc-history-server": "^9.0.0",
756
+ "@takazudo/zfb": "^6.0.1",
757
+ "@takazudo/zfb-md-wasm": "^6.0.1",
758
+ "@takazudo/zfb-runtime": "^6.0.1",
759
+ "@takazudo/zudo-doc-history-server": "^10.0.0",
760
760
  "diff": "^8.0.0",
761
761
  "katex": "^0.18.2 || ^0.19.0",
762
762
  "zod": "^4.3.6"
@@ -796,9 +796,9 @@
796
796
  "devDependencies": {
797
797
  "@modelcontextprotocol/sdk": "1.32.2",
798
798
  "@takazudo/mdx-formatter": "1.3.0",
799
- "@takazudo/zfb": "5.2.2",
800
- "@takazudo/zfb-md-wasm": "5.2.2",
801
- "@takazudo/zfb-runtime": "5.2.2",
799
+ "@takazudo/zfb": "6.0.1",
800
+ "@takazudo/zfb-md-wasm": "6.0.1",
801
+ "@takazudo/zfb-runtime": "6.0.1",
802
802
  "@types/fs-extra": "^11.0.4",
803
803
  "@types/minimist": "^1.2.5",
804
804
  "@types/node": "^25.9.9",
@@ -809,7 +809,7 @@
809
809
  "typescript": "^5.0.0",
810
810
  "vitest": "^4.1.12",
811
811
  "zod": "^4.6.7",
812
- "@takazudo/zudo-doc-history-server": "9.1.5"
812
+ "@takazudo/zudo-doc-history-server": "10.0.0"
813
813
  },
814
814
  "scripts": {
815
815
  "gen:search-widget-script": "node scripts/gen-search-widget-script.mjs",