@bytechain.cn/colamd-themes 0.5.9 → 0.6.1

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 (69) hide show
  1. package/README.md +85 -19
  2. package/dist/cli.js +70 -6
  3. package/dist/cli.js.map +1 -1
  4. package/dist/compat.d.ts +23 -3
  5. package/dist/compat.js +71 -12
  6. package/dist/compat.js.map +1 -1
  7. package/dist/dsh-plugin.js +1 -1
  8. package/dist/generator.d.ts +1 -1
  9. package/dist/generator.js +5 -2
  10. package/dist/generator.js.map +1 -1
  11. package/dist/models.d.ts +7 -1
  12. package/dist/models.js +1 -1
  13. package/dist/models.js.map +1 -1
  14. package/dist/renderer.d.ts +1 -1
  15. package/dist/renderer.js +21 -3
  16. package/dist/renderer.js.map +1 -1
  17. package/dist/slides-markdown.d.ts +45 -0
  18. package/dist/slides-markdown.js +515 -0
  19. package/dist/slides-markdown.js.map +1 -0
  20. package/dist/slides.d.ts +36 -0
  21. package/dist/slides.js +149 -0
  22. package/dist/slides.js.map +1 -0
  23. package/dist/templates/theme-template.hbs +11 -0
  24. package/dist/validators.d.ts +2 -2
  25. package/dist/validators.js +71 -4
  26. package/dist/validators.js.map +1 -1
  27. package/package.json +3 -2
  28. package/skills/build-skills.sh +224 -217
  29. package/skills/colamd-themes/SKILL.md +178 -6
  30. package/themes/8-bit-orbit.css +817 -0
  31. package/themes/README.md +69 -0
  32. package/themes/biennale-yellow.css +577 -0
  33. package/themes/block-frame.css +774 -0
  34. package/themes/blue-professional.css +741 -0
  35. package/themes/bold-poster.css +794 -0
  36. package/themes/broadside.css +837 -0
  37. package/themes/capsule.css +767 -0
  38. package/themes/cartesian.css +584 -0
  39. package/themes/cobalt-grid.css +632 -0
  40. package/themes/coral.css +699 -0
  41. package/themes/creative-mode.css +642 -0
  42. package/themes/daisy-days.css +1052 -0
  43. package/themes/editorial-forest.css +796 -0
  44. package/themes/editorial-tri-tone.css +811 -0
  45. package/themes/emerald-editorial.css +683 -0
  46. package/themes/grove.css +623 -0
  47. package/themes/indigo-deck.css +336 -0
  48. package/themes/indigo-porcelain-light.css +335 -0
  49. package/themes/long-table.css +782 -0
  50. package/themes/mat.css +848 -0
  51. package/themes/monochrome.css +782 -0
  52. package/themes/neo-grid-bold.css +838 -0
  53. package/themes/peoples-platform.css +843 -0
  54. package/themes/pin-and-paper.css +700 -0
  55. package/themes/pink-script-dark.css +648 -0
  56. package/themes/pink-script.css +290 -0
  57. package/themes/playful.css +774 -0
  58. package/themes/raw-grid.css +814 -0
  59. package/themes/retro-windows.css +767 -0
  60. package/themes/retro-zine.css +814 -0
  61. package/themes/sakura-chroma.css +775 -0
  62. package/themes/scatterbrain.css +726 -0
  63. package/themes/signal.css +872 -0
  64. package/themes/soft-editorial.css +788 -0
  65. package/themes/stencil-tablet.css +922 -0
  66. package/themes/studio.css +767 -0
  67. package/themes/swiss-lemon-dark.css +529 -0
  68. package/themes/swiss-lemon-light.css +375 -0
  69. package/themes/vellum.css +723 -0
