@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,782 @@
1
+ /*
2
+ * ColaMD Theme: Monochrome(Ivory Ledger · 手工精修版)
3
+ * Cream paper (#FAFADF) with olive-black ink (#1A1A16); zero chromatic accent —
4
+ * Jost 200/300 sans carries every headline, Lora italic only the pull-quote,
5
+ * JetBrains Mono every structural label. Source:
6
+ * D:\workspace\git\beautiful-html-templates\templates\monochrome\template.html
7
+ *
8
+ * paradigm 备案(单色纸本身份,模板刻意设计,有意保留):
9
+ * SL-01 —— 纸底 #FAFADF 的 HSL 饱和度 73% > 5%:这是"奶油纸"身份本身
10
+ * (暖纸而非纯白),与 biennale-yellow / pin-and-paper 的黄纸同类;
11
+ * SL-02 —— panel #F2F2D2 / panel-alt #ECECCB 饱和度 55% / 47% > 10%:
12
+ * 同为纸面色阶,仅作代码/引用/表头的浅奶油底,不做文字;
13
+ * HR-01 —— 点缀色 = 墨色 #1A1A16(S≈1%),模板身份即"强调=更深的墨",
14
+ * 全站无彩色强调;链接用同一墨色(对纸底 16.5:1,CR-04 通过);
15
+ * NT-03 不触发:文档层边框取中性灰 #C4C4C4,模板 1px 黑线由
16
+ * --seed-border-strong / chrome 规则承担,未牺牲文字可读性。
17
+ * 版式复刻见 SECTION 1.5/1.6(16 页逐页对照与换算式均在其注释中)。
18
+ *
19
+ * 契约:ColaMD Extend 2.7(CodeMirror 6 编辑器 + Pele 图表引擎)
20
+ *
21
+ * 两条硬规矩:
22
+ * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
23
+ * 编辑器继承不到。
24
+ * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
25
+ * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
26
+ * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
27
+ *
28
+ * ═══════════════════════════════════════════════════════════
29
+ * SECTION 1 — Design Tokens
30
+ * 改 11 个种子色 + 3 组字体即可换一套主题
31
+ * ═══════════════════════════════════════════════════════════ */
32
+
33
+ :root {
34
+
35
+ /* ── 1.1 Seed Palette ──
36
+ 本工具的再生成与校验读这一层;编辑器不消费。
37
+ 来源(template.html :root / design.md):
38
+ cream-paper #FAFADF / cream-paper-2 #F2F2D2 / cream-paper-3 #F0F0D4
39
+ cream-warm #F5F0E4 / ink-black #1A1A16 / graphite #5E5E54 / #8A8A80
40
+ 模板约定:accent 与 border 都坍缩成 ink-black —— 强调=更深的墨,无彩色。 */
41
+ --seed-accent: #1a1a16; /* accent = ink(单色身份) */
42
+ --seed-accent-light: #8a8a80; /* 次石墨,仅作淡底 */
43
+ --seed-accent-dark: #1a1a16;
44
+ --seed-surface: #fafadf; /* cream-paper */
45
+ --seed-panel: #f2f2d2; /* cream-paper-2 */
46
+ --seed-panel-alt: #ececcb; /* cream-paper-3 再深一档(SL-04 需严格递减) */
47
+ --seed-ink: #1a1a16; /* ink-black,带暖调的近黑 */
48
+ --seed-ink-muted: #5e5e54; /* ink-graphite */
49
+ --seed-ink-dim: #8a8a80; /* ink-graphite-light */
50
+ --seed-border: #c4c4c4; /* 文档表格细线:中性灰(NT-03) */
51
+ --seed-border-strong: #1a1a16; /* 模板 1px 黑线体系(hr / th / chrome) */
52
+
53
+ /* ── 1.2 Semantic Colors(活变量)── */
54
+ --bg-color: var(--seed-surface);
55
+ --text-color: var(--seed-ink);
56
+ --text-secondary: var(--seed-ink-muted);
57
+ --text-muted: var(--seed-ink-dim);
58
+ --border-color: var(--seed-border);
59
+ /* 模板强调色即墨色(无彩色);对纸底 16.5:1,CR-04 通过 */
60
+ --link-color: var(--seed-ink);
61
+
62
+ --code-bg: var(--seed-panel);
63
+ --code-block-bg: #f0f0d4; /* cream-paper-3 */
64
+ --code-block-text: #1a1a16;
65
+
66
+ --blockquote-border: var(--seed-border-strong); /* 模板:1px 黑细线 */
67
+ --blockquote-bg: #f5f0e4; /* cream-warm 静区 */
68
+ --table-header-bg: var(--seed-panel);
69
+
70
+ --selection-bg: rgba(26, 26, 22, 0.14);
71
+ --highlight-bg: rgba(26, 26, 22, 0.12); /* 灰记号笔,不引入彩色 */
72
+
73
+ /* ── 1.3 Typography & Metrics(活变量)── */
74
+ --font-body: "Jost", "Noto Sans SC", sans-serif;
75
+ --font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
76
+ --editor-font-size: 16px;
77
+ --editor-column-width: 820px;
78
+
79
+ /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
80
+ 图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。 */
81
+ --pele-bg: var(--code-block-bg);
82
+ --pele-fg: var(--code-block-text);
83
+ --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
84
+ --pele-line: var(--code-block-text);
85
+ --pele-surface: color-mix(in srgb, var(--code-block-text) 8%, var(--code-block-bg));
86
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 16%, var(--code-block-bg));
87
+ --pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
88
+ --pele-accent: var(--seed-ink);
89
+ --pele-radius: 0px; /* 模板:零圆角 */
90
+ }
91
+
92
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 monochrome 十六页逐页复刻)──
93
+ 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
94
+ 模板 1920×1080 画布 px ÷ 26 = em(clamp 取实际落点)。
95
+ 字体体系:Jost 200(display / h1)/ 300(h2 / lead / body)/ 400(h3、mono);
96
+ Lora 400 italic 仅用于金句;JetBrains Mono 400 用于 chrome / label / 日期。
97
+ 页面对照(16 页):
98
+ cover ← P1 Cover(display 163px / lead 29px / pad-y 65px 底对齐)
99
+ section ← P2 Chapter(h1 96px 200)+ P3 Statement(h1 96px 200;同形不单列)
100
+ two-col ← P4 Split(h2 61px)+ P7 Compare(h3 38px)+ P9 Dense(h4 mono 14px)
101
+ kpi ← P5 Stats(num 106px 200)
102
+ agenda ← P6 List(lead 29px + em-dash mono)
103
+ quote ← P8 Quote(Lora 61px / attr mono 14px)
104
+ figure ← P10 Chart + P12 Pie(标题 61px 200)
105
+ steps ← P11 Diagram(num 67px 200 / title 38px)
106
+ timeline← P13 VTimeline(hl 61px 200 / date mono 14px / title 38px)
107
+ matrix ← P14 Cycle(4 格奶油边卡:num mono 14px / 文 21px)
108
+ closing ← P16 End(h1 96px 200 / lead 29px)
109
+ P15 Pyramid 与 steps 同形(等宽台阶填充无挂点,未复刻)
110
+ 页面底色:16 页全部 cream-paper #FAFADF(chapter/quote 虽标 .dark,但
111
+ .slide.dark 的 background 同样是 --c-bg)——无换底色页,故不做页面级背景
112
+ 覆写,天然没有层叠链问题。
113
+ 未复刻装饰(行式 DOM 无挂点,逐一注明于各节):左侧竖排 sidebar(模板
114
+ 自身已 display:none)、36px 短规线、cover 右上 deck 标签与底部 meta 栏、
115
+ split 图片占位、compare 中缝、chart 柱体/坐标轴、pie 环、pyramid 台阶
116
+ 填充、cycle 箭头、vtimeline 竖轨与圆点、stat 三列栅格。 */
117
+ :root {
118
+ --slide-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
119
+ --slide-title-font: "Jost", "Noto Sans SC", sans-serif;
120
+ --slide-title-size: 2.36em; /* h2 61.44px ÷26(P4/P5/P6/P7…) */
121
+ --slide-title-weight: 300; /* 内容页 h2 常规 300 */
122
+ --slide-subhead-weight: 400;
123
+ --slide-title-tracking: 0em; /* 模板 h2 无字距 */
124
+ --slide-title-line-height: 1.2;
125
+ --slide-cover-title-size: 6.28em; /* display 163.2px ÷26 */
126
+ --slide-cover-title-line-height: 0.96;
127
+ --slide-cover-title-tracking: -0.02em;
128
+ --slide-section-title-size: 3.69em; /* h1 96px ÷26(P2/P3) */
129
+ --slide-closing-title-size: 3.69em; /* P16 h1 96px ÷26 */
130
+ --slide-lead-size: 1.11em; /* lead 28.8px ÷26 */
131
+ --slide-kicker-size: clamp(12px, 0.72vw, 14px); /* label 13.8px @1920 */
132
+ --slide-kicker-tracking: 0.12em; /* label .12em */
133
+ --slide-kicker-transform: uppercase;
134
+ --slide-chrome-opacity: 1; /* chrome 用 graphite-light 本身,不再降透明 */
135
+ --slide-chrome-transform: uppercase;
136
+ --slide-kpi-number-size: 5em; /* stat-value 105.6px ÷26 ÷0.81(li 缩放) */
137
+ --slide-quote-size: 2.36em; /* quote 61.44px ÷26 */
138
+ --slide-page-pad-x: 8vw; /* 模板 pad-x 8vw = 153.6px @1920 */
139
+ --slide-page-top-pad: 6vh; /* 模板 pad-y 6vh ≈ 64.8px */
140
+ --slide-page-top-pad-print: 5.5vh;
141
+ --slide-cover-text-align: left;
142
+ --slide-cover-lead-inline: 55%; /* cover lead max-width 55% */
143
+ }
144
+
145
+ /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
146
+ body.presenting / body.slides-printing 作用域) ═══════════════ */
147
+
148
+ /* 1.6.1 页标题声部对齐:Jost 300 墨色;压掉文档式 h1/h2 的下划线
149
+ (编辑器规则带 id 权重会漏进放映) */
150
+ body.presenting #editor .cm-content .cm-md-page-title,
151
+ body.slides-printing #editor .cm-content .cm-md-page-title {
152
+ font-family: var(--slide-title-font);
153
+ font-size: var(--slide-title-size);
154
+ font-weight: var(--slide-title-weight);
155
+ line-height: var(--slide-title-line-height);
156
+ letter-spacing: var(--slide-title-tracking);
157
+ color: var(--text-color);
158
+ border-bottom: none;
159
+ padding-bottom: 0;
160
+ margin-bottom: 0.55em;
161
+ }
162
+
163
+ /* 1.6.2 cover · P1:底部对齐 + display 163px 200;lead 29px 石墨、55% 宽。
164
+ 右上 deck 标签 / 底部 meta 栏 / 36px 短规线为绝对定位装饰——未复刻 */
165
+ body.presenting #editor[data-slide-layout='cover'] .cm-content {
166
+ justify-content: flex-end;
167
+ padding-bottom: 2.5em; /* pad-y 64.8px ÷26 */
168
+ }
169
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
170
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title {
171
+ font-size: var(--slide-cover-title-size);
172
+ font-weight: 200;
173
+ line-height: var(--slide-cover-title-line-height);
174
+ letter-spacing: var(--slide-cover-title-tracking);
175
+ max-width: 92%;
176
+ }
177
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
178
+ body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
179
+ font-size: var(--slide-lead-size);
180
+ font-weight: 300;
181
+ line-height: 1.65;
182
+ color: var(--text-secondary);
183
+ max-width: 55%;
184
+ margin-top: 1.5em; /* 标题后 gap-md 32.4px ÷26 */
185
+ }
186
+
187
+ /* 1.6.3 section · P2 chapter + P3 statement:h1 96px Jost 200;chamfer 无。
188
+ chapter-num 走 kicker 横排 .2em;statement 导语取 fg-3;36px 短规线未复刻 */
189
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title,
190
+ body.slides-printing .cm-md-slide-section.cm-md-page-title {
191
+ font-size: var(--slide-section-title-size);
192
+ font-weight: 200;
193
+ line-height: 1.1;
194
+ letter-spacing: -0.01em;
195
+ max-width: 72%;
196
+ }
197
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
198
+ body.slides-printing .cm-md-slide-section .cm-md-page-title[data-slide-kicker]::before {
199
+ letter-spacing: 0.2em; /* chapter-num .2em */
200
+ color: var(--text-muted);
201
+ margin-bottom: 1.2em; /* gap-md 32.4px ÷26 */
202
+ }
203
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
204
+ body.slides-printing .cm-md-slide-section.cm-md-page-lead {
205
+ font-size: var(--slide-lead-size);
206
+ font-weight: 300;
207
+ line-height: 1.65;
208
+ color: var(--text-muted); /* 模板 fg-3 #8A8A80 */
209
+ max-width: 50%;
210
+ margin-top: 1.25em; /* gap-md 32.4px ÷26 */
211
+ }
212
+
213
+ /* 1.6.4 agenda · P6(recommendations):左栏 kicker + h2 61px,右栏 5 条
214
+ lead 29px 清单,em-dash mono 记号。行式 DOM 无栅格挂点,条目不穿 em-dash
215
+ (CM 记号文本固定)——以 mono 小号序号近似,行间留白替代 gap-md */
216
+ body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-page-title,
217
+ body.slides-printing .cm-md-slide-agenda.cm-md-page-title {
218
+ font-size: var(--slide-title-size);
219
+ font-weight: 300;
220
+ line-height: 1.2;
221
+ max-width: 62%;
222
+ }
223
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
224
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
225
+ font-size: var(--slide-lead-size); /* bullet li lead 28.8px ÷26 */
226
+ font-weight: 300;
227
+ line-height: 1.5;
228
+ margin: 0 0 0.9em; /* gap-md 32.4px ÷26 */
229
+ padding: 0;
230
+ border: none;
231
+ }
232
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
233
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
234
+ font-family: var(--slide-mono);
235
+ font-weight: 400;
236
+ font-size: 0.62em; /* 序号降到 caption 档 */
237
+ letter-spacing: 0.08em;
238
+ color: var(--text-muted); /* 模板 bullet marker 石墨 */
239
+ margin-right: 0.55em;
240
+ }
241
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong,
242
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
243
+ font-weight: 500; /* 行题仅加重不换声部 */
244
+ color: var(--text-color);
245
+ }
246
+
247
+ /* 1.6.5 timeline · P13(vtimeline):hl 61px Jost 200 + 1px 墨色底线;
248
+ 行式条目 = mono 日期 14px(accent 墨色)+ h3 38px 行题 + body 21px。
249
+ vtimeline 竖轨 / 9px 圆点为网格装饰——未复刻 */
250
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-page-title,
251
+ body.slides-printing .cm-md-slide-timeline.cm-md-page-title {
252
+ font-size: 2.36em; /* vt-hl 61.44px ÷26 */
253
+ font-weight: 200;
254
+ line-height: 1.2;
255
+ border-bottom: 1px solid var(--seed-border-strong);
256
+ padding-bottom: 1.25em; /* gap-md 32.4px ÷26 */
257
+ margin-bottom: 1em;
258
+ }
259
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li,
260
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
261
+ font-size: 0.81em; /* vt-content p 21.12px ÷26 */
262
+ font-weight: 300;
263
+ line-height: 1.68;
264
+ margin: 0 0 1.1em;
265
+ padding: 0;
266
+ border: none;
267
+ }
268
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-listmark,
269
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-listmark {
270
+ font-family: var(--slide-mono);
271
+ font-weight: 400;
272
+ font-size: 0.66em; /* vt-date 13.824px ÷26 ÷0.81 */
273
+ letter-spacing: 0.08em;
274
+ color: var(--text-color); /* 模板日期 = accent 墨色 */
275
+ margin-right: 0.9em;
276
+ }
277
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-strong,
278
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-strong {
279
+ font-family: var(--slide-title-font);
280
+ font-size: 1.82em; /* vt-title 38.4px ÷26 ÷0.81 */
281
+ font-weight: 400;
282
+ line-height: 1.25;
283
+ color: var(--text-color);
284
+ }
285
+
286
+ /* 1.6.6 steps · P11(diagram flow):页题 61px Jost 200;四列流程卡 =
287
+ 顶部 1px 墨线 + Jost 200 序号 67px + h3 38px 步名 + body 21px。
288
+ P15 pyramid 与本节同形,等宽台阶填充 / 条纹未复刻 */
289
+ body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-page-title,
290
+ body.slides-printing .cm-md-slide-steps.cm-md-page-title {
291
+ font-size: 2.36em; /* h2 61.44px ÷26(P11 内联 200) */
292
+ font-weight: 200;
293
+ line-height: 1.2;
294
+ }
295
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
296
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
297
+ display: inline-block;
298
+ width: 22%; /* 四列 + 间距 @1920 */
299
+ margin: 0 2% 1.4em 0;
300
+ vertical-align: top;
301
+ font-size: 0.81em; /* flow-desc 21.12px ÷26 */
302
+ font-weight: 300;
303
+ line-height: 1.68;
304
+ border-top: 1px solid var(--seed-border-strong); /* flow-step 顶线 */
305
+ padding: 0.9em 0 0; /* gap-md ÷ flow-desc */
306
+ }
307
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
308
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
309
+ display: block;
310
+ font-family: var(--slide-title-font);
311
+ font-weight: 200;
312
+ font-size: 3.18em; /* flow-num 67.2px ÷26 ÷0.81 */
313
+ line-height: 1;
314
+ letter-spacing: -0.02em;
315
+ color: var(--text-muted); /* 模板 fg-3 */
316
+ margin: 0 0 0.55em;
317
+ }
318
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
319
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
320
+ display: block;
321
+ font-family: var(--slide-title-font);
322
+ font-size: 1.82em; /* flow-title 38.4px ÷26 ÷0.81 */
323
+ font-weight: 400;
324
+ line-height: 1.2;
325
+ color: var(--text-color);
326
+ margin-bottom: 0.5em;
327
+ }
328
+
329
+ /* 1.6.7 kpi · P5(stats):页题 61px Jost 300;三格裸排 = 顶部 1px 墨线 +
330
+ Jost 200 大数字 106px + 石墨说明 21px;无卡片底色 */
331
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title,
332
+ body.slides-printing .cm-md-slide-kpi.cm-md-page-title {
333
+ font-size: var(--slide-title-size);
334
+ font-weight: 300;
335
+ line-height: 1.2;
336
+ max-width: 88%;
337
+ }
338
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
339
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
340
+ display: inline-block;
341
+ width: 32%;
342
+ margin: 0 1.6% 1.6em 0;
343
+ vertical-align: top;
344
+ background: transparent;
345
+ border: none;
346
+ box-shadow: none;
347
+ border-radius: 0;
348
+ padding: 1.2em 1.2em 0 0; /* stat-card gap-md ÷ body */
349
+ border-top: 1px solid var(--seed-border-strong);
350
+ font-size: 0.81em; /* stat-label 21.12px ÷26 */
351
+ font-weight: 300;
352
+ line-height: 1.5;
353
+ }
354
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-listmark,
355
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-listmark {
356
+ display: none; /* stat-cell 无序号 */
357
+ }
358
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
359
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
360
+ display: block;
361
+ font-family: var(--slide-title-font);
362
+ font-size: var(--slide-kpi-number-size);
363
+ font-weight: 200;
364
+ line-height: 1;
365
+ letter-spacing: -0.03em;
366
+ color: var(--text-color);
367
+ margin-bottom: 0.45em;
368
+ }
369
+
370
+ /* 1.6.8 quote · P8:Lora 400 italic 61px(模板 CSS 未写 font-style,
371
+ design.md 明确「Lora italic」——按设计意图斜体);无引号装饰、无左竖线;
372
+ 署名两行 mono 14px 石墨,无顶线(模板 .quote-attr 无边框) */
373
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
374
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
375
+ font-family: "Lora", "Noto Serif SC", serif;
376
+ font-style: italic;
377
+ font-size: var(--slide-quote-size);
378
+ font-weight: 400;
379
+ line-height: 1.35;
380
+ letter-spacing: 0;
381
+ color: var(--text-color);
382
+ background: transparent;
383
+ border-left: none;
384
+ padding-left: 0;
385
+ padding-right: 0;
386
+ max-width: 75%;
387
+ }
388
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
389
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
390
+ margin-top: 2.08em; /* gap-lg 54px ÷26(CSS-03:留白只走 margin) */
391
+ padding: 0;
392
+ border: none;
393
+ font-family: var(--slide-mono);
394
+ font-weight: 400;
395
+ font-size: 0.53em; /* label 13.824px ÷26 */
396
+ letter-spacing: 0.12em;
397
+ text-transform: uppercase;
398
+ color: var(--text-muted); /* 模板署名 fg-3 */
399
+ }
400
+
401
+ /* 1.6.9 closing · P16(end):kicker mono + h1 96px Jost 200 55% 宽 +
402
+ lead 29px 石墨 42% 宽;36px 短规线未复刻 */
403
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title,
404
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title {
405
+ font-size: var(--slide-closing-title-size);
406
+ font-weight: 200;
407
+ line-height: 1.1;
408
+ letter-spacing: -0.01em;
409
+ max-width: 55%;
410
+ }
411
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title[data-slide-kicker]::before,
412
+ body.slides-printing .cm-md-slide-closing .cm-md-page-title[data-slide-kicker]::before {
413
+ letter-spacing: 0.14em; /* .kicker .14em */
414
+ color: var(--text-muted);
415
+ margin-bottom: 1.2em;
416
+ }
417
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-lead,
418
+ body.slides-printing .cm-md-slide-closing.cm-md-page-lead {
419
+ font-size: var(--slide-lead-size);
420
+ font-weight: 300;
421
+ line-height: 1.65;
422
+ color: var(--text-secondary);
423
+ max-width: 42%;
424
+ margin-top: 1.25em;
425
+ }
426
+
427
+ /* 1.6.10 figure · P10 chart + P12 pie:图页标题 61px Jost 200(模板内联
428
+ font-weight:200);柱体/坐标轴/环形图/图例色块均为绝对定位或内联背景的
429
+ 装饰,行式 DOM 无挂点——有意未复刻 */
430
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title,
431
+ body.slides-printing .cm-md-slide-figure.cm-md-page-title {
432
+ font-size: var(--slide-title-size);
433
+ font-weight: 200;
434
+ line-height: 1.2;
435
+ max-width: 88%;
436
+ }
437
+
438
+ /* 1.6.11 matrix · P14(cycle):2×2 奶油边卡——模板 .cycle-cell =
439
+ ink 8% 底 + ink 25% 1px 边框 + 3px 圆角 + padding 1.8vh 2vw;
440
+ 卡内 mono 序号 14px + body 21px。箭头 / 中心留白无挂点——未复刻 */
441
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content .cm-md-page-title,
442
+ body.slides-printing .cm-md-slide-matrix.cm-md-page-title {
443
+ font-size: var(--slide-title-size);
444
+ font-weight: 300;
445
+ line-height: 1.2;
446
+ }
447
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
448
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
449
+ display: inline-block;
450
+ width: 47%;
451
+ margin: 0 2% 1.4em 0;
452
+ vertical-align: top;
453
+ background: rgba(26, 26, 22, 0.06); /* ink 8% 底 */
454
+ border: 1px solid rgba(26, 26, 22, 0.25); /* ink 25% 边 */
455
+ border-radius: 3px;
456
+ padding: 0.92em 1.82em; /* 1.8vh / 2vw ÷21.12 */
457
+ font-size: 0.81em; /* cycle-cell p 21.12px ÷26 */
458
+ font-weight: 300;
459
+ line-height: 1.65;
460
+ }
461
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-listmark,
462
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-listmark {
463
+ display: block;
464
+ font-family: var(--slide-mono);
465
+ font-weight: 500;
466
+ font-size: 0.66em; /* cycle-num 13.824px ÷26 ÷0.81 */
467
+ letter-spacing: 0.12em;
468
+ text-transform: uppercase;
469
+ color: var(--text-color); /* 模板序号 = accent 墨色 */
470
+ margin-bottom: 0.4em;
471
+ }
472
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
473
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
474
+ font-weight: 500; /* 卡名仅加重(v2 卡无标题级) */
475
+ color: var(--text-color);
476
+ }
477
+
478
+ /* 1.6.12 two-col · P4 split / P7 compare / P9 dense:页题 61px Jost 300;
479
+ h3 38px Jost 400;lead 29px 石墨;条目 body 21px。
480
+ 左右分栏、图片占位(55vh)、中缝 1px 线与 dense 双栏栅格均无行式挂点——未复刻 */
481
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-title,
482
+ body.slides-printing .cm-md-slide-two-col.cm-md-page-title {
483
+ font-size: var(--slide-title-size);
484
+ font-weight: 300;
485
+ line-height: 1.2;
486
+ }
487
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-atxheading3,
488
+ body.slides-printing .cm-md-slide-two-col .cm-md-atxheading3 {
489
+ font-size: 1.48em; /* h3 38.4px ÷26 */
490
+ font-weight: 400;
491
+ line-height: 1.3;
492
+ border-bottom: none;
493
+ padding-bottom: 0;
494
+ }
495
+ body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-lead,
496
+ body.slides-printing .cm-md-slide-two-col.cm-md-page-lead {
497
+ font-size: var(--slide-lead-size);
498
+ font-weight: 300;
499
+ line-height: 1.65;
500
+ color: var(--text-secondary);
501
+ }
502
+ body.presenting #editor .cm-content .cm-md-slide-two-col.cm-md-li,
503
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col.cm-md-li {
504
+ font-size: 0.81em; /* compare bullets body 21.12px ÷26 */
505
+ font-weight: 300;
506
+ line-height: 1.7;
507
+ margin: 0 0 0.6em;
508
+ padding: 0;
509
+ border: none;
510
+ }
511
+
512
+ /* 1.6.13 chrome · 页眉/页脚:JetBrains Mono 14px .12em 大写石墨,
513
+ 1px 墨色细线(模板 .slide-chrome / .slide-foot 边界) */
514
+ body.presenting .slide-chrome,
515
+ body.slides-printing .slide-chrome,
516
+ body.presenting .slide-foot,
517
+ body.slides-printing .slide-foot {
518
+ font-family: var(--slide-mono);
519
+ font-size: clamp(12px, 0.72vw, 14px);
520
+ font-weight: 400;
521
+ letter-spacing: 0.12em;
522
+ text-transform: uppercase;
523
+ color: var(--text-muted);
524
+ border-color: var(--seed-border-strong);
525
+ opacity: var(--slide-chrome-opacity);
526
+ }
527
+ /* 全 16 页同一奶油纸底:ghost 页码保持模板"几乎不可见"的墨色即可,
528
+ 不与底色同色,无需隐藏 */
529
+ body.presenting .slide-ghost,
530
+ body.slides-printing .slide-ghost {
531
+ color: var(--text-muted);
532
+ opacity: 0.35;
533
+ }
534
+
535
+ /* ═══════════════════════════════════════════════════════════
536
+ SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
537
+ ═══════════════════════════════════════════════════════════ */
538
+
539
+ #editor .cm-content {
540
+ font-family: var(--font-body);
541
+ line-height: 1.7; /* 模板 body 1.7 */
542
+ }
543
+
544
+ /* ── 2.1 Headings ──
545
+ 模板三个声部全部是 Jost(display/heading 同族),权重 200/300/400;
546
+ Lora 只出现在金句与洞察卡标题,此处不参与标题。 */
547
+ #editor .cm-content .cm-md-atxheading1,
548
+ #editor .cm-content .cm-md-atxheading2,
549
+ #editor .cm-content .cm-md-atxheading3,
550
+ #editor .cm-content .cm-md-atxheading4,
551
+ #editor .cm-content .cm-md-atxheading5 {
552
+ font-family: var(--font-body);
553
+ color: var(--text-color);
554
+ line-height: 1.2;
555
+ }
556
+
557
+ #editor .cm-content .cm-md-atxheading1 {
558
+ font-size: 2.6em;
559
+ font-weight: 200;
560
+ line-height: 1.1;
561
+ letter-spacing: -0.01em;
562
+ }
563
+ #editor .cm-content .cm-md-atxheading2 {
564
+ font-size: 2.1em;
565
+ font-weight: 300;
566
+ line-height: 1.2;
567
+ }
568
+ #editor .cm-content .cm-md-atxheading3 {
569
+ font-size: 1.55em;
570
+ font-weight: 400;
571
+ line-height: 1.3;
572
+ }
573
+ #editor .cm-content .cm-md-atxheading4 {
574
+ font-size: 1.2em;
575
+ font-weight: 400;
576
+ }
577
+ #editor .cm-content .cm-md-atxheading5 {
578
+ font-size: 1.05em;
579
+ font-weight: 400;
580
+ }
581
+ /* 模板 micro-label:mono 大写 .12em 石墨(用于表头/眉标) */
582
+ #editor .cm-content .cm-md-atxheading6 {
583
+ font-family: var(--font-mono);
584
+ font-size: 0.85em;
585
+ font-weight: 400;
586
+ letter-spacing: 0.12em;
587
+ text-transform: uppercase;
588
+ color: var(--text-muted);
589
+ }
590
+
591
+ /* ── 2.2 Inline ──
592
+ 模板强调=更深的墨,不用彩色;strong 永远是正文色(CR-04 绕开) */
593
+ #editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 500; }
594
+ #editor .cm-content .cm-md-em { font-style: italic; }
595
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
596
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
597
+ #editor .cm-content .cm-md-link { color: var(--link-color); text-decoration: underline; }
598
+ #editor .cm-content .cm-md-url { color: var(--text-muted); }
599
+
600
+ #editor .cm-content .cm-md-inlinecode {
601
+ font-family: var(--font-mono);
602
+ background: var(--code-bg);
603
+ color: var(--text-color);
604
+ border-radius: 0; /* 模板:零圆角 */
605
+ }
606
+
607
+ #editor .cm-content .cm-md-marker,
608
+ #editor .cm-content .cm-md-quotemark,
609
+ #editor .cm-content .cm-md-listmark {
610
+ color: var(--text-muted);
611
+ }
612
+
613
+ /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
614
+ 引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
615
+ 否则引用里的代码行会盖住代码块底色。模板引语:Lora italic 石墨。 */
616
+ #editor .cm-content .cm-md-blockquote {
617
+ font-family: "Lora", "Noto Serif SC", serif;
618
+ font-style: italic;
619
+ color: var(--text-secondary);
620
+ border-left: 1px solid var(--blockquote-border); /* 模板 1px 黑细线 */
621
+ padding-left: 16px;
622
+ padding-right: 16px;
623
+ }
624
+
625
+ #editor .cm-content .cm-md-codeblock {
626
+ background: var(--code-block-bg);
627
+ color: var(--code-block-text);
628
+ padding-left: 16px;
629
+ padding-right: 16px;
630
+ }
631
+ #editor .cm-content .cm-md-codeblock-first {
632
+ border-top-left-radius: 0;
633
+ border-top-right-radius: 0;
634
+ }
635
+ #editor .cm-content .cm-md-codeblock-last {
636
+ border-bottom-left-radius: 0;
637
+ border-bottom-right-radius: 0;
638
+ }
639
+
640
+ /* ── 2.4 Table / Rule(模板:1px 黑细线表格,表头 = mono 眉标)── */
641
+ #editor .cm-content .cm-md-table-widget th,
642
+ #editor .cm-content .cm-md-table-widget td {
643
+ padding: 10px 14px;
644
+ border-color: var(--border-color);
645
+ }
646
+ #editor .cm-content .cm-md-table-widget th {
647
+ background: var(--table-header-bg);
648
+ color: var(--text-color);
649
+ font-family: var(--font-mono);
650
+ font-size: 0.78em;
651
+ font-weight: 400;
652
+ letter-spacing: 0.12em;
653
+ text-transform: uppercase;
654
+ border-bottom: 1px solid var(--seed-border-strong);
655
+ }
656
+ #editor .cm-content .cm-md-hr { border-top-color: var(--seed-border-strong); }
657
+
658
+ /* ── 2.5 中文首行缩进 ──
659
+ CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
660
+ #editor .cm-content .cm-line { text-indent: 2em; }
661
+
662
+ #editor .cm-content .cm-md-atxheading1,
663
+ #editor .cm-content .cm-md-atxheading2,
664
+ #editor .cm-content .cm-md-atxheading3,
665
+ #editor .cm-content .cm-md-atxheading4,
666
+ #editor .cm-content .cm-md-atxheading5,
667
+ #editor .cm-content .cm-md-atxheading6,
668
+ #editor .cm-content .cm-md-blockquote,
669
+ #editor .cm-content .cm-md-codeblock,
670
+ #editor .cm-content .cm-md-hr,
671
+ #editor .cm-content .cm-md-mermaid,
672
+ #editor .cm-content .cm-md-li-0,
673
+ #editor .cm-content .cm-md-li-1,
674
+ #editor .cm-content .cm-md-li-2,
675
+ #editor .cm-content .cm-md-li-3,
676
+ #editor .cm-content .cm-md-li-4,
677
+ #editor .cm-content .cm-md-li-5,
678
+ #editor .cm-content .cm-md-li-6 {
679
+ text-indent: 0;
680
+ }
681
+
682
+ /* ═══════════════════════════════════════════════════════════
683
+ SECTION 3 — Exported HTML(.colamd-document,语义标签)
684
+ HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
685
+ ═══════════════════════════════════════════════════════════ */
686
+
687
+ .colamd-document {
688
+ font-family: var(--font-body);
689
+ font-size: 16px;
690
+ line-height: 1.7;
691
+ }
692
+
693
+ .colamd-document h1,
694
+ .colamd-document h2,
695
+ .colamd-document h3,
696
+ .colamd-document h4,
697
+ .colamd-document h5 {
698
+ font-family: var(--font-body);
699
+ color: var(--text-color);
700
+ line-height: 1.2;
701
+ margin: 1.5em 0 0.5em;
702
+ }
703
+ .colamd-document h1 {
704
+ font-size: 2.6em;
705
+ font-weight: 200;
706
+ line-height: 1.1;
707
+ letter-spacing: -0.01em;
708
+ margin-top: 0.4em;
709
+ }
710
+ .colamd-document h2 { font-size: 2.1em; font-weight: 300; }
711
+ .colamd-document h3 { font-size: 1.55em; font-weight: 400; line-height: 1.3; }
712
+ .colamd-document h4 { font-size: 1.2em; font-weight: 400; }
713
+ .colamd-document h5 { font-size: 1.05em; font-weight: 400; }
714
+ .colamd-document h6 {
715
+ font-size: 0.85em;
716
+ font-family: var(--font-mono);
717
+ font-weight: 400;
718
+ letter-spacing: 0.12em;
719
+ text-transform: uppercase;
720
+ color: var(--text-muted);
721
+ margin: 1.5em 0 0.5em;
722
+ }
723
+
724
+ .colamd-document strong { color: var(--text-color); font-weight: 500; }
725
+ .colamd-document a { color: var(--link-color); }
726
+ .colamd-document code {
727
+ background: var(--code-bg);
728
+ color: var(--text-color);
729
+ font-family: var(--font-mono);
730
+ border-radius: 0;
731
+ }
732
+ /* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
733
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
734
+ .colamd-document pre { background: var(--code-block-bg); }
735
+ .colamd-document pre code { color: var(--code-block-text); background: transparent; }
736
+ .colamd-document blockquote {
737
+ background: var(--blockquote-bg);
738
+ color: var(--text-secondary);
739
+ border-left: 1px solid var(--blockquote-border);
740
+ padding: 0 1.2em;
741
+ font-family: "Lora", "Noto Serif SC", serif;
742
+ font-style: italic;
743
+ }
744
+ .colamd-document mark { background: var(--highlight-bg); }
745
+ .colamd-document th,
746
+ .colamd-document td {
747
+ border-color: var(--border-color);
748
+ padding: 10px 14px;
749
+ }
750
+ .colamd-document th {
751
+ background: var(--table-header-bg);
752
+ font-family: var(--font-mono);
753
+ font-size: 0.78em;
754
+ font-weight: 400;
755
+ letter-spacing: 0.12em;
756
+ text-transform: uppercase;
757
+ border-bottom: 1px solid var(--seed-border-strong);
758
+ }
759
+ .colamd-document hr { border-top-color: var(--seed-border-strong); }
760
+
761
+ .colamd-document p { text-indent: 2em; }
762
+ .colamd-document li p,
763
+ .colamd-document td p,
764
+ .colamd-document th p,
765
+ .colamd-document blockquote p {
766
+ text-indent: 0;
767
+ }
768
+
769
+ /* ═══════════════════════════════════════════════════════════
770
+ SECTION 4 — Print
771
+ 应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
772
+ ═══════════════════════════════════════════════════════════ */
773
+
774
+ @media print {
775
+ html,
776
+ body {
777
+ background: var(--bg-color);
778
+ color: var(--text-color);
779
+ -webkit-print-color-adjust: exact;
780
+ print-color-adjust: exact;
781
+ }
782
+ }