@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,775 @@
1
+ /*
2
+ * ColaMD Theme: Sakura Chroma(樱色色谱 · 手工逐页版式精修版)
3
+ * 来源:D:\workspace\git\beautiful-html-templates\templates\sakura-chroma\
4
+ * template.html + design.md + template.json(八页固定 1920×1080 舞台)
5
+ * 色板(template.html :root):paper #F1E6CB / paper-dk #E5D6B0 / ink #3A2516
6
+ * red #E5392A / pink #E54489 / orange #F09131 / yellow #F0BC2A
7
+ * green #3D9F47 / blue #3F8BC4
8
+ * 字体:Big Shoulders Display(display,700/900,负字距)/ Albert Sans(正文、
9
+ * micro 大写标签)/ JetBrains Mono(数据、页码、ledger)/ Noto Sans JP(日文
10
+ * 点缀,以 Noto Sans SC 兜底)。零斜体、零圆角、1.5px ink 结构线、硬阴影。
11
+ *
12
+ * paradigm 备案(模板刻意身份,与 biennale-yellow / pin-and-paper 同类):
13
+ * SL-01 paper #F1E6CB HSL 饱和度 57.6% > 5% —— 暖奶油纸是整套模板的
14
+ * 身份(纸纹 + 六色套印),不做中性化;
15
+ * SL-02 paper-dk #E5D6B0 50.5% / paper-alt #D6C9B0 31.7% > 10% —— 纸深
16
+ * 刻意带暖调,承担卡片/代码块/表头的层叠;
17
+ * NT-03 边框 #BAAC95 饱和度 21% —— 模板所有结构线是 ink 暖棕(1.5px),
18
+ * 不用中性灰;
19
+ * CR-04 已修不备案:模板红 #E5392A 对纸底仅 3.7:1,只做色块/大数字,正文
20
+ * 链接与 em 换加深档 #B3271B(5.8:1);模板红留在 seed-accent-light。
21
+ *
22
+ * 契约:ColaMD Extend 2.7.13(CodeMirror 6 编辑器 + Pele 图表引擎)
23
+ *
24
+ * 两条硬规矩:
25
+ * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
26
+ * 编辑器继承不到。
27
+ * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
28
+ * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
29
+ * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
30
+ *
31
+ * ═══════════════════════════════════════════════════════════
32
+ * SECTION 1 — Design Tokens
33
+ * 改 11 个种子色 + 3 组字体即可换一套主题
34
+ * ═══════════════════════════════════════════════════════════ */
35
+
36
+ :root {
37
+
38
+ /* ── 1.1 Seed Palette ──
39
+ 本工具的再生成与校验读这一层;编辑器不消费。
40
+ 来源:paper/paper-dk/ink + 六色主色。accent 取加深红(纸底 5.8:1),
41
+ 模板原红留在 accent-light 供色块与 KPI 大数字使用。
42
+ 亮色范式明度序:surface 0.871 > panel 0.794 > panelAlt 0.765(SL-04 过线);
43
+ 三层纸色同色相轴 H≈40-43°(SL-03 过线);文字三档同 ink 轴 H≈25°(NT-01)。 */
44
+ --seed-accent: #b3271b; /* 模板红加深档(链接/em 正文可读,CR-04) */
45
+ --seed-accent-light: #e5392a; /* 模板 red(只做色块、印章、KPI 数字) */
46
+ --seed-accent-dark: #8c1d14;
47
+ --seed-surface: #f1e6cb; /* paper —— 暖奶油纸 */
48
+ --seed-panel: #e5d6b0; /* paper-dk —— 卡片/代码块/表头层 */
49
+ --seed-panel-alt: #d6c9b0; /* 再降一档(纸色相轴保持 H≈40°) */
50
+ --seed-ink: #3a2516; /* ink —— 暖棕墨 */
51
+ --seed-ink-muted: #745d4d; /* 次要文字(H≈25°) */
52
+ --seed-ink-dim: #8a7362; /* 标记/序号辅助(H≈25.5°) */
53
+ --seed-border: #baac95; /* ink 淡出线(NT-03 备案) */
54
+ --seed-border-strong: #3a2516; /* 结构线一律 ink */
55
+
56
+ /* ── 1.2 Semantic Colors(活变量)── */
57
+ --bg-color: var(--seed-surface);
58
+ --text-color: var(--seed-ink);
59
+ --text-secondary: var(--seed-ink-muted);
60
+ --text-muted: var(--seed-ink-dim);
61
+ --border-color: var(--seed-border);
62
+ /* 模板正文链接不单列;红只做行内 em 与色块。这里用加深红保 4.5:1 */
63
+ --link-color: var(--seed-accent);
64
+
65
+ --code-bg: var(--seed-panel);
66
+ --code-block-bg: var(--seed-panel-alt);
67
+ --code-block-text: #3a2516;
68
+
69
+ --blockquote-border: var(--seed-border-strong); /* 模板:1.5px ink 细线体系 */
70
+ --blockquote-bg: var(--seed-panel); /* paper-dk 引用托底 */
71
+ --table-header-bg: var(--seed-panel);
72
+
73
+ --selection-bg: rgba(229, 57, 42, 0.18); /* 模板红 18% */
74
+ --highlight-bg: rgba(240, 188, 42, 0.45); /* yellow 荧光笔 */
75
+
76
+ /* ── 1.3 Typography & Metrics(活变量)── */
77
+ --font-body: "Albert Sans", "LXGW WenKai", "Noto Sans SC", sans-serif;
78
+ --font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", "LXGW WenKai", monospace;
79
+ --editor-font-size: 16px;
80
+ --editor-column-width: 820px;
81
+
82
+ /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
83
+ 图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。
84
+ 模板零圆角:radius 0。 */
85
+ --pele-bg: var(--code-block-bg);
86
+ --pele-fg: var(--code-block-text);
87
+ --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
88
+ --pele-line: var(--code-block-text);
89
+ --pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
90
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
91
+ --pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
92
+ --pele-accent: var(--seed-accent-light);
93
+ --pele-radius: 0px;
94
+ }
95
+
96
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 sakura-chroma 八页逐页复刻)──
97
+ 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
98
+ 模板 1920 画布 px ÷ 26 = em(clamp 取 1920×1080 实际落点)。
99
+ 页面对照(模板页 → ColaMD 版式):
100
+ P1 cover(hero T-26) → cover 封面巨标题 237.6px
101
+ P2 manifesto(居中声明) → section 5.82em(151.2px)
102
+ P3 catalogue(4 卡网格) → matrix 3.74em(97.2px)+ 卡片
103
+ P4 stripe spread(引言) → quote 3.74em(97.2px)+ ink 署名条
104
+ P5 data(统计 + 均衡器) → kpi 数字 194.4px
105
+ P6 quote + petals → quote 同形不单列(qbody 113.4px 更大一档)
106
+ P7 release schedule → timeline ledger 行:mono 日期 + 行题 30px
107
+ P8 colophon → closing 5.82em(151.2px)+ 三列 footer
108
+ 无对应页:agenda / figure / steps / two-col 保持上游默认。
109
+ 装饰(花瓣圆群 / 斜向五色缎带 / 星芒印章 / 红色印章 / 均衡器条 / 四色
110
+ 卡片顶条 / 巨数字 T-26):绝对定位或逐项异色,行式 DOM 无挂点 → 有意
111
+ 未复刻,逐条在 1.6 注释。全八页纸底(#0e0e0e 只在舞台外),无换底页,
112
+ 因此不需要层叠链覆写,td 也不存在换底隐形问题;平台幽灵页码模板无对应,
113
+ 保持上游默认(封面/章节/收束页上游本就不显示)。
114
+ 字体:Big Shoulders Display 900(display 默认,ledger 行题 700);
115
+ micro 标签 = Albert Sans 700 大写;数据 = JetBrains Mono;负字距是身份。 */
116
+ :root {
117
+ --slide-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", "LXGW WenKai", monospace;
118
+ --slide-title-font: "Big Shoulders Display", "ZCOOL XiaoWei", "Noto Sans SC", sans-serif;
119
+ --slide-title-size: 3.53em; /* 内容页题 91.8px ÷26(P5/P7) */
120
+ --slide-title-weight: 900; /* Big Shoulders 900 是模板身份 */
121
+ --slide-subhead-weight: 600;
122
+ --slide-title-tracking: -0.016em;
123
+ --slide-title-line-height: 0.95;
124
+ --slide-cover-title-size: 9.14em; /* P1 hero T-26 237.6px ÷26 */
125
+ --slide-cover-title-line-height: 0.84;
126
+ --slide-cover-title-tracking: -0.025em;
127
+ --slide-section-title-size: 5.82em; /* P2 stmt 151.2px ÷26 */
128
+ --slide-closing-title-size: 5.82em; /* P8 ttl 151.2px ÷26 */
129
+ --slide-lead-size: 0.77em; /* 模板 lede / brand b2 20px ÷26 */
130
+ --slide-kicker-size: clamp(12px, 0.73vw, 14px); /* micro 14px @1920 */
131
+ --slide-kicker-tracking: 0.16em; /* micro 标准 .16em */
132
+ --slide-kicker-transform: uppercase;
133
+ --slide-chrome-opacity: 0.9; /* pagenum 全色 ink(模板右下) */
134
+ --slide-chrome-transform: none; /* pagenum 不大写 */
135
+ --slide-kpi-number-size: 11.5em; /* P5 194.4px ÷26 ÷0.65(li 缩放) */
136
+ --slide-quote-size: 3.74em; /* P4 qbody 97.2px ÷26 */
137
+ --slide-page-pad-x: 3.6vw; /* 模板页边距 69px @1920 */
138
+ --slide-page-top-pad: 78px; /* 框架顶 69px + chrome 余量 */
139
+ --slide-page-top-pad-print: 66px;
140
+ --slide-cover-text-align: left;
141
+ --slide-cover-lead-inline: auto;
142
+ }
143
+
144
+ /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
145
+ body.presenting / body.slides-printing 作用域) ═══════════════ */
146
+
147
+ /* 1.6.1 页标题声部对齐:Big Shoulders 900 暖棕墨;压掉文档式 h1/h2 的
148
+ border-bottom(编辑器规则带 id 权重会漏进放映),并收回 kicker 声部 */
149
+ body.presenting #editor .cm-content .cm-md-page-title,
150
+ body.slides-printing #editor .cm-content .cm-md-page-title {
151
+ font-family: var(--slide-title-font);
152
+ font-size: var(--slide-title-size);
153
+ font-weight: 900;
154
+ line-height: 0.95;
155
+ letter-spacing: -0.016em;
156
+ color: var(--text-color);
157
+ border-bottom: none;
158
+ padding-bottom: 0;
159
+ margin-bottom: 0.45em;
160
+ }
161
+
162
+ /* kicker = 模板 micro / eyebrow:Albert Sans 700 大写 .16em;颜色一律 ink */
163
+ body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
164
+ body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
165
+ font-family: var(--font-body);
166
+ font-weight: 700;
167
+ letter-spacing: var(--slide-kicker-tracking);
168
+ text-transform: var(--slide-kicker-transform);
169
+ color: var(--text-color);
170
+ opacity: 0.85;
171
+ }
172
+
173
+ /* 放映页里的导语/kicker 源行不吃正文首行缩进(它们不是正文段落) */
174
+ body.presenting #editor .cm-content .cm-md-page-lead,
175
+ body.presenting #editor .cm-content .cm-md-page-kicker,
176
+ body.slides-printing #editor .cm-content .cm-md-page-lead,
177
+ body.slides-printing #editor .cm-content .cm-md-page-kicker {
178
+ text-indent: 0;
179
+ }
180
+
181
+ /* 放映里加粗回到正文色:模板 strong 从不用强调色(强调只给 em / 色块) */
182
+ body.presenting #editor .cm-content .cm-md-strong,
183
+ body.slides-printing #editor .cm-content .cm-md-strong {
184
+ color: var(--text-color);
185
+ font-weight: 700;
186
+ }
187
+
188
+ /* 1.6.2 cover · P1:纸底 + 左下巨标题;kicker = 品牌行 tape garden 56px,
189
+ 副标题 = CATALOGUE NO. 7 20px。花瓣群/斜缎带/T-26 巨数字/粉色 lockup 条/
190
+ 右侧 JIS 规格清单/页脚印章:绝对定位或逐项异色,行式 DOM 无挂点,未复刻 */
191
+ body.presenting #editor[data-slide-layout='cover'] .cm-content {
192
+ justify-content: flex-end;
193
+ }
194
+ body.presenting #editor .cm-content .cm-md-slide-cover.cm-md-page-title,
195
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title {
196
+ font-size: var(--slide-cover-title-size);
197
+ line-height: 0.84;
198
+ letter-spacing: -0.025em;
199
+ max-width: 88%;
200
+ margin-bottom: 0.5em;
201
+ }
202
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
203
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title[data-slide-kicker]::before {
204
+ font-family: var(--slide-title-font);
205
+ font-size: 0.236em; /* brand b1 56px ÷ cover title 237.6px */
206
+ font-weight: 900;
207
+ line-height: 0.92;
208
+ letter-spacing: -0.02em;
209
+ text-transform: none;
210
+ color: var(--text-color);
211
+ opacity: 1;
212
+ margin-bottom: 0.5em;
213
+ }
214
+ body.presenting #editor .cm-content .cm-md-slide-cover.cm-md-atxheading2,
215
+ body.slides-printing .cm-md-slide-cover.cm-md-atxheading2 {
216
+ font-family: var(--font-body);
217
+ font-size: 0.77em; /* brand b2 20px ÷26 */
218
+ font-weight: 600;
219
+ line-height: 1.4;
220
+ letter-spacing: 0.02em;
221
+ color: var(--text-color);
222
+ border-bottom: none;
223
+ }
224
+ body.presenting #editor .cm-content .cm-md-slide-cover.cm-md-page-lead,
225
+ body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
226
+ font-size: 0.77em;
227
+ color: var(--text-muted);
228
+ margin-bottom: 9vh; /* 页脚安全区(cm-content 不允许 padding) */
229
+ max-width: 60%;
230
+ }
231
+
232
+ /* 1.6.3 section · P2(manifesto):整页居中声明 151.2px serif 声部,
233
+ 上下留白;kicker .32em 居中;四周散布色圆为绝对定位装饰,未复刻 */
234
+ body.presenting #editor[data-slide-layout='section'] .cm-content {
235
+ justify-content: center;
236
+ align-items: center;
237
+ text-align: center;
238
+ }
239
+ body.presenting #editor .cm-content .cm-md-slide-section.cm-md-page-title,
240
+ body.slides-printing .cm-md-slide-section.cm-md-page-title {
241
+ font-size: var(--slide-section-title-size);
242
+ line-height: 0.86;
243
+ letter-spacing: -0.022em;
244
+ max-width: 80%;
245
+ margin-inline: auto;
246
+ text-align: center;
247
+ }
248
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
249
+ body.slides-printing .cm-md-slide-section.cm-md-page-title[data-slide-kicker]::before {
250
+ letter-spacing: 0.32em; /* manifesto kicker .32em */
251
+ text-align: center;
252
+ }
253
+ body.presenting #editor .cm-content .cm-md-slide-section.cm-md-page-lead,
254
+ body.slides-printing .cm-md-slide-section.cm-md-page-lead {
255
+ font-size: 0.77em;
256
+ line-height: 1.55;
257
+ max-width: 56ch;
258
+ margin-inline: auto;
259
+ color: var(--text-secondary);
260
+ }
261
+
262
+ /* 1.6.4 matrix · P3(catalogue grid):页题 97.2px + 1.5px ink 顶栏线;
263
+ 卡片 = 1.5px ink 描边 + 零圆角,行题 48px BSB 900,说明 15px;
264
+ 四色顶条 / 卡内虚线规格行 / 页眉右侧 lab 标签无行级挂点,未复刻 */
265
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-page-title,
266
+ body.slides-printing .cm-md-slide-matrix.cm-md-page-title {
267
+ font-size: 3.74em; /* topbar ttl 97.2px ÷26 */
268
+ letter-spacing: -0.018em;
269
+ border-bottom: 1.5px solid var(--text-color);
270
+ padding-bottom: 0.2em;
271
+ }
272
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
273
+ body.slides-printing .cm-md-slide-matrix.cm-md-page-title[data-slide-kicker]::before {
274
+ letter-spacing: 0.18em; /* topbar lab .18em */
275
+ }
276
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
277
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
278
+ display: inline-block;
279
+ width: 23.2%;
280
+ margin: 0 1.6% 1.7em 0; /* 卡间 gap 26px ÷15.08 */
281
+ padding: 1.5em 1.3em 1.6em; /* 卡片内距 24/20px ÷15.08 */
282
+ border: 1.5px solid var(--text-color);
283
+ border-radius: 0;
284
+ vertical-align: top;
285
+ font-size: 0.58em; /* .desc 15px ÷26 */
286
+ line-height: 1.45;
287
+ color: var(--text-color); /* 模板卡内文字是 ink */
288
+ }
289
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
290
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
291
+ display: block;
292
+ font-family: var(--slide-title-font);
293
+ font-size: 3.18em; /* .nm 48px ÷26 ÷0.58 */
294
+ font-weight: 900;
295
+ line-height: 0.94;
296
+ letter-spacing: -0.012em;
297
+ color: var(--text-color);
298
+ margin-bottom: 0.35em;
299
+ }
300
+
301
+ /* 1.6.5 kpi · P5(data):页题 91.8px + 1.5px ink 线;裸排大数字(模板红
302
+ 194.4px)+ 15px 说明。第二指标蓝色 / 均衡器条阵 / 8 列 ticks 为逐项异色
303
+ 或绝对定位装饰,未复刻(红色为模板默认 hero 数字色,按大字号 3:1 档) */
304
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-page-title,
305
+ body.slides-printing .cm-md-slide-kpi.cm-md-page-title {
306
+ font-size: 3.53em; /* data topbar ttl 91.8px ÷26 */
307
+ letter-spacing: -0.014em;
308
+ border-bottom: 1.5px solid var(--text-color);
309
+ padding-bottom: 0.2em;
310
+ }
311
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
312
+ body.slides-printing .cm-md-slide-kpi.cm-md-page-title[data-slide-kicker]::before {
313
+ letter-spacing: 0.18em;
314
+ }
315
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
316
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
317
+ display: inline-block;
318
+ width: 46%;
319
+ margin: 0 2% 1.6em 0;
320
+ padding: 0;
321
+ border: none;
322
+ border-radius: 0;
323
+ background: transparent;
324
+ vertical-align: top;
325
+ font-size: 0.65em; /* .desc 17px ÷26 */
326
+ line-height: 1.5;
327
+ color: var(--text-color);
328
+ }
329
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
330
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
331
+ display: block;
332
+ font-family: var(--slide-title-font);
333
+ font-size: var(--slide-kpi-number-size);
334
+ font-weight: 900;
335
+ line-height: 0.86;
336
+ letter-spacing: -0.025em;
337
+ color: var(--seed-accent-light); /* 模板 hero 数字红 */
338
+ margin-bottom: 0.12em;
339
+ }
340
+
341
+ /* 1.6.6 quote · P4(stripe spread):引言 97.2px BSB 900;kicker 是
342
+ 1.5px ink 描边 + 纸底的小标签(.20em);署名 = ink 底米色 mono(qattr)。
343
+ qbody-box 的 8px 实心阴影按行累加会成条纹,未复刻;斜缎带/花瓣群为
344
+ 绝对定位装饰,未复刻。(P6 quote + petals 同形,qbody 介 113.4px 更大
345
+ 一档、kicker 为红字无边框,不单列。) */
346
+ /* 模板 qframe 是 bottom:12vh 的绝对定位(引言压在页面下部);行式 DOM 用
347
+ 容器 flex-end + 末行 12vh 下距等效,最后一行的底色面板也随之收口 */
348
+ body.presenting #editor[data-slide-layout='quote'] .cm-content {
349
+ justify-content: flex-end;
350
+ }
351
+ body.presenting #editor[data-slide-layout='quote'] .cm-content > .cm-line:last-child {
352
+ margin-bottom: 12vh;
353
+ }
354
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote,
355
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote {
356
+ font-family: var(--slide-title-font);
357
+ font-size: var(--slide-quote-size);
358
+ font-weight: 900;
359
+ font-style: normal; /* 模板无斜体 */
360
+ line-height: 0.92;
361
+ letter-spacing: -0.018em;
362
+ color: var(--text-color);
363
+ background: var(--seed-panel);
364
+ border-left: 1.5px solid var(--text-color);
365
+ border-right: 1.5px solid var(--text-color);
366
+ padding-left: 0.5em; /* qbody 内距 48px ÷97.2 */
367
+ padding-right: 0.5em;
368
+ max-width: 78%;
369
+ margin-bottom: 0;
370
+ text-indent: 0;
371
+ }
372
+ /* 上游在首个引用行加 3.2em 的 “ 装饰;模板 qbody 只用文字,压掉 */
373
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote::before,
374
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote::before {
375
+ content: none;
376
+ }
377
+ body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote + .cm-line,
378
+ body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote + .cm-line {
379
+ display: inline-block;
380
+ margin-top: 1em; /* qattr 上距 26px ÷26 */
381
+ padding: 0 1.4em; /* qattr 内距 22px ÷14,CSS-03 只走横向 */
382
+ line-height: 3; /* 竖向高度 42px ÷14 */
383
+ background: var(--text-color);
384
+ color: var(--bg-color);
385
+ font-family: var(--slide-mono);
386
+ font-size: 0.54em; /* qattr mono 14px ÷26 */
387
+ letter-spacing: 0.04em;
388
+ text-indent: 0;
389
+ }
390
+ body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
391
+ body.slides-printing .cm-md-slide-quote.cm-md-page-title[data-slide-kicker]::before {
392
+ display: inline-block;
393
+ padding: 0.85em 1.5em; /* qkicker 纸标签 12/22px ÷14 */
394
+ border: 1.5px solid var(--text-color);
395
+ background: var(--bg-color);
396
+ color: var(--text-color);
397
+ line-height: 1.2;
398
+ letter-spacing: 0.2em; /* qkicker .20em */
399
+ margin-bottom: 1.7em; /* 标签下距 24px ÷14 */
400
+ }
401
+
402
+ /* 1.6.7 timeline · P7(release schedule):页题 91.8px + 1.5px ink 线;
403
+ ledger 行 = 1px ink 22% 发丝线 + mono 日期 16px + 行题 30px BSB 700 +
404
+ 说明 15px。chip 色块 / N.R. 方框列 / 5 列网格无行级挂点,未复刻 */
405
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-page-title,
406
+ body.slides-printing .cm-md-slide-timeline.cm-md-page-title {
407
+ font-size: 3.53em; /* cal topbar ttl 91.8px ÷26 */
408
+ letter-spacing: -0.014em;
409
+ border-bottom: 1.5px solid var(--text-color);
410
+ padding-bottom: 0.2em;
411
+ }
412
+ body.presenting #editor[data-slide-layout='timeline'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
413
+ body.slides-printing .cm-md-slide-timeline.cm-md-page-title[data-slide-kicker]::before {
414
+ letter-spacing: 0.18em;
415
+ }
416
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li,
417
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
418
+ margin: 0;
419
+ margin-left: 0;
420
+ padding: 0.85em 0 1.2em; /* ledger 行距 13/18px ÷15.08 */
421
+ padding-left: 0;
422
+ border-left: none; /* 模板是横向 ledger,不是时间轴 */
423
+ border-bottom: 1px solid rgba(58, 37, 22, 0.22);
424
+ font-size: 0.58em; /* .ven 15px ÷26 */
425
+ line-height: 1.4;
426
+ color: var(--text-color); /* 模板 .ven 是 ink,不是次要色 */
427
+ }
428
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li::before,
429
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li::before {
430
+ content: none; /* 去掉上游时间轴圆点 */
431
+ }
432
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-listmark,
433
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-listmark {
434
+ display: none; /* 日期由行首 strong/mono 承担 */
435
+ }
436
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-strong,
437
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-strong {
438
+ display: block;
439
+ font-family: var(--slide-title-font);
440
+ font-size: 1.99em; /* .ttl-row 30px ÷26 ÷0.58 */
441
+ font-weight: 700; /* 模板 ledger 行题唯一 700 */
442
+ line-height: 1.1;
443
+ letter-spacing: -0.005em;
444
+ color: var(--text-color);
445
+ }
446
+
447
+ /* 1.6.8 closing · P8(colophon):标题 151.2px 顶部左对齐,kicker .22em;
448
+ 清单 = 三列页脚(31% 列宽)——1.5px ink 顶线 + micro 大写 .18em + 15px 文。
449
+ 斜缎带 / 星芒印章 / 红印章 / 花瓣群 / 页脚右侧留白为绝对定位装饰,未复刻 */
450
+ body.presenting #editor[data-slide-layout='closing'] .cm-content {
451
+ justify-content: flex-start;
452
+ }
453
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-page-title,
454
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title {
455
+ font-size: var(--slide-closing-title-size);
456
+ line-height: 0.86;
457
+ letter-spacing: -0.022em;
458
+ max-width: 92%;
459
+ margin-top: 0.55em;
460
+ margin-bottom: auto; /* title 顶、页脚列压到底 */
461
+ }
462
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
463
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title[data-slide-kicker]::before {
464
+ letter-spacing: 0.22em; /* colophon ktag .22em */
465
+ }
466
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
467
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
468
+ display: inline-block;
469
+ width: 31%;
470
+ margin: 0 2.2% 5em 0; /* 页脚离底 86px ÷15.08 ≈ 5em */
471
+ vertical-align: top;
472
+ border-top: 1.5px solid var(--text-color); /* col-footer 顶线 */
473
+ border-bottom: none;
474
+ padding-top: 0.85em;
475
+ font-size: 0.58em; /* .ftxt 15px ÷26 */
476
+ line-height: 1.5;
477
+ color: var(--text-color);
478
+ }
479
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li::before,
480
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li::before {
481
+ content: none; /* 模板页脚列无 ▸ 前缀 */
482
+ }
483
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
484
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
485
+ display: none;
486
+ }
487
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
488
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
489
+ display: block;
490
+ font-family: var(--font-body);
491
+ font-size: 0.86em; /* .ftag 13px ÷26 ÷0.58 */
492
+ font-weight: 700;
493
+ letter-spacing: 0.18em;
494
+ text-transform: uppercase;
495
+ color: var(--text-color);
496
+ margin-bottom: 0.35em;
497
+ }
498
+
499
+ /* 1.6.9 chrome · pagenum:底部 foot 右侧 13px JetBrains Mono .06em 全色 ink
500
+ (模板 20-36px 离底、24-44px 离右);顶部 chrome 是平台品牌槽,模板无对应,
501
+ 保留系统默认但降为 .9 透明度;foot 品牌名转 mono 大写标签 */
502
+ body.presenting .slide-chrome,
503
+ body.slides-printing .slide-chrome {
504
+ font-family: var(--slide-mono);
505
+ font-size: clamp(11px, 0.68vw, 13px);
506
+ letter-spacing: 0.06em;
507
+ text-transform: none;
508
+ color: var(--text-color);
509
+ }
510
+ /* 模板八页(含 colophon)右下都有 pagenum,收束页不随上游淡出 chrome/foot */
511
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-chrome {
512
+ opacity: var(--slide-chrome-opacity);
513
+ }
514
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-foot {
515
+ opacity: 0.9;
516
+ }
517
+ body.presenting .slide-foot,
518
+ body.slides-printing .slide-foot {
519
+ font-family: var(--slide-mono);
520
+ font-size: clamp(11px, 0.68vw, 13px);
521
+ letter-spacing: 0.06em;
522
+ text-transform: none;
523
+ opacity: 0.9;
524
+ color: var(--text-color);
525
+ }
526
+ body.presenting .slide-foot-brand,
527
+ body.slides-printing .slide-foot-brand {
528
+ font-family: var(--font-body);
529
+ font-size: 0.92em;
530
+ font-weight: 700;
531
+ letter-spacing: 0.16em;
532
+ text-transform: uppercase;
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.75;
542
+ }
543
+
544
+ /* ── 2.1 Headings(Big Shoulders 900,负字距是模板身份)── */
545
+ #editor .cm-content .cm-md-atxheading1,
546
+ #editor .cm-content .cm-md-atxheading2,
547
+ #editor .cm-content .cm-md-atxheading3,
548
+ #editor .cm-content .cm-md-atxheading4,
549
+ #editor .cm-content .cm-md-atxheading5,
550
+ #editor .cm-content .cm-md-atxheading6 {
551
+ font-family: var(--slide-title-font);
552
+ color: var(--text-color);
553
+ font-weight: 900;
554
+ line-height: 0.95;
555
+ letter-spacing: -0.015em;
556
+ }
557
+
558
+ #editor .cm-content .cm-md-atxheading1 {
559
+ font-size: 2.6em;
560
+ line-height: 0.9;
561
+ letter-spacing: -0.022em;
562
+ padding-bottom: 0.22em;
563
+ border-bottom: 1.5px solid var(--text-color);
564
+ }
565
+ #editor .cm-content .cm-md-atxheading2 {
566
+ font-size: 2em;
567
+ line-height: 0.95;
568
+ letter-spacing: -0.018em;
569
+ }
570
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.55em; }
571
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.25em; font-weight: 700; }
572
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.1em; font-weight: 700; }
573
+ #editor .cm-content .cm-md-atxheading6 {
574
+ font-size: 0.9em;
575
+ font-family: var(--font-body);
576
+ font-weight: 700;
577
+ letter-spacing: 0.16em;
578
+ text-transform: uppercase;
579
+ }
580
+
581
+ /* ── 2.2 Inline ── */
582
+ #editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 700; }
583
+ #editor .cm-content .cm-md-em {
584
+ font-style: normal; /* 模板无斜体:em 只切色 */
585
+ color: var(--link-color);
586
+ }
587
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
588
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
589
+ #editor .cm-content .cm-md-link { color: var(--link-color); }
590
+ #editor .cm-content .cm-md-url { color: var(--text-muted); }
591
+
592
+ #editor .cm-content .cm-md-inlinecode {
593
+ font-family: var(--font-mono);
594
+ background: var(--code-bg);
595
+ color: var(--text-color);
596
+ border-radius: 0; /* 模板零圆角 */
597
+ }
598
+
599
+ #editor .cm-content .cm-md-marker,
600
+ #editor .cm-content .cm-md-quotemark,
601
+ #editor .cm-content .cm-md-listmark {
602
+ color: var(--text-muted);
603
+ }
604
+
605
+ /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
606
+ 引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
607
+ 否则引用里的代码行会盖住代码块底色。 */
608
+ #editor .cm-content .cm-md-blockquote {
609
+ color: var(--text-secondary);
610
+ border-left: 1.5px solid var(--blockquote-border);
611
+ padding-left: 16px;
612
+ padding-right: 16px;
613
+ }
614
+
615
+ #editor .cm-content .cm-md-codeblock {
616
+ background: var(--code-block-bg);
617
+ color: var(--code-block-text);
618
+ padding-left: 16px;
619
+ padding-right: 16px;
620
+ }
621
+ #editor .cm-content .cm-md-codeblock-first {
622
+ border-top-left-radius: 0;
623
+ border-top-right-radius: 0;
624
+ }
625
+ #editor .cm-content .cm-md-codeblock-last {
626
+ border-bottom-left-radius: 0;
627
+ border-bottom-right-radius: 0;
628
+ }
629
+
630
+ /* ── 2.4 Table / Rule(模板:行式细线表格,th = micro-label)── */
631
+ #editor .cm-content .cm-md-table-widget th,
632
+ #editor .cm-content .cm-md-table-widget td {
633
+ padding: 10px 14px;
634
+ border-color: rgba(58, 37, 22, 0.22);
635
+ }
636
+ #editor .cm-content .cm-md-table-widget th {
637
+ background: var(--table-header-bg);
638
+ color: var(--text-color);
639
+ font-family: var(--font-body);
640
+ font-size: 0.78em;
641
+ font-weight: 700;
642
+ letter-spacing: 0.18em;
643
+ text-transform: uppercase;
644
+ border-bottom: 1.5px solid var(--text-color);
645
+ }
646
+ #editor .cm-content .cm-md-hr {
647
+ border-top: 1.5px solid var(--text-color);
648
+ }
649
+
650
+ /* ── 2.5 中文首行缩进 ──
651
+ CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
652
+ #editor .cm-content .cm-line { text-indent: 2em; }
653
+
654
+ #editor .cm-content .cm-md-atxheading1,
655
+ #editor .cm-content .cm-md-atxheading2,
656
+ #editor .cm-content .cm-md-atxheading3,
657
+ #editor .cm-content .cm-md-atxheading4,
658
+ #editor .cm-content .cm-md-atxheading5,
659
+ #editor .cm-content .cm-md-atxheading6,
660
+ #editor .cm-content .cm-md-blockquote,
661
+ #editor .cm-content .cm-md-codeblock,
662
+ #editor .cm-content .cm-md-hr,
663
+ #editor .cm-content .cm-md-mermaid,
664
+ #editor .cm-content .cm-md-li-0,
665
+ #editor .cm-content .cm-md-li-1,
666
+ #editor .cm-content .cm-md-li-2,
667
+ #editor .cm-content .cm-md-li-3,
668
+ #editor .cm-content .cm-md-li-4,
669
+ #editor .cm-content .cm-md-li-5,
670
+ #editor .cm-content .cm-md-li-6 {
671
+ text-indent: 0;
672
+ }
673
+
674
+ /* ═══════════════════════════════════════════════════════════
675
+ SECTION 3 — Exported HTML(.colamd-document,语义标签)
676
+ HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
677
+ ═══════════════════════════════════════════════════════════ */
678
+
679
+ .colamd-document {
680
+ font-family: var(--font-body);
681
+ font-size: 16px;
682
+ line-height: 1.75;
683
+ }
684
+
685
+ .colamd-document h1,
686
+ .colamd-document h2,
687
+ .colamd-document h3,
688
+ .colamd-document h4,
689
+ .colamd-document h5,
690
+ .colamd-document h6 {
691
+ font-family: var(--slide-title-font);
692
+ color: var(--text-color);
693
+ font-weight: 900;
694
+ line-height: 0.95;
695
+ letter-spacing: -0.015em;
696
+ margin: 1.4em 0 0.45em;
697
+ }
698
+ .colamd-document h1 {
699
+ font-size: 2.6em;
700
+ line-height: 0.9;
701
+ letter-spacing: -0.022em;
702
+ padding-bottom: 0.22em;
703
+ border-bottom: 1.5px solid var(--text-color);
704
+ margin-top: 0.5em;
705
+ }
706
+ .colamd-document h2 { font-size: 2em; line-height: 0.95; letter-spacing: -0.018em; }
707
+ .colamd-document h3 { font-size: 1.55em; }
708
+ .colamd-document h4 { font-size: 1.25em; font-weight: 700; }
709
+ .colamd-document h5 { font-size: 1.1em; font-weight: 700; }
710
+ .colamd-document h6 {
711
+ font-size: 0.9em;
712
+ font-family: var(--font-body);
713
+ font-weight: 700;
714
+ letter-spacing: 0.16em;
715
+ text-transform: uppercase;
716
+ }
717
+
718
+ .colamd-document strong { color: var(--text-color); font-weight: 700; }
719
+ .colamd-document em {
720
+ font-style: normal;
721
+ color: var(--link-color);
722
+ }
723
+ .colamd-document code {
724
+ background: var(--code-bg);
725
+ color: var(--text-color);
726
+ font-family: var(--font-mono);
727
+ border-radius: 0;
728
+ }
729
+ .colamd-document pre { background: var(--code-block-bg); }
730
+ .colamd-document pre code { color: var(--code-block-text); }
731
+ .colamd-document blockquote {
732
+ background: var(--blockquote-bg);
733
+ color: var(--text-secondary);
734
+ border-left: 1.5px solid var(--blockquote-border);
735
+ padding: 0.5em 1.2em;
736
+ }
737
+ .colamd-document mark { background: var(--highlight-bg); }
738
+ .colamd-document th,
739
+ .colamd-document td {
740
+ border-color: rgba(58, 37, 22, 0.22);
741
+ padding: 10px 14px;
742
+ }
743
+ .colamd-document th {
744
+ background: var(--table-header-bg);
745
+ font-family: var(--font-body);
746
+ font-size: 0.78em;
747
+ font-weight: 700;
748
+ letter-spacing: 0.18em;
749
+ text-transform: uppercase;
750
+ border-bottom: 1.5px solid var(--text-color);
751
+ }
752
+ .colamd-document hr { border-top: 1.5px solid var(--text-color); }
753
+
754
+ .colamd-document p { text-indent: 2em; }
755
+ .colamd-document li p,
756
+ .colamd-document td p,
757
+ .colamd-document th p,
758
+ .colamd-document blockquote p {
759
+ text-indent: 0;
760
+ }
761
+
762
+ /* ═══════════════════════════════════════════════════════════
763
+ SECTION 4 — Print
764
+ 应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
765
+ ═══════════════════════════════════════════════════════════ */
766
+
767
+ @media print {
768
+ html,
769
+ body {
770
+ background: var(--bg-color);
771
+ color: var(--text-color);
772
+ -webkit-print-color-adjust: exact;
773
+ print-color-adjust: exact;
774
+ }
775
+ }