@takazudo/zudo-doc 4.3.0 → 4.4.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.
Files changed (144) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/bin/zudo-doc.mjs +54 -13
  3. package/dist/auto-logo/index.d.ts +18 -0
  4. package/dist/auto-logo/index.js +33 -0
  5. package/dist/auto-logo/shapes.d.ts +32 -0
  6. package/dist/auto-logo/shapes.js +183 -0
  7. package/dist/auto-logo/standalone.d.ts +7 -0
  8. package/dist/auto-logo/standalone.js +35 -0
  9. package/dist/config.d.ts +8 -0
  10. package/dist/config.js +1 -0
  11. package/dist/content.css +4 -3
  12. package/dist/doc-content-header/index.js +1 -1
  13. package/dist/doc-history/index.js +1 -1
  14. package/dist/doc-page-shell/index.js +1 -1
  15. package/dist/doc-pager/index.js +2 -2
  16. package/dist/eject-logo/config-parse.d.ts +25 -0
  17. package/dist/eject-logo/config-parse.js +68 -0
  18. package/dist/eject-logo/config-rewriter.d.ts +22 -0
  19. package/dist/eject-logo/config-rewriter.js +68 -0
  20. package/dist/eject-logo/eject.d.ts +18 -0
  21. package/dist/eject-logo/eject.js +66 -0
  22. package/dist/eject-logo/index.d.ts +4 -0
  23. package/dist/eject-logo/index.js +16 -0
  24. package/dist/eject-logo/site-name.d.ts +21 -0
  25. package/dist/eject-logo/site-name.js +31 -0
  26. package/dist/header/header.js +14 -6
  27. package/dist/header/nav-class-tokens.d.ts +12 -0
  28. package/dist/header/nav-class-tokens.js +80 -0
  29. package/dist/header/nav-overflow-script.js +33 -16
  30. package/dist/home-page/index.d.ts +34 -5
  31. package/dist/home-page/index.js +95 -38
  32. package/dist/home-page/prepare-home-data.d.ts +9 -0
  33. package/dist/home-page/prepare-home-data.js +10 -3
  34. package/dist/i18n-defaults/index.js +3 -0
  35. package/dist/metainfo/doc-metainfo.js +35 -22
  36. package/dist/routes/index.js +2 -1
  37. package/dist/routes/locale-index.js +2 -1
  38. package/dist/safelist.css +1 -1
  39. package/dist/settings.d.ts +7 -0
  40. package/dist/sidebar-tree-island/index.js +3 -3
  41. package/dist/theme-cli/config-scanner.js +47 -0
  42. package/dist/theme-packs/academia/fonts/CourierPrime-400-latin.woff2 +0 -0
  43. package/dist/theme-packs/academia/fonts/CourierPrime-700-latin.woff2 +0 -0
  44. package/dist/theme-packs/academia/fonts/OFL.txt +94 -0
  45. package/dist/theme-packs/academia/fonts/SourceSerif4-italic-latin.woff2 +0 -0
  46. package/dist/theme-packs/academia/fonts/SourceSerif4-latin.woff2 +0 -0
  47. package/dist/theme-packs/academia/meta.json +37 -0
  48. package/dist/theme-packs/academia/pack.css +505 -0
  49. package/dist/theme-packs/bauhaus/fonts/ArchivoBlack-latin.woff2 +0 -0
  50. package/dist/theme-packs/bauhaus/fonts/Jost-latin.woff2 +0 -0
  51. package/dist/theme-packs/bauhaus/fonts/OFL.txt +95 -0
  52. package/dist/theme-packs/bauhaus/fonts/SpaceMono-400-latin.woff2 +0 -0
  53. package/dist/theme-packs/bauhaus/fonts/SpaceMono-700-latin.woff2 +0 -0
  54. package/dist/theme-packs/bauhaus/meta.json +38 -0
  55. package/dist/theme-packs/bauhaus/pack.css +614 -0
  56. package/dist/theme-packs/blueprint/fonts/IBMPlexMono-400-latin-ext.woff2 +0 -0
  57. package/dist/theme-packs/blueprint/fonts/IBMPlexMono-400-latin.woff2 +0 -0
  58. package/dist/theme-packs/blueprint/fonts/IBMPlexMono-500-latin-ext.woff2 +0 -0
  59. package/dist/theme-packs/blueprint/fonts/IBMPlexMono-500-latin.woff2 +0 -0
  60. package/dist/theme-packs/blueprint/fonts/Inter-latin-ext.woff2 +0 -0
  61. package/dist/theme-packs/blueprint/fonts/Inter-latin.woff2 +0 -0
  62. package/dist/theme-packs/blueprint/fonts/JosefinSans-latin.woff2 +0 -0
  63. package/dist/theme-packs/blueprint/fonts/OFL.txt +95 -0
  64. package/dist/theme-packs/blueprint/meta.json +38 -0
  65. package/dist/theme-packs/blueprint/pack.css +577 -0
  66. package/dist/theme-packs/botanica/fonts/CormorantGaramond-latin.woff2 +0 -0
  67. package/dist/theme-packs/botanica/fonts/CourierPrime-400-latin-ext.woff2 +0 -0
  68. package/dist/theme-packs/botanica/fonts/CourierPrime-400-latin.woff2 +0 -0
  69. package/dist/theme-packs/botanica/fonts/CourierPrime-700-latin-ext.woff2 +0 -0
  70. package/dist/theme-packs/botanica/fonts/CourierPrime-700-latin.woff2 +0 -0
  71. package/dist/theme-packs/botanica/fonts/CrimsonPro-latin-italic.woff2 +0 -0
  72. package/dist/theme-packs/botanica/fonts/CrimsonPro-latin.woff2 +0 -0
  73. package/dist/theme-packs/botanica/fonts/OFL.txt +95 -0
  74. package/dist/theme-packs/botanica/meta.json +38 -0
  75. package/dist/theme-packs/botanica/pack.css +546 -0
  76. package/dist/theme-packs/brutalist/meta.json +1 -1
  77. package/dist/theme-packs/brutalist/pack.css +10 -9
  78. package/dist/theme-packs/eink/fonts/CourierPrime-400-latin-ext.woff2 +0 -0
  79. package/dist/theme-packs/eink/fonts/CourierPrime-400-latin.woff2 +0 -0
  80. package/dist/theme-packs/eink/fonts/CourierPrime-700-latin-ext.woff2 +0 -0
  81. package/dist/theme-packs/eink/fonts/CourierPrime-700-latin.woff2 +0 -0
  82. package/dist/theme-packs/eink/fonts/EBGaramond-latin-italic.woff2 +0 -0
  83. package/dist/theme-packs/eink/fonts/EBGaramond-latin.woff2 +0 -0
  84. package/dist/theme-packs/eink/fonts/OFL.txt +94 -0
  85. package/dist/theme-packs/eink/meta.json +37 -0
  86. package/dist/theme-packs/eink/pack.css +490 -0
  87. package/dist/theme-packs/foundry/meta.json +1 -1
  88. package/dist/theme-packs/foundry/pack.css +2 -2
  89. package/dist/theme-packs/hearth/meta.json +1 -1
  90. package/dist/theme-packs/hearth/pack.css +1 -1
  91. package/dist/theme-packs/nocturne/pack.css +4 -0
  92. package/dist/theme-packs/observatory/meta.json +1 -1
  93. package/dist/theme-packs/observatory/pack.css +4 -1
  94. package/dist/theme-packs/onyx/pack.css +6 -0
  95. package/dist/theme-packs/phosphor/pack.css +4 -0
  96. package/dist/theme-packs/riso/fonts/ArchivoBlack-latin.woff2 +0 -0
  97. package/dist/theme-packs/riso/fonts/OFL.txt +95 -0
  98. package/dist/theme-packs/riso/fonts/SpaceGrotesk-latin.woff2 +0 -0
  99. package/dist/theme-packs/riso/fonts/SpaceMono-400-italic-latin.woff2 +0 -0
  100. package/dist/theme-packs/riso/fonts/SpaceMono-400-latin.woff2 +0 -0
  101. package/dist/theme-packs/riso/fonts/SpaceMono-700-latin.woff2 +0 -0
  102. package/dist/theme-packs/riso/meta.json +38 -0
  103. package/dist/theme-packs/riso/pack.css +602 -0
  104. package/dist/theme-packs/sakura/fonts/MPlus1Code-400-latin.woff2 +0 -0
  105. package/dist/theme-packs/sakura/fonts/MPlus1Code-500-latin.woff2 +0 -0
  106. package/dist/theme-packs/sakura/fonts/Nunito-latin.woff2 +0 -0
  107. package/dist/theme-packs/sakura/fonts/OFL.txt +95 -0
  108. package/dist/theme-packs/sakura/fonts/ShipporiMincho-600-latin.woff2 +0 -0
  109. package/dist/theme-packs/sakura/fonts/ShipporiMincho-700-latin.woff2 +0 -0
  110. package/dist/theme-packs/sakura/meta.json +38 -0
  111. package/dist/theme-packs/sakura/pack.css +473 -0
  112. package/dist/theme-packs/scandi/fonts/Manrope-latin.woff2 +0 -0
  113. package/dist/theme-packs/scandi/fonts/OFL.txt +94 -0
  114. package/dist/theme-packs/scandi/fonts/SplineSansMono-latin.woff2 +0 -0
  115. package/dist/theme-packs/scandi/meta.json +37 -0
  116. package/dist/theme-packs/scandi/pack.css +370 -0
  117. package/dist/theme-packs/sumi/meta.json +1 -1
  118. package/dist/theme-packs/sumi/pack.css +4 -1
  119. package/dist/theme-packs/swissgrid/pack.css +4 -0
  120. package/dist/theme-packs/tidepool/fonts/JetBrainsMono-latin-ext.woff2 +0 -0
  121. package/dist/theme-packs/tidepool/fonts/JetBrainsMono-latin.woff2 +0 -0
  122. package/dist/theme-packs/tidepool/fonts/OFL.txt +94 -0
  123. package/dist/theme-packs/tidepool/fonts/SpaceGrotesk-latin.woff2 +0 -0
  124. package/dist/theme-packs/tidepool/meta.json +37 -0
  125. package/dist/theme-packs/tidepool/pack.css +425 -0
  126. package/dist/theme-packs/timberline/fonts/Fraunces-italic-latin.woff2 +0 -0
  127. package/dist/theme-packs/timberline/fonts/Fraunces-latin.woff2 +0 -0
  128. package/dist/theme-packs/timberline/fonts/JetBrainsMono-latin.woff2 +0 -0
  129. package/dist/theme-packs/timberline/fonts/OFL.txt +95 -0
  130. package/dist/theme-packs/timberline/fonts/SourceSans3-italic-latin.woff2 +0 -0
  131. package/dist/theme-packs/timberline/fonts/SourceSans3-latin.woff2 +0 -0
  132. package/dist/theme-packs/timberline/meta.json +38 -0
  133. package/dist/theme-packs/timberline/pack.css +509 -0
  134. package/dist/theme-packs/washi/meta.json +1 -1
  135. package/dist/theme-packs/washi/pack.css +6 -26
  136. package/eject/doc-history/index.tsx +1 -1
  137. package/eject/doc-pager/index.tsx +2 -2
  138. package/eject/header/header.tsx +16 -8
  139. package/eject/header/nav-class-tokens.ts +115 -0
  140. package/eject/header/nav-overflow-script.ts +49 -16
  141. package/eject/sidebar-tree-island/index.tsx +4 -4
  142. package/package.json +16 -8
  143. package/routes-src/index.tsx +2 -1
  144. package/routes-src/locale-index.tsx +2 -1