@@ -0,0 +1,336 @@
1
+ /*
2
+ * ColaMD Theme: Indigo Deck(靛蓝瓷 · 复刻自 ppt/index.html)
3
+ * 来源:/mnt/d/workspace/git/ColaMD-themes/ppt/index.html 的 🌊 靛蓝瓷主题
4
+ * --ink:#0a1f3d --paper:#f1f3f5 --paper-tint:#e4e8ec --ink-tint:#152a4a
5
+ * 标题 Noto Serif SC / 正文 Noto Sans SC / 元数据 IBM Plex Mono
6
+ * 契约:ColaMD 2.7.13(:root 活变量;CM6 每行一 div;引用/代码块禁纵向 padding;
7
+ * .cm-md-blockquote 不写 background——2.7.11 起底色由 ::before + --blockquote-bg 绘制)
8
+ * 注:纸面三层(surface/panel/panelAlt)按 paradigm SL-01/SL-02 降饱和为冷石墨蓝
9
+ * (H210-213°、S≤10%),靛蓝意象由 accent / highlight / Pele 承担。
10
+ */
11
+
12
+ :root {
13
+ /* ── 1.1 Seed Palette(11 色,取自 deck :root + 派生灰阶) ── */
14
+ --seed-accent: #8ab4e8; /* 链接/强调:WebGL 银蓝流光 */
15
+ --seed-accent-light: rgba(138, 180, 232, 0.16);
16
+ --seed-accent-dark: #5b8fce;
17
+ --seed-surface: #242526; /* deck --ink 降饱和至 S2.7%(SL-01:底色 ≤5%) */
18
+ --seed-panel: #2b2f34; /* L 18.6%(SL-02:≤10%;SL-04:surface < panel < panelAlt) */
19
+ --seed-panel-alt: #2e3237; /* L 19.8%,H213° 与 surface/panel 同轴(SL-03) */
20
+ --seed-ink: #f1f4f8; /* --paper 微调至 H214°(NT-01 与 muted/dim 同色相轴) */
21
+ --seed-ink-muted: #d1d6dc; /* deck lead opacity:.86 合成 */
22
+ --seed-ink-dim: #949eab; /* deck opacity:.6 合成 */
23
+ --seed-border: #525458; /* 中性灰(NT-03),与 panel L 差 ≥0.08(NT-02) */
24
+ --seed-border-strong: #6c6f74;
25
+
26
+ /* ── 1.2 Semantic Colors(27 活变量 · 14 色) ── */
27
+ --bg-color: var(--seed-surface); /* #0a1f3d 深靛蓝 = deck .slide.dark 背景 */
28
+ --text-color: var(--seed-ink);
29
+ --text-secondary: var(--seed-ink-muted);
30
+ --text-muted: var(--seed-ink-dim);
31
+ --border-color: var(--seed-border);
32
+ --link-color: var(--seed-accent);
33
+
34
+ --code-bg: #303133; /* paper 6% 叠加新 surface 的合成 */
35
+ --code-block-bg: var(--seed-panel-alt);
36
+ --code-block-text: #e4e8ec; /* --paper-tint */
37
+
38
+ --blockquote-border: var(--seed-ink); /* deck callout: border-left currentColor */
39
+ --blockquote-bg: #303133; /* deck 暗页 callout 底(随新 surface 同步降饱和) */
40
+ --table-header-bg: var(--seed-panel);
41
+
42
+ --selection-bg: rgba(138, 180, 232, 0.30);
43
+ --highlight-bg: #435060; /* accent 30% over ink:mark 可见且仍是靛蓝 */
44
+
45
+ /* ── 1.3 Typography & Metrics(4 活变量) ── */
46
+ --font-body: "Source Serif 4", "Noto Serif SC", source-han-serif-sc,
47
+ "Songti SC", Georgia, serif; /* 正文优雅印刷体:拉丁 Source Serif 4 + 中文 Noto Serif SC */
48
+ --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas,
49
+ "Noto Sans SC", monospace;
50
+ --editor-font-size: 17px; /* deck body max(15px,1.22vw) @1440 */
51
+ --editor-column-width: 860px; /* deck lead max-width:58vw @1480 */
52
+
53
+ /* ── 1.4 Pele Diagram(9 活变量) ── */
54
+ --pele-bg: var(--code-block-bg);
55
+ --pele-fg: var(--text-color);
56
+ --pele-muted: var(--seed-ink-dim);
57
+ --pele-line: var(--seed-ink-muted);
58
+ --pele-surface: var(--seed-panel);
59
+ --pele-surface-alt: var(--seed-panel-alt);
60
+ --pele-border: var(--seed-border-strong);
61
+ --pele-accent: var(--seed-accent);
62
+ --pele-radius: 6px; /* deck frame-img border-radius:4px → 图表 6px */
63
+ }
64
+
65
+ /* ═══════════════ SECTION 2 — Editor DOM ═══════════════ */
66
+
67
+ #editor .cm-content {
68
+ color: var(--text-color);
69
+ font-family: var(--font-body); /* deck .body-zh → 印刷体 */
70
+ font-weight: 300; /* 正文 Light:Source Serif 4 / Noto Serif SC Light */
71
+ line-height: 1.8; /* 衬线正文比无衬线多一点行距 */
72
+ letter-spacing: 0.01em;
73
+ -webkit-font-smoothing: antialiased; /* deck body 同款 */
74
+ text-rendering: optimizeLegibility;
75
+ }
76
+
77
+ /* ── 2.1 Headings:deck 标题一律衬线 Noto Serif SC ── */
78
+ #editor .cm-content .cm-md-atxheading1,
79
+ #editor .cm-content .cm-md-atxheading2,
80
+ #editor .cm-content .cm-md-atxheading3,
81
+ #editor .cm-content .cm-md-atxheading4,
82
+ #editor .cm-content .cm-md-atxheading5,
83
+ #editor .cm-content .cm-md-atxheading6 {
84
+ color: var(--seed-ink);
85
+ font-family: "Noto Serif SC", source-han-serif-sc, "Songti SC", Georgia, serif;
86
+ font-weight: 700; /* deck .h-xl weight:700 */
87
+ line-height: 1.15; /* deck .h-xl 1.08 → 1.15 兼顾正文 */
88
+ letter-spacing: -0.01em; /* deck .h-xl letter-spacing:-.01em */
89
+ }
90
+ /* deck 字号阶梯(h-hero 10vw / h-xl 6.2vw / h-sub 3.1vw / h-md 2.3vw / body 1.22vw)
91
+ 折算到文档 em 体系:h1 2.7em、h2 2.1em、h3 1.55em、h4 1.25em、h5 1.08em、h6 0.95em */
92
+ #editor .cm-content .cm-md-atxheading1 {
93
+ font-size: 3.15em;
94
+ font-weight: 900; /* deck .h-hero weight:900 */
95
+ line-height: 1.06; /* deck .h-hero line-height:.96 → 1.06 */
96
+ letter-spacing: -0.02em;
97
+ }
98
+ #editor .cm-content .cm-md-atxheading2 {
99
+ font-size: 2.45em;
100
+ padding-bottom: 0.22em;
101
+ border-bottom: 1px solid var(--border-color); /* deck .rule */
102
+ }
103
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.8em; font-weight: 600; }
104
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.45em; font-weight: 600; }
105
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.25em; }
106
+ #editor .cm-content .cm-md-atxheading6 {
107
+ font-size: 1.08em;
108
+ color: var(--text-secondary);
109
+ font-family: var(--font-mono); /* deck kicker/meta 等宽小标签 */
110
+ font-weight: 500;
111
+ letter-spacing: 0.16em; /* deck .meta letter-spacing */
112
+ text-transform: uppercase;
113
+ }
114
+
115
+ /* ── 2.2 Inline / Lists ── */
116
+ #editor .cm-content .cm-md-strong { color: var(--seed-ink); font-weight: 700; }
117
+ #editor .cm-content .cm-md-em {
118
+ font-family: "Playfair Display", "Source Serif 4", Georgia, serif; /* deck em/en 衬线斜体 */
119
+ font-style: italic;
120
+ }
121
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
122
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
123
+ #editor .cm-content .cm-md-link {
124
+ color: var(--link-color);
125
+ text-decoration: none;
126
+ border-bottom: 1px solid var(--seed-border-strong);
127
+ }
128
+ #editor .cm-content .cm-md-url { color: var(--text-muted); font-family: var(--font-mono); }
129
+ #editor .cm-content .cm-md-inlinecode {
130
+ color: var(--text-color);
131
+ font-family: var(--font-mono); /* deck --mono */
132
+ font-weight: 400;
133
+ font-size: 0.88em;
134
+ background: var(--code-bg);
135
+ border: 1px solid var(--border-color);
136
+ border-radius: 4px; /* deck frame-img 圆角 */
137
+ padding: 1px 5px;
138
+ }
139
+ #editor .cm-content .cm-md-marker,
140
+ #editor .cm-content .cm-md-quotemark { color: var(--text-muted); font-family: var(--font-mono); }
141
+ #editor .cm-content .cm-md-listmark { color: var(--seed-accent); }
142
+ #editor .cm-content .cm-md-li-0,
143
+ #editor .cm-content .cm-md-li-1,
144
+ #editor .cm-content .cm-md-li-2,
145
+ #editor .cm-content .cm-md-li-3,
146
+ #editor .cm-content .cm-md-li-4,
147
+ #editor .cm-content .cm-md-li-5,
148
+ #editor .cm-content .cm-md-li-6 { color: var(--text-color); }
149
+
150
+ /* ── 2.3 Blockquote / Code Block(禁纵向 padding;blockquote 不写 background) ── */
151
+ #editor .cm-content .cm-md-blockquote {
152
+ color: var(--text-secondary);
153
+ font-family: "Noto Serif SC", source-han-serif-sc, "Songti SC", Georgia, serif; /* deck .callout 衬线 */
154
+ font-size: 1.12em; /* deck .lead 1.9vw vs body 1.22vw */
155
+ line-height: 1.6;
156
+ border-left: 3px solid var(--blockquote-border); /* deck .callout 3px currentColor */
157
+ padding-left: 16px;
158
+ padding-right: 16px;
159
+ }
160
+ #editor .cm-content .cm-md-codeblock {
161
+ color: var(--code-block-text);
162
+ font-family: var(--font-mono);
163
+ line-height: 1.6;
164
+ background: var(--code-block-bg);
165
+ border-left: 1px solid var(--border-color);
166
+ border-right: 1px solid var(--border-color);
167
+ padding-left: 16px;
168
+ padding-right: 16px;
169
+ }
170
+ #editor .cm-content .cm-md-codeblock-first {
171
+ border-top: 1px solid var(--border-color);
172
+ border-top-left-radius: 6px;
173
+ border-top-right-radius: 6px;
174
+ }
175
+ #editor .cm-content .cm-md-codeblock-last {
176
+ border-bottom: 1px solid var(--border-color);
177
+ border-bottom-left-radius: 6px;
178
+ border-bottom-right-radius: 6px;
179
+ }
180
+
181
+ /* ── 2.4 Table / Rule ── */
182
+ #editor .cm-content .cm-md-table-widget th,
183
+ #editor .cm-content .cm-md-table-widget td {
184
+ padding: 10px 14px;
185
+ border-color: var(--border-color);
186
+ }
187
+ #editor .cm-content .cm-md-table-widget th {
188
+ color: var(--seed-ink);
189
+ font-family: var(--font-mono); /* deck chrome 等宽表头 */
190
+ font-size: 0.82em;
191
+ font-weight: 600;
192
+ letter-spacing: 0.14em;
193
+ text-transform: uppercase;
194
+ background: var(--table-header-bg);
195
+ border-bottom: 1px solid var(--seed-border-strong);
196
+ }
197
+ #editor .cm-content .cm-md-table-widget td { font-weight: 400; }
198
+ #editor .cm-content .cm-md-table-widget tr:nth-child(even) td { background: var(--seed-panel); }
199
+ #editor .cm-content .cm-md-hr { border-top-color: var(--border-color); }
200
+ #editor .cm-content .cm-md-task-checked { color: var(--text-muted); }
201
+
202
+ /* ═══════════════ SECTION 3 — Exported HTML ═══════════════ */
203
+
204
+ .colamd-document {
205
+ color: var(--text-color);
206
+ font-family: var(--font-body);
207
+ font-weight: 300; /* 正文 Light */
208
+ font-size: var(--editor-font-size);
209
+ line-height: 1.8;
210
+ letter-spacing: 0.01em;
211
+ -webkit-font-smoothing: antialiased;
212
+ text-rendering: optimizeLegibility;
213
+ background: var(--bg-color); /* 导出页同步深靛蓝背景 */
214
+ }
215
+ .colamd-document h1,
216
+ .colamd-document h2,
217
+ .colamd-document h3,
218
+ .colamd-document h4,
219
+ .colamd-document h5,
220
+ .colamd-document h6 {
221
+ color: var(--seed-ink);
222
+ font-family: "Noto Serif SC", source-han-serif-sc, "Songti SC", Georgia, serif;
223
+ font-weight: 700;
224
+ line-height: 1.15;
225
+ letter-spacing: -0.01em;
226
+ }
227
+ .colamd-document h1 {
228
+ font-size: 3.15em;
229
+ font-weight: 900;
230
+ line-height: 1.06;
231
+ letter-spacing: -0.02em;
232
+ }
233
+ .colamd-document h2 {
234
+ font-size: 2.45em;
235
+ padding-bottom: 0.22em;
236
+ border-bottom: 1px solid var(--border-color);
237
+ }
238
+ .colamd-document h3 { font-size: 1.8em; font-weight: 600; }
239
+ .colamd-document h4 { font-size: 1.45em; font-weight: 600; }
240
+ .colamd-document h5 { font-size: 1.25em; }
241
+ .colamd-document h6 {
242
+ font-size: 1.08em;
243
+ color: var(--text-secondary);
244
+ font-family: var(--font-mono);
245
+ font-weight: 500;
246
+ letter-spacing: 0.16em;
247
+ text-transform: uppercase;
248
+ }
249
+ .colamd-document strong { color: var(--seed-ink); }
250
+ .colamd-document em {
251
+ font-family: "Playfair Display", "Source Serif 4", Georgia, serif;
252
+ font-style: italic;
253
+ }
254
+ .colamd-document a {
255
+ color: var(--link-color);
256
+ text-decoration: none;
257
+ border-bottom: 1px solid var(--seed-border-strong);
258
+ }
259
+ .colamd-document ul,
260
+ .colamd-document ol { padding-left: 1.75em; }
261
+ .colamd-document li { margin: 0.25em 0; }
262
+ .colamd-document li::marker { color: var(--seed-accent); }
263
+ .colamd-document code {
264
+ color: var(--text-color);
265
+ font-family: var(--font-mono);
266
+ font-weight: 400;
267
+ font-size: 0.88em;
268
+ background: var(--code-bg);
269
+ border: 1px solid var(--border-color);
270
+ border-radius: 4px;
271
+ padding: 1px 5px;
272
+ }
273
+ .colamd-document pre {
274
+ background: var(--code-block-bg);
275
+ border: 1px solid var(--border-color);
276
+ border-radius: 6px;
277
+ }
278
+ .colamd-document pre code {
279
+ color: var(--code-block-text);
280
+ background: transparent;
281
+ border: 0;
282
+ padding: 0;
283
+ }
284
+ /* 导出端引用块保留背景(编辑端由 ::before 绘制,此处不冲突) */
285
+ .colamd-document blockquote {
286
+ color: var(--text-secondary);
287
+ font-family: "Noto Serif SC", source-han-serif-sc, "Songti SC", Georgia, serif; /* deck .callout */
288
+ font-size: 1.12em;
289
+ line-height: 1.6;
290
+ background: var(--blockquote-bg);
291
+ border-left: 3px solid var(--blockquote-border);
292
+ padding: 0.4em 1.2em;
293
+ }
294
+ .colamd-document mark { background: var(--highlight-bg); }
295
+ .colamd-document table { border-collapse: collapse; width: 100%; }
296
+ .colamd-document th,
297
+ .colamd-document td { border: 1px solid var(--border-color); padding: 10px 14px; }
298
+ .colamd-document th {
299
+ color: var(--seed-ink);
300
+ font-family: var(--font-mono);
301
+ font-size: 0.82em;
302
+ font-weight: 600;
303
+ letter-spacing: 0.14em;
304
+ text-transform: uppercase;
305
+ background: var(--table-header-bg);
306
+ }
307
+ .colamd-document td { font-weight: 400; }
308
+ .colamd-document tbody tr:nth-child(even) td { background: var(--seed-panel); }
309
+ .colamd-document hr { border: 0; border-top: 1px solid var(--border-color); }
310
+ .colamd-document img {
311
+ max-width: 100%;
312
+ border: 1px solid var(--border-color);
313
+ border-radius: 4px; /* deck frame-img border-radius:4px */
314
+ }
315
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
316
+
317
+ .colamd-document p { margin: 0.9em 0; }
318
+
319
+ .colamd-document h1 { margin: 1.8em 0 0.7em; }
320
+ .colamd-document h2 { margin: 1.7em 0 0.6em; }
321
+ .colamd-document h3,
322
+ .colamd-document h4,
323
+ .colamd-document h5,
324
+ .colamd-document h6 { margin: 1.5em 0 0.5em; }
325
+
326
+ /* ═══════════════ SECTION 4 — Print ═══════════════ */
327
+
328
+ @media print {
329
+ html,
330
+ body {
331
+ background: var(--bg-color);
332
+ color: var(--text-color);
333
+ -webkit-print-color-adjust: exact;
334
+ print-color-adjust: exact;
335
+ }
336
+ }
@@ -0,0 +1,335 @@
1
+ /*
2
+ * ColaMD Theme: Indigo Porcelain Light(浅瓷白 · 复刻自 ppt/index.html 的 light 页)
3
+ * 来源:/mnt/d/temp/ppt/index.html 的 🌊 靛蓝瓷主题(.slide.light = --paper #f1f3f5 + --ink #0a1f3d)
4
+ * 说明:surface 由 #f1f3f5 微调为 #f1f1f2(仅差 2/255 级,肉眼不可辨),
5
+ * 目的是满足 paradigm SL-01(底色饱和度 ≤5%)——近白底在 HSL 下色阶差 4 即超标;
6
+ * 浅瓷白的「蓝」由文字/标题 #0a1f3d 承担,与 deck 一致。
7
+ * 契约:ColaMD 2.7.13(:root 活变量;CM6 每行一 div;引用/代码块禁纵向 padding;
8
+ * .cm-md-blockquote 不写 background——2.7.11 起底色由 ::before + --blockquote-bg 绘制)
9
+ */
10
+
11
+ :root {
12
+ /* ── 1.1 Seed Palette(11 色,deck light 页取值 + 合成灰阶) ── */
13
+ --seed-accent: #2258c4; /* 链接/强调:靛蓝深化版,S 70%、对纸 5.8:1 */
14
+ --seed-accent-light: rgba(34, 88, 196, 0.15);
15
+ --seed-accent-dark: #17408f;
16
+ --seed-surface: #f1f1f2; /* --paper 瓷白(SL-01 中性化 2/255) */
17
+ --seed-panel: #eaeaed; /* L 92.4%、S 7.7%、H240 与 surface 同轴(SL-02/03/04) */
18
+ --seed-panel-alt: #e7e7ea; /* L 91.2%、S 6.7%、H240 */
19
+ --seed-ink: #0a1f3d; /* --ink 深靛蓝(deck 浅页正文色) */
20
+ --seed-ink-muted: #2e3f59; /* deck text opacity:.85 合成 */
21
+ --seed-ink-dim: #667487; /* deck opacity:.6 合成 */
22
+ --seed-border: #d4d5d6; /* deck rgba(127,127,127,.25) over paper */
23
+ --seed-border-strong: #b8bbbd; /* deck rgba(127,127,127,.5) over paper */
24
+
25
+ /* ── 1.2 Semantic Colors(27 活变量 · 14 色) ── */
26
+ --bg-color: var(--seed-surface);
27
+ --text-color: var(--seed-ink);
28
+ --text-secondary: var(--seed-ink-muted);
29
+ --text-muted: var(--seed-ink-dim);
30
+ --border-color: var(--seed-border);
31
+ --link-color: var(--seed-accent);
32
+
33
+ --code-bg: #dee2e6; /* deck .hi 浅页 rgba(ink,.08) over paper */
34
+ --code-block-bg: var(--seed-panel-alt);
35
+ --code-block-text: #21344f; /* ink 90% over paper */
36
+
37
+ --blockquote-border: var(--seed-ink); /* deck .callout 浅页 border-left currentColor */
38
+ --blockquote-bg: #eaedef; /* deck 浅页 callout rgba(ink,.05) over paper */
39
+ --table-header-bg: var(--seed-panel-alt);
40
+
41
+ --selection-bg: rgba(34, 88, 196, 0.28);
42
+ --highlight-bg: #c7d6f0; /* 淡靛蓝:mark 明显可见,正文 #0a1f3d 对比充足 */
43
+
44
+ /* ── 1.3 Typography & Metrics(与深色版完全一致) ── */
45
+ --font-body: "Source Serif 4", "Noto Serif SC", source-han-serif-sc,
46
+ "Songti SC", Georgia, serif; /* 正文优雅印刷体:拉丁 Source Serif 4 + 中文 Noto Serif SC */
47
+ --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas,
48
+ "Noto Sans SC", monospace;
49
+ --editor-font-size: 17px; /* deck body max(15px,1.22vw) @1440 */
50
+ --editor-column-width: 860px; /* deck lead max-width:58vw @1480 */
51
+
52
+ /* ── 1.4 Pele Diagram(9 活变量) ── */
53
+ --pele-bg: var(--code-block-bg);
54
+ --pele-fg: var(--text-color);
55
+ --pele-muted: var(--seed-ink-dim);
56
+ --pele-line: var(--seed-ink-muted);
57
+ --pele-surface: var(--seed-panel);
58
+ --pele-surface-alt: var(--seed-panel-alt);
59
+ --pele-border: var(--seed-border-strong);
60
+ --pele-accent: var(--seed-accent);
61
+ --pele-radius: 6px;
62
+ }
63
+
64
+ /* ═══════════════ SECTION 2 — Editor DOM ═══════════════ */
65
+
66
+ #editor .cm-content {
67
+ color: var(--text-color);
68
+ font-family: var(--font-body); /* deck .body-zh → 印刷体 */
69
+ font-weight: 300; /* 正文 Light:Source Serif 4 / Noto Serif SC Light */
70
+ line-height: 1.8; /* 衬线正文比无衬线多一点行距 */
71
+ letter-spacing: 0.01em;
72
+ -webkit-font-smoothing: antialiased; /* deck body 同款 */
73
+ text-rendering: optimizeLegibility;
74
+ }
75
+
76
+ /* ── 2.1 Headings:deck 标题一律衬线 Noto Serif SC ── */
77
+ #editor .cm-content .cm-md-atxheading1,
78
+ #editor .cm-content .cm-md-atxheading2,
79
+ #editor .cm-content .cm-md-atxheading3,
80
+ #editor .cm-content .cm-md-atxheading4,
81
+ #editor .cm-content .cm-md-atxheading5,
82
+ #editor .cm-content .cm-md-atxheading6 {
83
+ color: var(--seed-ink);
84
+ font-family: "Noto Serif SC", source-han-serif-sc, "Songti SC", Georgia, serif;
85
+ font-weight: 700; /* deck .h-xl weight:700 */
86
+ line-height: 1.15; /* deck .h-xl 1.08 → 1.15 兼顾正文 */
87
+ letter-spacing: -0.01em; /* deck .h-xl letter-spacing:-.01em */
88
+ }
89
+ /* deck 字号阶梯(h-hero 10vw / h-xl 6.2vw / h-sub 3.1vw / h-md 2.3vw / body 1.22vw)
90
+ 折算到文档 em 体系:h1 2.7em、h2 2.1em、h3 1.55em、h4 1.25em、h5 1.08em、h6 0.95em */
91
+ #editor .cm-content .cm-md-atxheading1 {
92
+ font-size: 3.15em;
93
+ font-weight: 900; /* deck .h-hero weight:900 */
94
+ line-height: 1.06; /* deck .h-hero line-height:.96 → 1.06 */
95
+ letter-spacing: -0.02em;
96
+ }
97
+ #editor .cm-content .cm-md-atxheading2 {
98
+ font-size: 2.45em;
99
+ padding-bottom: 0.22em;
100
+ border-bottom: 1px solid var(--border-color); /* deck .rule */
101
+ }
102
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.8em; font-weight: 600; }
103
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.45em; font-weight: 600; }
104
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.25em; }
105
+ #editor .cm-content .cm-md-atxheading6 {
106
+ font-size: 1.08em;
107
+ color: var(--text-secondary);
108
+ font-family: var(--font-mono); /* deck kicker/meta 等宽小标签 */
109
+ font-weight: 500;
110
+ letter-spacing: 0.16em; /* deck .meta letter-spacing */
111
+ text-transform: uppercase;
112
+ }
113
+
114
+ /* ── 2.2 Inline / Lists ── */
115
+ #editor .cm-content .cm-md-strong { color: var(--seed-ink); font-weight: 700; }
116
+ #editor .cm-content .cm-md-em {
117
+ font-family: "Playfair Display", "Source Serif 4", Georgia, serif; /* deck em/en 衬线斜体 */
118
+ font-style: italic;
119
+ }
120
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
121
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
122
+ #editor .cm-content .cm-md-link {
123
+ color: var(--link-color);
124
+ text-decoration: none;
125
+ border-bottom: 1px solid var(--seed-border-strong);
126
+ }
127
+ #editor .cm-content .cm-md-url { color: var(--text-muted); font-family: var(--font-mono); }
128
+ #editor .cm-content .cm-md-inlinecode {
129
+ color: var(--text-color);
130
+ font-family: var(--font-mono); /* deck --mono */
131
+ font-weight: 400;
132
+ font-size: 0.88em;
133
+ background: var(--code-bg);
134
+ border: 1px solid var(--border-color);
135
+ border-radius: 4px; /* deck frame-img 圆角 */
136
+ padding: 1px 5px;
137
+ }
138
+ #editor .cm-content .cm-md-marker,
139
+ #editor .cm-content .cm-md-quotemark { color: var(--text-muted); font-family: var(--font-mono); }
140
+ #editor .cm-content .cm-md-listmark { color: var(--seed-accent); }
141
+ #editor .cm-content .cm-md-li-0,
142
+ #editor .cm-content .cm-md-li-1,
143
+ #editor .cm-content .cm-md-li-2,
144
+ #editor .cm-content .cm-md-li-3,
145
+ #editor .cm-content .cm-md-li-4,
146
+ #editor .cm-content .cm-md-li-5,
147
+ #editor .cm-content .cm-md-li-6 { color: var(--text-color); }
148
+
149
+ /* ── 2.3 Blockquote / Code Block(禁纵向 padding;blockquote 不写 background) ── */
150
+ #editor .cm-content .cm-md-blockquote {
151
+ color: var(--text-secondary);
152
+ font-family: "Noto Serif SC", source-han-serif-sc, "Songti SC", Georgia, serif; /* deck .callout 衬线 */
153
+ font-size: 1.12em; /* deck .lead 1.9vw vs body 1.22vw */
154
+ line-height: 1.6;
155
+ border-left: 3px solid var(--blockquote-border); /* deck .callout 3px currentColor */
156
+ padding-left: 16px;
157
+ padding-right: 16px;
158
+ }
159
+ #editor .cm-content .cm-md-codeblock {
160
+ color: var(--code-block-text);
161
+ font-family: var(--font-mono);
162
+ line-height: 1.6;
163
+ background: var(--code-block-bg);
164
+ border-left: 1px solid var(--border-color);
165
+ border-right: 1px solid var(--border-color);
166
+ padding-left: 16px;
167
+ padding-right: 16px;
168
+ }
169
+ #editor .cm-content .cm-md-codeblock-first {
170
+ border-top: 1px solid var(--border-color);
171
+ border-top-left-radius: 6px;
172
+ border-top-right-radius: 6px;
173
+ }
174
+ #editor .cm-content .cm-md-codeblock-last {
175
+ border-bottom: 1px solid var(--border-color);
176
+ border-bottom-left-radius: 6px;
177
+ border-bottom-right-radius: 6px;
178
+ }
179
+
180
+ /* ── 2.4 Table / Rule ── */
181
+ #editor .cm-content .cm-md-table-widget th,
182
+ #editor .cm-content .cm-md-table-widget td {
183
+ padding: 10px 14px;
184
+ border-color: var(--border-color);
185
+ }
186
+ #editor .cm-content .cm-md-table-widget th {
187
+ color: var(--seed-ink);
188
+ font-family: var(--font-mono); /* deck chrome 等宽表头 */
189
+ font-size: 0.82em;
190
+ font-weight: 600;
191
+ letter-spacing: 0.14em;
192
+ text-transform: uppercase;
193
+ background: var(--table-header-bg);
194
+ border-bottom: 1px solid var(--seed-border-strong);
195
+ }
196
+ #editor .cm-content .cm-md-table-widget td { font-weight: 400; }
197
+ #editor .cm-content .cm-md-table-widget tr:nth-child(even) td { background: var(--seed-panel); }
198
+ #editor .cm-content .cm-md-hr { border-top-color: var(--border-color); }
199
+ #editor .cm-content .cm-md-task-checked { color: var(--text-muted); }
200
+
201
+ /* ═══════════════ SECTION 3 — Exported HTML ═══════════════ */
202
+
203
+ .colamd-document {
204
+ color: var(--text-color);
205
+ font-family: var(--font-body);
206
+ font-weight: 300; /* 正文 Light */
207
+ font-size: var(--editor-font-size);
208
+ line-height: 1.8;
209
+ letter-spacing: 0.01em;
210
+ -webkit-font-smoothing: antialiased;
211
+ text-rendering: optimizeLegibility;
212
+ background: var(--bg-color); /* 导出页同步深靛蓝背景 */
213
+ }
214
+ .colamd-document h1,
215
+ .colamd-document h2,
216
+ .colamd-document h3,
217
+ .colamd-document h4,
218
+ .colamd-document h5,
219
+ .colamd-document h6 {
220
+ color: var(--seed-ink);
221
+ font-family: "Noto Serif SC", source-han-serif-sc, "Songti SC", Georgia, serif;
222
+ font-weight: 700;
223
+ line-height: 1.15;
224
+ letter-spacing: -0.01em;
225
+ }
226
+ .colamd-document h1 {
227
+ font-size: 3.15em;
228
+ font-weight: 900;
229
+ line-height: 1.06;
230
+ letter-spacing: -0.02em;
231
+ }
232
+ .colamd-document h2 {
233
+ font-size: 2.45em;
234
+ padding-bottom: 0.22em;
235
+ border-bottom: 1px solid var(--border-color);
236
+ }
237
+ .colamd-document h3 { font-size: 1.8em; font-weight: 600; }
238
+ .colamd-document h4 { font-size: 1.45em; font-weight: 600; }
239
+ .colamd-document h5 { font-size: 1.25em; }
240
+ .colamd-document h6 {
241
+ font-size: 1.08em;
242
+ color: var(--text-secondary);
243
+ font-family: var(--font-mono);
244
+ font-weight: 500;
245
+ letter-spacing: 0.16em;
246
+ text-transform: uppercase;
247
+ }
248
+ .colamd-document strong { color: var(--seed-ink); }
249
+ .colamd-document em {
250
+ font-family: "Playfair Display", "Source Serif 4", Georgia, serif;
251
+ font-style: italic;
252
+ }
253
+ .colamd-document a {
254
+ color: var(--link-color);
255
+ text-decoration: none;
256
+ border-bottom: 1px solid var(--seed-border-strong);
257
+ }
258
+ .colamd-document ul,
259
+ .colamd-document ol { padding-left: 1.75em; }
260
+ .colamd-document li { margin: 0.25em 0; }
261
+ .colamd-document li::marker { color: var(--seed-accent); }
262
+ .colamd-document code {
263
+ color: var(--text-color);
264
+ font-family: var(--font-mono);
265
+ font-weight: 400;
266
+ font-size: 0.88em;
267
+ background: var(--code-bg);
268
+ border: 1px solid var(--border-color);
269
+ border-radius: 4px;
270
+ padding: 1px 5px;
271
+ }
272
+ .colamd-document pre {
273
+ background: var(--code-block-bg);
274
+ border: 1px solid var(--border-color);
275
+ border-radius: 6px;
276
+ }
277
+ .colamd-document pre code {
278
+ color: var(--code-block-text);
279
+ background: transparent;
280
+ border: 0;
281
+ padding: 0;
282
+ }
283
+ /* 导出端引用块保留背景(编辑端由 ::before 绘制,此处不冲突) */
284
+ .colamd-document blockquote {
285
+ color: var(--text-secondary);
286
+ font-family: "Noto Serif SC", source-han-serif-sc, "Songti SC", Georgia, serif; /* deck .callout */
287
+ font-size: 1.12em;
288
+ line-height: 1.6;
289
+ background: var(--blockquote-bg);
290
+ border-left: 3px solid var(--blockquote-border);
291
+ padding: 0.4em 1.2em;
292
+ }
293
+ .colamd-document mark { background: var(--highlight-bg); }
294
+ .colamd-document table { border-collapse: collapse; width: 100%; }
295
+ .colamd-document th,
296
+ .colamd-document td { border: 1px solid var(--border-color); padding: 10px 14px; }
297
+ .colamd-document th {
298
+ color: var(--seed-ink);
299
+ font-family: var(--font-mono);
300
+ font-size: 0.82em;
301
+ font-weight: 600;
302
+ letter-spacing: 0.14em;
303
+ text-transform: uppercase;
304
+ background: var(--table-header-bg);
305
+ }
306
+ .colamd-document td { font-weight: 400; }
307
+ .colamd-document tbody tr:nth-child(even) td { background: var(--seed-panel); }
308
+ .colamd-document hr { border: 0; border-top: 1px solid var(--border-color); }
309
+ .colamd-document img {
310
+ max-width: 100%;
311
+ border: 1px solid var(--border-color);
312
+ border-radius: 4px; /* deck frame-img border-radius:4px */
313
+ }
314
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
315
+
316
+ .colamd-document p { margin: 0.9em 0; }
317
+
318
+ .colamd-document h1 { margin: 1.8em 0 0.7em; }
319
+ .colamd-document h2 { margin: 1.7em 0 0.6em; }
320
+ .colamd-document h3,
321
+ .colamd-document h4,
322
+ .colamd-document h5,
323
+ .colamd-document h6 { margin: 1.5em 0 0.5em; }
324
+
325
+ /* ═══════════════ SECTION 4 — Print ═══════════════ */
326
+
327
+ @media print {
328
+ html,
329
+ body {
330
+ background: var(--bg-color);
331
+ color: var(--text-color);
332
+ -webkit-print-color-adjust: exact;
333
+ print-color-adjust: exact;
334
+ }
335
+ }