@@ -0,0 +1,95 @@
1
+ Copyright 2014 The Nunito Project Authors (https://github.com/googlefonts/nunito)
2
+ Copyright 2021 The Shippori Mincho Project Authors (https://github.com/fontdasu/ShipporiMincho)
3
+ Copyright 2021 The M+ FONTS Project Authors (https://github.com/coz-m/MPLUS_FONTS)
4
+
5
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
6
+ This license is copied below, and is also available with a FAQ at:
7
+ https://scripts.sil.org/OFL
8
+
9
+
10
+ -----------------------------------------------------------
11
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
12
+ -----------------------------------------------------------
13
+
14
+ PREAMBLE
15
+ The goals of the Open Font License (OFL) are to stimulate worldwide
16
+ development of collaborative font projects, to support the font creation
17
+ efforts of academic and linguistic communities, and to provide a free and
18
+ open framework in which fonts may be shared and improved in partnership
19
+ with others.
20
+
21
+ The OFL allows the licensed fonts to be used, studied, modified and
22
+ redistributed freely as long as they are not sold by themselves. The
23
+ fonts, including any derivative works, can be bundled, embedded,
24
+ redistributed and/or sold with any software provided that any reserved
25
+ names are not used by derivative works. The fonts and derivatives,
26
+ however, cannot be released under any other type of license. The
27
+ requirement for fonts to remain under this license does not apply
28
+ to any document created using the fonts or their derivatives.
29
+
30
+ DEFINITIONS
31
+ "Font Software" refers to the set of files released by the Copyright
32
+ Holder(s) under this license and clearly marked as such. This may
33
+ include source files, build scripts and documentation.
34
+
35
+ "Reserved Font Name" refers to any names specified as such after the
36
+ copyright statement(s).
37
+
38
+ "Original Version" refers to the collection of Font Software components as
39
+ distributed by the Copyright Holder(s).
40
+
41
+ "Modified Version" refers to any derivative made by adding to, deleting,
42
+ or substituting -- in part or in whole -- any of the components of the
43
+ Original Version, by changing formats or by porting the Font Software to a
44
+ new environment.
45
+
46
+ "Author" refers to any designer, engineer, programmer, technical
47
+ writer or other person who contributed to the Font Software.
48
+
49
+ PERMISSION & CONDITIONS
50
+ Permission is hereby granted, free of charge, to any person obtaining
51
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
52
+ redistribute, and sell modified and unmodified copies of the Font
53
+ Software, subject to the following conditions:
54
+
55
+ 1) Neither the Font Software nor any of its individual components,
56
+ in Original or Modified Versions, may be sold by itself.
57
+
58
+ 2) Original or Modified Versions of the Font Software may be bundled,
59
+ redistributed and/or sold with any software, provided that each copy
60
+ contains the above copyright notice and this license. These can be
61
+ included either as stand-alone text files, human-readable headers or
62
+ in the appropriate machine-readable metadata fields within text or
63
+ binary files as long as those fields can be easily viewed by the user.
64
+
65
+ 3) No Modified Version of the Font Software may use the Reserved Font
66
+ Name(s) unless explicit written permission is granted by the corresponding
67
+ Copyright Holder. This restriction only applies to the primary font name as
68
+ presented to the users.
69
+
70
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
71
+ Software shall not be used to promote, endorse or advertise any
72
+ Modified Version, except to acknowledge the contribution(s) of the
73
+ Copyright Holder(s) and the Author(s) or with their explicit written
74
+ permission.
75
+
76
+ 5) The Font Software, modified or unmodified, in part or in whole,
77
+ must be distributed entirely under this license, and must not be
78
+ distributed under any other license. The requirement for fonts to
79
+ remain under this license does not apply to any document created
80
+ using the Font Software.
81
+
82
+ TERMINATION
83
+ This license becomes null and void if any of the above conditions are
84
+ not met.
85
+
86
+ DISCLAIMER
87
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
88
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
89
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
90
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
91
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
92
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
93
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
94
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
95
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,38 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "slug": "sakura",
4
+ "name": "Sakura",
5
+ "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.",
6
+ "mode": "light",
7
+ "version": "1.0.0",
8
+ "fonts": {
9
+ "sans": "Nunito",
10
+ "mono": "M PLUS 1 Code",
11
+ "display": "Shippori Mincho",
12
+ "loaded": ["Nunito", "Shippori Mincho", "M PLUS 1 Code"]
13
+ },
14
+ "preview": {
15
+ "light": {
16
+ "bg": "oklch(0.977 0.009 350)",
17
+ "fg": "oklch(0.29 0.055 340)",
18
+ "accent": "oklch(0.5 0.168 358)",
19
+ "syntax": {
20
+ "keyword": "oklch(0.5 0.168 358)",
21
+ "string": "oklch(0.49 0.115 150)",
22
+ "comment": "oklch(0.5 0.04 340)",
23
+ "callable": "oklch(0.49 0.135 300)"
24
+ }
25
+ },
26
+ "dark": {
27
+ "bg": "oklch(0.215 0.03 330)",
28
+ "fg": "oklch(0.935 0.014 350)",
29
+ "accent": "oklch(0.78 0.115 355)",
30
+ "syntax": {
31
+ "keyword": "oklch(0.79 0.125 355)",
32
+ "string": "oklch(0.78 0.115 150)",
33
+ "comment": "oklch(0.71 0.038 345)",
34
+ "callable": "oklch(0.78 0.105 300)"
35
+ }
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,473 @@
1
+ /* ============================================================
2
+ Sakura — zudo-doc theme pack (ADR docs/adr/theme-packs.md)
3
+
4
+ Cherry-blossom pastels: blush-white paper, plum ink, rose
5
+ accents, petal-soft corners everywhere. Nunito prose under
6
+ Shippori Mincho display headings, M PLUS 1 Code code. Light =
7
+ hanami noon — warm white washed with blossom pink; dark =
8
+ yozakura, night blossom viewing — deep plum-charcoal lit by
9
+ lantern-pink accents (the same rose hues, now glowing).
10
+
11
+ The contrast contract of this concept: pink is NEVER a text
12
+ ink on white. Text and UI inks stay dark plum/charcoal; pink
13
+ lives in surfaces, washes, borders, and accent MARKS. The one
14
+ pink that touches type — the link/accent rose — is darkened to
15
+ oklch(0.5 0.168 358) (6.15:1 on the light bg); every pastel
16
+ wash carrying text passed a composited culori check at
17
+ >= 4.6:1 in both modes.
18
+
19
+ Every rule below is scoped under html[data-theme-pack="sakura"]
20
+ — this is what makes the runtime pack swap atomic (Decision 3)
21
+ and lets the validator prove a pack can never leak styles while
22
+ inactive (Decision 6.7). The @font-face blocks are the sole
23
+ exception (at-rules can't be selector-scoped).
24
+
25
+ CJK font rule (Decision 5): no CJK subsets ship. All three
26
+ families load latin only; every stack ends in a bare generic so
27
+ the platform's own Japanese fonts carry CJK glyphs.
28
+
29
+ Prototype-selector adaptations against the REAL DOM (the
30
+ 16-sakura.html prototype was inspiration only; every selector
31
+ below targets the stable hook table in
32
+ docs/theme-pack-authoring.md (b)):
33
+ - `.sb-group a` → `#desktop-sidebar a` + the separate mobile
34
+ drawer hook `aside[data-zd-mobile-sidebar] a`
35
+ - `.toc-active` → `nav[data-zd-toc] a[aria-current="true"]`
36
+ - `.doc-pager` → `.zd-content > nav[data-doc-pager]`
37
+ - `.lead` → `.zd-content > p[data-doc-description]`
38
+ - prototype fonts (M PLUS Rounded 1c / Quicksand via Google CDN)
39
+ → self-hosted Nunito + Shippori Mincho + M PLUS 1 Code
40
+ (Decision 5: no CDN imports; rounded-humanist warmth comes
41
+ from Nunito, the display voice from Shippori Mincho)
42
+ ============================================================ */
43
+
44
+ /* ---- Nunito — rounded humanist sans for prose and chrome.
45
+ Variable 400–800 (bold prose emphasis and the 700 pill
46
+ weights come from the same file). Latin subset only. ---- */
47
+
48
+ @font-face {
49
+ font-family: "Nunito";
50
+ font-style: normal;
51
+ font-weight: 400 800;
52
+ font-display: swap;
53
+ src: url("./fonts/Nunito-latin.woff2") format("woff2");
54
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
55
+ U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
56
+ U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
57
+ }
58
+
59
+ /* ---- Shippori Mincho — display serif for the title, h2 and the
60
+ wordmark (static 600 heading weight + 700 logo weight).
61
+ Latin subsets only; the bare serif generic supplies CJK. ---- */
62
+
63
+ @font-face {
64
+ font-family: "Shippori Mincho";
65
+ font-style: normal;
66
+ font-weight: 600;
67
+ font-display: swap;
68
+ src: url("./fonts/ShipporiMincho-600-latin.woff2") format("woff2");
69
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
70
+ U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
71
+ U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
72
+ }
73
+
74
+ @font-face {
75
+ font-family: "Shippori Mincho";
76
+ font-style: normal;
77
+ font-weight: 700;
78
+ font-display: swap;
79
+ src: url("./fonts/ShipporiMincho-700-latin.woff2") format("woff2");
80
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
81
+ U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
82
+ U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
83
+ }
84
+
85
+ /* ---- M PLUS 1 Code — code face (static 400 + 500; 500 keeps the
86
+ inline-code medium weight true). ---- */
87
+
88
+ @font-face {
89
+ font-family: "M PLUS 1 Code";
90
+ font-style: normal;
91
+ font-weight: 400;
92
+ font-display: swap;
93
+ src: url("./fonts/MPlus1Code-400-latin.woff2") format("woff2");
94
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
95
+ U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
96
+ U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
97
+ }
98
+
99
+ @font-face {
100
+ font-family: "M PLUS 1 Code";
101
+ font-style: normal;
102
+ font-weight: 500;
103
+ font-display: swap;
104
+ src: url("./fonts/MPlus1Code-500-latin.woff2") format("woff2");
105
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
106
+ U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
107
+ U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
108
+ }
109
+
110
+ html[data-theme-pack="sakura"] {
111
+ /* Tier-2 semantic roles — hanami noon / yozakura night. Both modes
112
+ always via light-dark(). Inks are dark plum; the accent is the one
113
+ AA-passing rose (6.15:1 light, 8.38:1 dark). */
114
+ --zd-bg: light-dark(oklch(0.977 0.009 350), oklch(0.215 0.03 330));
115
+ --zd-fg: light-dark(oklch(0.29 0.055 340), oklch(0.935 0.014 350));
116
+ --zd-selection-bg: light-dark(oklch(0.865 0.06 352), oklch(0.45 0.1 350));
117
+ --zd-selection-fg: light-dark(oklch(0.28 0.06 340), oklch(0.975 0.008 350));
118
+ --zd-surface: light-dark(oklch(0.988 0.006 350), oklch(0.245 0.032 330));
119
+ --zd-muted: light-dark(oklch(0.45 0.045 340), oklch(0.735 0.04 345));
120
+ --zd-accent: light-dark(oklch(0.5 0.168 358), oklch(0.78 0.115 355));
121
+ --zd-accent-hover: light-dark(oklch(0.44 0.15 358), oklch(0.845 0.09 355));
122
+ --zd-code-bg: light-dark(oklch(0.952 0.019 352), oklch(0.262 0.036 332));
123
+ --zd-code-fg: light-dark(oklch(0.295 0.055 340), oklch(0.93 0.016 350));
124
+ /* success/warning light inks sit as admonition-title text over their own
125
+ 12%-tint paper (title ink == tint source, content.css) — at L 0.49/0.51
126
+ the rendered composite landed in the audit WARN band (4.69:1 / 4.66:1).
127
+ L −0.02 each (hue/chroma untouched) lifts the composite to 5.07:1 /
128
+ 5.04:1 with the tint-darkening feedback included. */
129
+ --zd-success: light-dark(oklch(0.47 0.115 150), oklch(0.77 0.115 150));
130
+ --zd-danger: light-dark(oklch(0.5 0.16 22), oklch(0.72 0.135 22));
131
+ --zd-warning: light-dark(oklch(0.49 0.105 70), oklch(0.8 0.105 75));
132
+ --zd-info: light-dark(oklch(0.49 0.115 280), oklch(0.76 0.095 280));
133
+
134
+ /* syntax — all 9 roles, both modes: a hanami still life. Rose
135
+ keywords, fresh-leaf strings, apricot numbers, wisteria callables,
136
+ spring-sky types, plum names; inserted/deleted reuse the leaf and
137
+ rose-red state hues. Every color >= 4.6:1 on the blossom code
138
+ sheet (culori-checked). */
139
+ --zd-syntax-comment: light-dark(oklch(0.5 0.04 340), oklch(0.71 0.038 345));
140
+ --zd-syntax-string: light-dark(oklch(0.49 0.115 150), oklch(0.78 0.115 150));
141
+ --zd-syntax-number: light-dark(oklch(0.51 0.115 55), oklch(0.8 0.105 60));
142
+ --zd-syntax-keyword: light-dark(oklch(0.5 0.168 358), oklch(0.79 0.125 355));
143
+ --zd-syntax-callable: light-dark(oklch(0.49 0.135 300), oklch(0.78 0.105 300));
144
+ --zd-syntax-type: light-dark(oklch(0.49 0.105 245), oklch(0.78 0.095 235));
145
+ --zd-syntax-name: light-dark(oklch(0.295 0.055 340), oklch(0.93 0.016 350));
146
+ --zd-syntax-inserted: light-dark(oklch(0.49 0.115 150), oklch(0.77 0.115 150));
147
+ --zd-syntax-deleted: light-dark(oklch(0.5 0.16 22), oklch(0.72 0.135 22));
148
+
149
+ /* fonts — Nunito reading face, M PLUS 1 Code code, Shippori Mincho
150
+ display voice. Latin subsets loaded; each stack ends in its bare
151
+ generic so platform CJK fonts carry Japanese glyphs (Decision 5). */
152
+ --font-sans: "Nunito", system-ui, sans-serif;
153
+ --font-mono: "M PLUS 1 Code", ui-monospace, SFMono-Regular, Menlo, monospace;
154
+ --font-display: "Shippori Mincho", serif;
155
+
156
+ /* Tier-3 component seams — mincho display headings at 600 with
157
+ gently opened tracking; petal-soft radii (the 8–10px signature):
158
+ 10px cards, petal-asymmetric admonitions, rose active-nav pill. */
159
+ --zdc-doc-title-font: var(--font-display);
160
+ --zdc-doc-title-weight: 600;
161
+ --zdc-doc-title-tracking: 0.01em;
162
+ --zdc-doc-h2-font: var(--font-display);
163
+ --zdc-doc-h2-weight: 600;
164
+ --zdc-doc-h2-tracking: 0.01em;
165
+ --zdc-admonition-radius: 6px 12px 12px 6px;
166
+ --zdc-admonition-border-width: 3px;
167
+ --zdc-card-radius: 10px;
168
+ --zdc-nav-active-indicator-color: var(--zd-accent);
169
+ --zdc-nav-active-weight: 700;
170
+ }
171
+
172
+ /* ---- Sakura extras ---- */
173
+
174
+ /* signature move #1 — blossom washes drifting in from the page
175
+ corners; in dark mode the same mixes read as lantern glow behind
176
+ night blossoms (the tokens are light-dark, so the washes are too) */
177
+ html[data-theme-pack="sakura"] body {
178
+ background-image:
179
+ radial-gradient(
180
+ 50rem 26rem at 88% -6%,
181
+ color-mix(in srgb, var(--zd-accent) 9%, transparent),
182
+ transparent 62%
183
+ ),
184
+ radial-gradient(
185
+ 34rem 22rem at 4% 8%,
186
+ color-mix(in srgb, var(--zd-accent) 6%, transparent),
187
+ transparent 66%
188
+ ),
189
+ radial-gradient(
190
+ 28rem 18rem at 55% 105%,
191
+ color-mix(in srgb, var(--zd-accent) 5%, transparent),
192
+ transparent 70%
193
+ );
194
+ background-attachment: fixed;
195
+ }
196
+
197
+ /* header — a blush veil fading toward the right, petal hairline */
198
+ html[data-theme-pack="sakura"] header[data-header] {
199
+ background-image: linear-gradient(
200
+ to right,
201
+ color-mix(in srgb, var(--zd-accent) 7%, var(--zd-surface)),
202
+ var(--zd-surface) 60%
203
+ );
204
+ border-bottom-color: color-mix(in srgb, var(--zd-accent) 26%, transparent);
205
+ }
206
+
207
+ /* wordmark — mincho voice with a single blossom */
208
+ html[data-theme-pack="sakura"] [data-header-logo] {
209
+ font-family: var(--font-display);
210
+ font-weight: 700;
211
+ letter-spacing: 0.015em;
212
+ }
213
+ html[data-theme-pack="sakura"] [data-header-logo]::after {
214
+ content: " ❀";
215
+ color: var(--zd-accent);
216
+ font-size: 0.8em;
217
+ }
218
+
219
+ /* header nav — petal pills, rose ink on hover */
220
+ html[data-theme-pack="sakura"] [data-nav-item] {
221
+ border-radius: 9999px;
222
+ }
223
+ html[data-theme-pack="sakura"] [data-nav-item]:hover {
224
+ text-decoration: none;
225
+ color: var(--zd-accent);
226
+ background: color-mix(in srgb, var(--zd-accent) 10%, transparent);
227
+ }
228
+
229
+ /* sidebar — a blush sheet one wash pinker than the page; the mobile
230
+ drawer is a separate stable hook and gets the same sheet */
231
+ html[data-theme-pack="sakura"] #desktop-sidebar,
232
+ html[data-theme-pack="sakura"] aside[data-zd-mobile-sidebar] {
233
+ background-color: light-dark(oklch(0.966 0.013 350), oklch(0.2 0.027 330));
234
+ border-right-color: color-mix(in srgb, var(--zd-accent) 18%, transparent);
235
+ }
236
+
237
+ /* sidebar links — petal pills; rose ink + blossom wash on hover.
238
+ Active links keep their rose seal (hover must never paint
239
+ accent-on-accent), so the recolor excludes [data-nav-active]. */
240
+ html[data-theme-pack="sakura"] #desktop-sidebar a,
241
+ html[data-theme-pack="sakura"] aside[data-zd-mobile-sidebar] a {
242
+ border-radius: 9999px;
243
+ }
244
+ html[data-theme-pack="sakura"] #desktop-sidebar a:not([data-nav-active]):hover,
245
+ html[data-theme-pack="sakura"] aside[data-zd-mobile-sidebar] a:not([data-nav-active]):hover {
246
+ text-decoration: none;
247
+ color: var(--zd-accent);
248
+ background: color-mix(in srgb, var(--zd-accent) 10%, transparent);
249
+ }
250
+
251
+ /* active item — rose petal pill (fill via
252
+ --zdc-nav-active-indicator-color; its text-bg utility keeps
253
+ blush-paper text on the rose, 6.15:1 light / 8.38:1 dark) with a
254
+ soft petal shadow that turns lantern-glow after dark */
255
+ html[data-theme-pack="sakura"] a[data-nav-active] {
256
+ border-radius: 9999px;
257
+ box-shadow: 0 3px 10px -4px
258
+ light-dark(
259
+ color-mix(in srgb, var(--zd-accent) 55%, transparent),
260
+ color-mix(in srgb, var(--zd-accent) 70%, transparent)
261
+ );
262
+ }
263
+
264
+ /* signature move #2 — the h2 petal rule: a rose stroke that loosens
265
+ into drifting transparency. Re-points the SSR-inlined
266
+ `style="border-image:linear-gradient(...)"` gradient — the
267
+ border-image !important carve-out (Decision 6.6). */
268
+ html[data-theme-pack="sakura"] .zd-content h2 {
269
+ border-top-width: 2px;
270
+ border-image: linear-gradient(
271
+ to right,
272
+ var(--zd-accent) 0 2.5rem,
273
+ color-mix(in srgb, var(--zd-accent) 30%, transparent) 55%,
274
+ transparent
275
+ )
276
+ 1 !important;
277
+ }
278
+
279
+ /* h3 — a round blossom bud before the heading */
280
+ html[data-theme-pack="sakura"] .zd-content h3::before {
281
+ content: "";
282
+ display: inline-block;
283
+ width: 0.42em;
284
+ height: 0.42em;
285
+ border-radius: 9999px;
286
+ background: var(--zd-accent);
287
+ margin-right: 0.5em;
288
+ vertical-align: 0.12em;
289
+ }
290
+
291
+ /* the lead — airy, one breath rosier than body ink (10.9:1+) */
292
+ html[data-theme-pack="sakura"] .zd-content > p[data-doc-description] {
293
+ font-size: 1.18rem;
294
+ line-height: 1.75;
295
+ color: color-mix(in srgb, var(--zd-fg) 80%, var(--zd-accent));
296
+ }
297
+
298
+ /* links — rose ink (the AA-darkened pink), soft petal underline that
299
+ deepens on hover */
300
+ html[data-theme-pack="sakura"] .zd-content a {
301
+ text-decoration-color: color-mix(in srgb, var(--zd-accent) 40%, transparent);
302
+ text-decoration-thickness: 1.5px;
303
+ text-underline-offset: 3px;
304
+ }
305
+ html[data-theme-pack="sakura"] .zd-content a:hover {
306
+ text-decoration-color: var(--zd-accent-hover);
307
+ }
308
+
309
+ /* blockquote — a petal-edged aside on the faintest blossom wash */
310
+ html[data-theme-pack="sakura"] .zd-content blockquote {
311
+ border-left: 3px solid color-mix(in srgb, var(--zd-accent) 55%, transparent);
312
+ border-radius: 0 12px 12px 0;
313
+ background: color-mix(in srgb, var(--zd-accent) 6%, transparent);
314
+ padding: 0.6rem 1.15rem 0.6rem 1.2rem;
315
+ color: color-mix(in srgb, var(--zd-fg) 82%, var(--zd-accent));
316
+ }
317
+
318
+ /* hr — three drifting petals instead of a rule */
319
+ html[data-theme-pack="sakura"] .zd-content hr {
320
+ border: none;
321
+ }
322
+ html[data-theme-pack="sakura"] .zd-content hr::after {
323
+ content: "❀\2002\2002❀\2002\2002❀";
324
+ display: block;
325
+ text-align: center;
326
+ font-size: 0.8rem;
327
+ color: color-mix(in srgb, var(--zd-accent) 55%, transparent);
328
+ }
329
+
330
+ /* signature move #3 — code blocks: blossom-tinted sheets with
331
+ petal-soft 12px corners; the shadow is a quiet petal drop in
332
+ daylight and a lantern-pink glow at yozakura */
333
+ html[data-theme-pack="sakura"] pre.hi-root {
334
+ border-radius: 12px;
335
+ border-color: color-mix(in srgb, var(--zd-accent) 22%, transparent);
336
+ box-shadow:
337
+ inset 0 1px 0 light-dark(rgb(255 255 255 / 0.6), rgb(255 255 255 / 0.04)),
338
+ 0 6px 18px -12px
339
+ light-dark(
340
+ color-mix(in srgb, var(--zd-accent) 45%, transparent),
341
+ color-mix(in srgb, var(--zd-accent) 60%, transparent)
342
+ );
343
+ }
344
+ html[data-theme-pack="sakura"] .hi-com {
345
+ font-style: italic;
346
+ }
347
+
348
+ /* inline code — petal chips: blossom wash, rose-deepened plum ink
349
+ (8.97:1 light / 10.16:1 dark, composited-checked) */
350
+ html[data-theme-pack="sakura"] .zd-content code:not(pre code) {
351
+ border-radius: 8px;
352
+ background-color: color-mix(in srgb, var(--zd-accent) 8%, var(--zd-bg));
353
+ color: color-mix(in srgb, var(--zd-accent) 40%, var(--zd-fg));
354
+ padding: 1px 0.38rem;
355
+ }
356
+
357
+ /* admonitions — a spring-garden icon for each of the seven variants;
358
+ the default 12% state-tint washes all pass composited AA against
359
+ their state-colored titles and plum body ink */
360
+ html[data-theme-pack="sakura"] [data-admonition="note"] .admonition-title::before {
361
+ content: "🌸";
362
+ }
363
+ html[data-theme-pack="sakura"] [data-admonition="tip"] .admonition-title::before {
364
+ content: "🌱";
365
+ }
366
+ html[data-theme-pack="sakura"] [data-admonition="info"] .admonition-title::before {
367
+ content: "🎐";
368
+ }
369
+ html[data-theme-pack="sakura"] [data-admonition="warning"] .admonition-title::before {
370
+ content: "🐝";
371
+ }
372
+ html[data-theme-pack="sakura"] [data-admonition="important"] .admonition-title::before {
373
+ content: "🎀";
374
+ }
375
+ html[data-theme-pack="sakura"] [data-admonition="danger"] .admonition-title::before {
376
+ content: "🥀";
377
+ }
378
+ html[data-theme-pack="sakura"] [data-admonition="caution"] .admonition-title::before {
379
+ content: "🍂";
380
+ }
381
+
382
+ /* table — blush header band under petal rules */
383
+ html[data-theme-pack="sakura"] .zd-content th {
384
+ background: color-mix(in srgb, var(--zd-accent) 7%, transparent);
385
+ border-bottom-color: color-mix(in srgb, var(--zd-accent) 45%, transparent);
386
+ color: color-mix(in srgb, var(--zd-accent) 30%, var(--zd-fg));
387
+ }
388
+ html[data-theme-pack="sakura"] .zd-content td {
389
+ border-bottom-color: color-mix(in srgb, var(--zd-accent) 16%, transparent);
390
+ }
391
+
392
+ /* TOC — petal rail; rose hover ink; the active entry is a rose petal
393
+ pill (aria-current IS the contract — its text-bg utility keeps
394
+ blush-paper text on the rose fill). The pill pulls left within the
395
+ ul's padding (the rail-side overflow clips at the padding edge —
396
+ the foundry note), and glows lantern-pink after dark. The mobile
397
+ TOC is its own hook and gets a petal card frame below. */
398
+ html[data-theme-pack="sakura"] nav[data-zd-toc] ul {
399
+ border-left-color: color-mix(in srgb, var(--zd-accent) 28%, transparent);
400
+ }
401
+ html[data-theme-pack="sakura"] nav[data-zd-toc] a:not([aria-current="true"]):hover {
402
+ text-decoration: none;
403
+ color: var(--zd-accent);
404
+ }
405
+ html[data-theme-pack="sakura"] nav[data-zd-toc] a[aria-current="true"] {
406
+ background: var(--zd-accent);
407
+ border-radius: 9999px;
408
+ padding-left: 0.5rem;
409
+ margin-left: -0.5rem;
410
+ padding-right: 0.5rem;
411
+ box-shadow: 0 3px 10px -4px
412
+ light-dark(
413
+ color-mix(in srgb, var(--zd-accent) 55%, transparent),
414
+ color-mix(in srgb, var(--zd-accent) 70%, transparent)
415
+ );
416
+ }
417
+ html[data-theme-pack="sakura"] div[data-zd-mobile-toc] {
418
+ border: 1px solid color-mix(in srgb, var(--zd-accent) 22%, transparent);
419
+ border-radius: 12px;
420
+ background-color: color-mix(in srgb, var(--zd-accent) 4%, var(--zd-bg));
421
+ }
422
+
423
+ /* breadcrumb — rose on hover */
424
+ html[data-theme-pack="sakura"] main nav[aria-label="Breadcrumb"] a:hover {
425
+ color: var(--zd-accent);
426
+ }
427
+
428
+ /* pager — petal cards that blush on hover and lift on a soft glow */
429
+ html[data-theme-pack="sakura"] .zd-content > nav[data-doc-pager] > a {
430
+ border-radius: 10px;
431
+ border-color: color-mix(in srgb, var(--zd-accent) 22%, transparent);
432
+ transition:
433
+ background-color 0.18s ease,
434
+ border-color 0.18s ease,
435
+ box-shadow 0.18s ease;
436
+ }
437
+ html[data-theme-pack="sakura"] .zd-content > nav[data-doc-pager] > a:hover {
438
+ background: color-mix(in srgb, var(--zd-accent) 7%, var(--zd-bg));
439
+ border-color: color-mix(in srgb, var(--zd-accent) 45%, transparent);
440
+ box-shadow: 0 8px 20px -12px
441
+ light-dark(
442
+ color-mix(in srgb, var(--zd-accent) 55%, transparent),
443
+ color-mix(in srgb, var(--zd-accent) 70%, transparent)
444
+ );
445
+ }
446
+
447
+ /* footer — one last petal on the hairline */
448
+ html[data-theme-pack="sakura"] footer[data-footer] {
449
+ border-top-color: color-mix(in srgb, var(--zd-accent) 24%, transparent);
450
+ }
451
+ html[data-theme-pack="sakura"] footer[data-footer] a:hover {
452
+ color: var(--zd-accent);
453
+ }
454
+
455
+ /* theme-pack switcher — the pack's calling card gets petal corners
456
+ and the lantern glow; text colors are left to the tokens */
457
+ html[data-theme-pack="sakura"] [data-switcher-card] {
458
+ border-radius: 16px;
459
+ border-color: color-mix(in srgb, var(--zd-accent) 30%, transparent);
460
+ box-shadow: 0 16px 40px -14px
461
+ light-dark(
462
+ color-mix(in srgb, var(--zd-accent) 50%, transparent),
463
+ color-mix(in srgb, var(--zd-accent) 65%, transparent)
464
+ );
465
+ }
466
+ html[data-theme-pack="sakura"] [data-switcher-launcher] {
467
+ border-color: color-mix(in srgb, var(--zd-accent) 40%, transparent);
468
+ box-shadow: 0 5px 16px -6px
469
+ light-dark(
470
+ color-mix(in srgb, var(--zd-accent) 55%, transparent),
471
+ color-mix(in srgb, var(--zd-accent) 70%, transparent)
472
+ );
473
+ }