@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,69 @@
1
+ # 主题目录(themes/)
2
+
3
+ > 本目录包含两类文件:**内置/历史主题**(`elegant.css`、`swiss-lemon-*` 等 23 个)
4
+ > 与 **v0.6.1 从 beautiful-html-templates 批量提取的 34 个幻灯片模板主题**(下表)。
5
+
6
+ ## beautiful-html-templates 模板主题(34 个)
7
+
8
+ 来源:`beautiful-html-templates/templates/*`(每个模板含 `template.html` + `template.json`)。
9
+ 由 `colamd-themes from-html` 批量提取,遵守 ColaMD 2.7.13 契约(≤300 行、`:root` 活变量、
10
+ 字体栈含中文字族并以 generic family 结尾),并带**全量按页类型定制的 PPT `--slide-*` 令牌**:
11
+ 封面/章节/收页字号阶梯取自模板自身字号阶梯,页标题 / KPI / 引言 / kicker / chrome / 页边距
12
+ 按模板气质(bold/quiet/tech)、密度与明暗调校。
13
+
14
+ 使用方式(未注册,按文件路径引用):
15
+
16
+ ```bash
17
+ colamd-themes export-html doc.md -t themes/vellum.css -o out.html
18
+ ```
19
+
20
+ 在 ColaMD 应用(≥2.7.13)内:*主题 > 导入主题* 或将 `.css` 放入 `~/.colamd/themes/` 即可放映使用。
21
+
22
+ | slug | 名称 | 气质 | 预设 | 明暗 | 显示字体 | 正文字体 | surface | ink | accent |
23
+ |---|---|---|---|---|---|---|---|---|---|
24
+ | 8-bit-orbit | 8-Bit Orbit | retro-tech · playful · cyberpunk | sans | dark | Tektur | Chakra Petch | #0a0e27 | #f0a6ca | #f4d03f |
25
+ | biennale-yellow | Biennale Yellow | editorial · atmospheric · warm | serif | light | Instrument Serif | Archivo | #e9e5db | #1b2566 | #f1ee2e |
26
+ | block-frame | BlockFrame | bold · playful · graphic | sans | light | Space Grotesk | Inter | #ffffff | #fe90e8 | #ffdc8b |
27
+ | blue-professional | Blue Professional | professional · modern · calm | sans | light | Space Grotesk | Inter | #fdfae7 | #111111 | #1e2bfa |
28
+ | bold-poster | Bold Poster | bold · editorial · loud | serif | light | Shrikhand | Space Grotesk | #ffffff | #1c1410 | #d8000f |
29
+ | broadside | Broadside | editorial · dramatic · loud | serif | dark | Barlow | Barlow | #111111 | #f0ece5 | #e85d26 |
30
+ | capsule | Capsule | playful · modern · warm | serif | light | Bodoni Moda | Space Grotesk | #f5f5f0 | #1a1a1a | #8bb4f7 |
31
+ | cartesian | Cartesian | quiet · considered · elegant | serif | light | Playfair Display | Inter | #ede8e0 | #1a1a1a | #8a8178 |
32
+ | cobalt-grid | Cobalt Grid | editorial · design-research · studious | serif | light | Newsreader | Hanken Grotesk | #f0ebde | #1f2be0 | #2b579a |
33
+ | coral | Coral | bold · warm · modern | sans | mixed | Bebas Neue | Inter | #f5f0e8 | #1a1a1a | #e85d5d |
34
+ | creative-mode | Creative Mode | creative · confident · playful | sans | light | Archivo Black | Space Grotesk | #efe9d9 | #0f0f0f | #f5c518 |
35
+ | daisy-days | Daisy Days | cheerful · playful · warm | sans | light | Fredoka One | Quicksand | #f5f0e6 | #f7c8d4 | #fde68a |
36
+ | editorial-forest | Editorial Forest | editorial · quiet · considered | sans | mixed | - | - | #efe7d4 | #1a1a17 | #e89cb1 |
37
+ | editorial-tri-tone | Editorial Tri-Tone | editorial · warm · intentional | sans | mixed | Bricolage Grotesque | - | #f2d86a | #7a1f35 | #f2b6c6 |
38
+ | emerald-editorial | Emerald Editorial | editorial · considered · confident | serif | mixed | Bodoni Moda | - | #3cd896 | #0f1a5c | #3cd896 |
39
+ | grove | Grove | organic · considered · warm | serif | mixed | Playfair Display | Jost | #192b1b | #d4cfbf | #c8524a |
40
+ | long-table | Long Table | warm · intimate · modern | sans | light | Bricolage Grotesque | Fraunces | #faf1e2 | #b53d2a | #2b579a |
41
+ | mat | Mat | warm-modern · considered · tactile | sans | mixed | Bricolage Grotesque | DM Sans | #232e26 | #f0e8d2 | #c07030 |
42
+ | monochrome | Monochrome | restrained · literary · archival | serif | light | Lora | Jost | #fafadf | #1a1a16 | #1a1a16 |
43
+ | neo-grid-bold | Neo-Grid Bold | confident · punchy · editorial | serif | light | Space Grotesk | Space Grotesk | #ecece8 | #0a0a0a | #e6ff3d |
44
+ | peoples-platform | People's Platform (Block & Bold) | activist · loud · graphic | serif | light | Alfa Slab One | - | #f5f2ea | #0e0e14 | #f2a03a |
45
+ | pin-and-paper | Pin & Paper | crafted · handmade · warm | sans | light | Caveat | Space Grotesk | #efe56a | #1f3a8a | #efe56a |
46
+ | pink-script | Pink Script — After Hours | nocturnal · moody · intentional | serif | dark | DM Serif Display | Inter | #f5edf1 | #060507 | #ff66a8 |
47
+ | playful | Playful | warm · approachable · indie | sans | light | Syne | Space Grotesk | #f0c8a0 | #1a1a1a | #1a1a1a |
48
+ | raw-grid | Raw Grid | raw · punchy · energetic | sans | light | Segoe UI / system-ui | Segoe UI / system-ui | #ffffff | #f2d4cf | #2b579a |
49
+ | retro-windows | Retro Windows | nostalgic · retro · geeky | sans | light | Press Start 2P | MS Sans Serif | #c0c0c0 | #222222 | #000080 |
50
+ | retro-zine | Retro Zine | crafted · lo-fi · underground | sans | light | Bebas Neue | Space Grotesk | #c8b99a | #1a1a1a | #008f4d |
51
+ | sakura-chroma | Sakura Chroma | retro · playful · kawaii-tech | serif | light | Big Shoulders Display | Albert Sans | #f1e6cb | #3a2516 | #f0bc2a |
52
+ | scatterbrain | Scatterbrain | playful · creative · warm | sans | light | Shrikhand | Zilla Slab | #f7f5f0 | #2d2a26 | #ffe066 |
53
+ | signal | Signal | institutional · trustworthy · considered | serif | mixed | Source Serif 4 | DM Sans | #1c2644 | #e2dcd0 | #c8a870 |
54
+ | soft-editorial | Soft Editorial | literary · elegant · quiet | serif | light | Cormorant Garamond | Work Sans | #f2eedf | #2a241b | #d6dd63 |
55
+ | stencil-tablet | Stencil & Tablet | archival · earthy · tactile | serif | light | Bowlby One | Inter | #f4efe0 | #0a0a0a | #ee7a2e |
56
+ | studio | Studio | electric · bold · graphic | sans | dark | Barlow | Barlow | #1c1c1c | #f5d200 | #f5d200 |
57
+ | vellum | Vellum | scholarly · literary · considered | serif | dark | Cormorant Garamond | DM Sans | #2a3870 | #e8d85c | #3a7878 |
58
+
59
+ 共 34 个主题。预设分布:
60
+ - **sans**: 17 个
61
+ - **serif**: 17 个
62
+
63
+ ## 提取器说明(from-html)
64
+
65
+ - **颜色**:语义 token(`--bg`/`--text`/`--accent`…)精确匹配 → 子串变体(`--c-bg`/`--fg`/`--ink`…)→ 明度/饱和度启发式(明度排序出背景/前景,最饱和且与两端拉开距离的色作强调色)
66
+ - **字体**:template.json 的 display/body/mono + serif_cn/sans_cn 拼 CJK 回退,generic family 结尾(SLIDE-03)
67
+ - **调色板清洗**:`var()` 脏值与违反明度方向的派生色按背景-前景插值重推(SL-04 排序 / CR-02 ≥4.5:1 对比度)
68
+ - **PPT 预设**:按 display 字体自动判定(衬线名 → serif / 等宽 → mono / 其余 → sans)
69
+ - **高饱和设计**:部分模板(如 8-bit-orbit 的霓虹 void、vellum 的饱和深蓝)保留 SL-01/SL-02 饱和度范式警告——模板刻意气质,非契约错误
@@ -0,0 +1,577 @@
1
+ /*
2
+ * ColaMD Theme: Biennale Yellow(双年展黄 · 手工精修版)
3
+ * Solar yellow on warm parchment with deep indigo serif and atmospheric sun-glow gradients.
4
+ * Generated by colamd-themes (local-html: D:\workspace\git\beautiful-html-templates\templates\biennale-yellow\template.html)
5
+ * paradigm 备案(黄纸身份,与 pin-and-paper 同类,有意保留):
6
+ * SL-01/SL-02 —— 纸底/纸深刻意带暖调(S 24-26%),模板身份即"黄纸";
7
+ * CR-04 —— sun 与纸底对比 1.0:1,但 sun 只做色块/条形/荧光,从不做文字色
8
+ * (文字一律 ink,链接走 ember 加深档 #A84E2E 保 ≥4.5:1);
9
+ * NT-03 —— 边框为 ink 淡出(蓝调刻意)。
10
+ * 版式复刻见 SECTION 1.5/1.6(八页逐页对照与换算式均在其注释中)。
11
+ *
12
+ * 契约:ColaMD Extend 2.7(CodeMirror 6 编辑器 + Pele 图表引擎)
13
+ *
14
+ * 两条硬规矩:
15
+ * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
16
+ * 编辑器继承不到。
17
+ * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
18
+ * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
19
+ * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
20
+ *
21
+ * ═══════════════════════════════════════════════════════════
22
+ * SECTION 1 — Design Tokens
23
+ * 改 11 个种子色 + 3 组字体即可换一套主题
24
+ * ═══════════════════════════════════════════════════════════ */
25
+
26
+ :root {
27
+
28
+ /* ── 1.1 Seed Palette ──
29
+ 本工具的再生成与校验读这一层;编辑器不消费。
30
+ 来源(template.html :root):paper #E9E5DB / sun #F1EE2E / sun-soft #F8F39B
31
+ ink #1B2566 / ember #E26B4A / paper-deep #DCD6C4
32
+ 模板约定:sun 只做色块/条形/光晕,不做文字色(黄字在羊皮纸上 ≈1.2:1);
33
+ 文字与线条一律 ink;ember 仅存在于渐变光晕。 */
34
+ --seed-accent: #f1ee2e;
35
+ --seed-accent-light: #f8f39b;
36
+ --seed-accent-dark: #ddd926;
37
+ --seed-surface: #e9e5db;
38
+ --seed-panel: #dcd6c4; /* paper-deep */
39
+ --seed-panel-alt: #c9c5ba; /* 拉回纸张色相轴(SL-03),明度与生成版一致 */
40
+ --seed-ink: #1b2566;
41
+ --seed-ink-muted: #464c77;
42
+ --seed-ink-dim: #5a608a;
43
+ --seed-border: #a7adc9; /* ink 35% over paper */
44
+ --seed-border-strong: #1b2566;
45
+
46
+ /* ── 1.2 Semantic Colors(活变量)── */
47
+ --bg-color: var(--seed-surface);
48
+ --text-color: var(--seed-ink);
49
+ --text-secondary: var(--seed-ink-muted);
50
+ --text-muted: var(--seed-ink-dim);
51
+ --border-color: var(--seed-border);
52
+ /* 模板 ember 加深一档保羊皮纸上 ≥4.5:1(CR-04);模板身份由 sun 色块承担 */
53
+ --link-color: #a84e2e;
54
+
55
+ --code-bg: var(--seed-panel);
56
+ --code-block-bg: var(--seed-panel-alt);
57
+ --code-block-text: #1b2566;
58
+
59
+ --blockquote-border: var(--seed-border-strong); /* 模板:1px ink 细线体系 */
60
+ --blockquote-bg: var(--seed-panel);
61
+ --table-header-bg: var(--seed-panel); /* paper-deep 表头 */
62
+
63
+ --selection-bg: rgba(241, 238, 46, 0.35);
64
+ --highlight-bg: #f8f39b; /* sun-soft 荧光笔 */
65
+
66
+ /* ── 1.3 Typography & Metrics(活变量)── */
67
+ --font-body: "Archivo", "Noto Sans SC", sans-serif;
68
+ --font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
69
+ --editor-font-size: 16px;
70
+ --editor-column-width: 820px;
71
+
72
+ /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
73
+ 图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。 */
74
+ --pele-bg: var(--code-block-bg);
75
+ --pele-fg: var(--code-block-text);
76
+ --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
77
+ --pele-line: var(--code-block-text);
78
+ --pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
79
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
80
+ --pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
81
+ --pele-accent: var(--seed-accent); /* 模板:ink 条形上的 sun 高亮条 */
82
+ --pele-radius: 0px; /* 模板:平面编辑风,零圆角 */
83
+ }
84
+
85
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 biennale-yellow 八页逐页复刻)──
86
+ 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
87
+ 模板 1920 画布 px ÷ 26 = em(clamp 取 1920×1080 实际落点)。字体体系:
88
+ Instrument Serif 400(display,仅 400)/ Archivo(micro-label 600 大写
89
+ .18em)/ JetBrains Mono(mono-tab)。页面对照:
90
+ cover←P1 agenda←P3 section←P4 kpi←P5 quote←P6 timeline←P7 closing←P8
91
+ (P2 manifesto 与 quote 同形不单列;figure/steps/matrix/two-col 无对应页
92
+ 保持上游默认。色块网格/光晕渐变/日期竖排轨/footer 四列/巨数字为绝对
93
+ 定位装饰,行式 DOM 无挂点——未复刻,quote 的 y-mark 以巨引号近似)
94
+ 全八页纸底,无 ink 页——不做页面级背景覆写,天然无层叠覆盖问题。 */
95
+ :root {
96
+ --slide-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
97
+ --slide-title-font: "Instrument Serif", "Noto Serif SC", serif;
98
+ --slide-title-size: 2.9em; /* 内容页题 75px ÷26(P4/P6/P7 同档) */
99
+ --slide-title-weight: 400; /* Instrument Serif 仅 400 */
100
+ --slide-subhead-weight: 600;
101
+ --slide-title-tracking: -0.005em;
102
+ --slide-title-line-height: 1.05;
103
+ --slide-cover-title-size: 9.2em; /* P1 h1 240px ÷26 */
104
+ --slide-cover-title-line-height: 0.86;
105
+ --slide-cover-title-tracking: -0.018em;
106
+ --slide-section-title-size: 2.9em; /* P4 ttl 75px ÷26 */
107
+ --slide-closing-title-size: 6.6em; /* P8 ttl 172px ÷26 */
108
+ --slide-lead-size: 0.69em; /* 模板 lede/meta 18px ÷26 */
109
+ --slide-kicker-size: clamp(12px, 0.7vw, 14px); /* micro-label 13px @1920 */
110
+ --slide-kicker-tracking: 0.18em; /* 模板 micro-label .18em */
111
+ --slide-kicker-transform: uppercase;
112
+ --slide-chrome-opacity: 0.78; /* pagenum opacity .75 档 */
113
+ --slide-chrome-transform: none; /* pagenum 不大写 */
114
+ --slide-kpi-number-size: 8.55em; /* P5 v 129px ÷26 ÷0.58(li 缩放) */
115
+ --slide-quote-size: 2.9em; /* P6 qbody 75px ÷26 */
116
+ --slide-page-pad-x: 4vw; /* 模板页边距 76px @1920 */
117
+ --slide-page-top-pad: 70px; /* 正文顶 76px − chrome 安全区 */
118
+ --slide-page-top-pad-print: 60px;
119
+ --slide-cover-text-align: left;
120
+ --slide-cover-lead-inline: auto;
121
+ }
122
+
123
+ /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
124
+ body.presenting / body.slides-printing 作用域) ═══════════════ */
125
+
126
+ /* 1.6.1 页标题声部对齐:Instrument Serif 400 墨蓝;并压掉文档式 h1/h2
127
+ 的 border-bottom(编辑器规则带 id 权重会漏进放映) */
128
+ body.presenting #editor .cm-content .cm-md-page-title,
129
+ body.slides-printing #editor .cm-content .cm-md-page-title {
130
+ font-family: var(--slide-title-font);
131
+ font-size: var(--slide-title-size);
132
+ font-weight: 400;
133
+ line-height: 1.05;
134
+ letter-spacing: -0.005em;
135
+ color: var(--text-color);
136
+ border-bottom: none;
137
+ padding-bottom: 0;
138
+ margin-bottom: 0.45em;
139
+ }
140
+
141
+ /* 1.6.2 cover · P1:黄纸 + 色块光晕(装饰未复刻);标题 240px 底部左对齐 */
142
+ body.presenting #editor[data-slide-layout='cover'] .cm-content {
143
+ justify-content: flex-end;
144
+ padding-bottom: 150px;
145
+ }
146
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
147
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title {
148
+ font-size: var(--slide-cover-title-size);
149
+ line-height: 0.86;
150
+ letter-spacing: -0.018em;
151
+ max-width: 88%;
152
+ }
153
+
154
+ /* 1.6.3 agenda · P3(programme strands):巨词标题 194px;行式条目 = 56px
155
+ 序号列 + serif 行题 32px + Archivo 说明 15px + rgba ink .18 底线 */
156
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-page-title,
157
+ body.slides-printing .cm-md-slide-agenda.cm-md-page-title {
158
+ font-size: 7.5em; /* .word 194px ÷26 */
159
+ line-height: 0.86;
160
+ letter-spacing: -0.018em;
161
+ }
162
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
163
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
164
+ font-size: 0.58em; /* .strand p 15px ÷26 */
165
+ border-bottom: 1px solid rgba(27, 37, 102, 0.18);
166
+ padding-bottom: 0.85em;
167
+ margin: 0 0 0.8em;
168
+ }
169
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
170
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
171
+ font-family: var(--slide-title-font);
172
+ font-weight: 400;
173
+ font-size: 2.52em; /* .num 38px ÷26 ÷0.58 */
174
+ line-height: 1;
175
+ color: var(--text-color);
176
+ margin-right: 0.35em;
177
+ }
178
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong,
179
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
180
+ font-family: var(--slide-title-font);
181
+ font-size: 2.13em; /* .strand h3 32px ÷26 ÷0.58 */
182
+ font-weight: 400;
183
+ line-height: 1.1;
184
+ letter-spacing: -0.005em;
185
+ color: var(--text-color);
186
+ }
187
+
188
+ /* 1.6.4 section · P4(chapter divider):ttl 75px + lede 18px;
189
+ vrail 竖排标签转 kicker 横排 .32em;巨数字 .nm 无对应元素(未复刻) */
190
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
191
+ body.slides-printing .cm-md-slide-section.cm-md-page-lead {
192
+ font-size: 0.69em;
193
+ line-height: 1.55;
194
+ max-width: 56ch;
195
+ }
196
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
197
+ body.slides-printing .cm-md-slide-section .cm-md-page-title[data-slide-kicker]::before {
198
+ letter-spacing: 0.32em; /* .vrail .32em */
199
+ }
200
+
201
+ /* 1.6.5 kpi · P5(data):页题 56px + 1px ink 底线;奶油无卡——裸排大数字
202
+ 129px serif + lab2 micro + desc 15px;条形高亮条 = --pele-accent sun */
203
+ body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title,
204
+ body.slides-printing .cm-md-slide-kpi.cm-md-page-title {
205
+ font-size: 2.15em; /* .head .h 56px ÷26 */
206
+ border-bottom: 1px solid var(--text-color);
207
+ padding-bottom: 0.45em;
208
+ }
209
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
210
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
211
+ font-size: 0.58em; /* .desc 15px ÷26 */
212
+ background: transparent;
213
+ border: none;
214
+ box-shadow: none;
215
+ border-radius: 0;
216
+ padding: 0;
217
+ margin: 0 0 1.4em;
218
+ width: 46%;
219
+ display: inline-block;
220
+ vertical-align: top;
221
+ }
222
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
223
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
224
+ font-size: var(--slide-kpi-number-size);
225
+ font-weight: 400;
226
+ line-height: 0.92;
227
+ letter-spacing: -0.01em;
228
+ color: var(--text-color);
229
+ }
230
+
231
+ /* 1.6.6 quote · P6(quote spread):金句 75px serif;右 32% 黄块无挂点(未复刻);
232
+ 署名行 = 1px ink 顶线 + Archivo 600 大写 .16em;y-mark 以巨引号近似 280px */
233
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
234
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
235
+ font-size: var(--slide-quote-size);
236
+ font-weight: 400;
237
+ line-height: 1.06;
238
+ letter-spacing: -0.005em;
239
+ color: var(--text-color);
240
+ background: transparent;
241
+ padding-left: 0;
242
+ padding-right: 0;
243
+ max-width: 62%;
244
+ }
245
+ body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
246
+ body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
247
+ font-family: var(--slide-title-font);
248
+ font-size: 10.8em; /* y-mark 280px ÷26 */
249
+ line-height: 0.6;
250
+ color: var(--text-color);
251
+ opacity: 0.9;
252
+ }
253
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
254
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
255
+ margin-top: 1.7em; /* .qattr 顶线(CSS-03:纵向留白只能走 margin) */
256
+ border-top: 1px solid var(--text-color);
257
+ font-family: var(--font-body);
258
+ font-weight: 600;
259
+ font-size: 0.5em; /* .who 13px ÷26 */
260
+ letter-spacing: 0.16em;
261
+ text-transform: uppercase;
262
+ color: var(--text-color);
263
+ }
264
+ body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
265
+ body.slides-printing .cm-md-slide-quote .cm-md-page-title[data-slide-kicker]::before {
266
+ letter-spacing: 0.22em; /* .qkicker .22em */
267
+ }
268
+
269
+ /* 1.6.7 timeline · P7(calendar ledger):页题 75px + 1px ink 底线;
270
+ 行式条目 = mono 日期 16px + serif 行题 30px + venue 15px + rgba .2 底线 */
271
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-page-title,
272
+ body.slides-printing .cm-md-slide-timeline.cm-md-page-title {
273
+ font-size: 2.88em; /* .topbar .h 75px ÷26 */
274
+ border-bottom: 1px solid var(--text-color);
275
+ padding-bottom: 0.45em;
276
+ }
277
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li,
278
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
279
+ font-size: 0.58em; /* .ven 15px ÷26 */
280
+ border-bottom: 1px solid rgba(27, 37, 102, 0.2);
281
+ border-top: none;
282
+ padding: 0.55em 0 0.7em;
283
+ margin: 0;
284
+ }
285
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-listmark,
286
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-listmark {
287
+ font-family: var(--slide-mono);
288
+ font-weight: 400;
289
+ font-size: 1.06em; /* .date 16px ÷26 ÷0.58 */
290
+ letter-spacing: 0.02em;
291
+ color: var(--text-color);
292
+ }
293
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-strong,
294
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-strong {
295
+ font-family: var(--slide-title-font);
296
+ font-size: 1.99em; /* .ttl 30px ÷26 ÷0.58 */
297
+ font-weight: 400;
298
+ line-height: 1.15;
299
+ color: var(--text-color);
300
+ }
301
+
302
+ /* 1.6.8 closing · P8(colophon):标题 172px 顶部左对齐;清单 = colofo 四列
303
+ (23.2% 列宽)——1px ink 顶线 + ftag micro 大写 .16em + ftxt 13px */
304
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title,
305
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title {
306
+ font-size: var(--slide-closing-title-size);
307
+ line-height: 0.86;
308
+ letter-spacing: -0.018em;
309
+ }
310
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
311
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
312
+ display: inline-block;
313
+ width: 23.2%;
314
+ margin: 1em 2.3% 0 0;
315
+ vertical-align: top;
316
+ border-top: 1px solid var(--text-color); /* .colofo 顶线 */
317
+ border-bottom: none;
318
+ padding-top: 0.6em;
319
+ font-size: 0.5em; /* .ftxt 13px ÷26 */
320
+ line-height: 1.5;
321
+ }
322
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
323
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
324
+ display: none; /* colofo 无序号 */
325
+ }
326
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
327
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
328
+ font-family: var(--font-body);
329
+ font-size: 0.92em; /* .ftag 12px ÷26 ÷0.5 */
330
+ font-weight: 600;
331
+ letter-spacing: 0.16em;
332
+ text-transform: uppercase;
333
+ color: var(--text-color);
334
+ }
335
+
336
+ /* 1.6.9 chrome · pagenum:JetBrains Mono 13px .08em 右下,不大写 */
337
+ body.presenting .slide-chrome,
338
+ body.slides-printing .slide-chrome {
339
+ font-family: var(--slide-mono);
340
+ font-size: clamp(12px, 0.68vw, 13px);
341
+ letter-spacing: 0.08em;
342
+ text-transform: none;
343
+ color: var(--text-color);
344
+ }
345
+ body.presenting .slide-foot,
346
+ body.slides-printing .slide-foot {
347
+ font-family: var(--slide-mono);
348
+ font-size: clamp(11px, 0.6vw, 12px);
349
+ letter-spacing: 0.08em;
350
+ text-transform: none;
351
+ opacity: 0.75;
352
+ color: var(--text-color);
353
+ }
354
+
355
+ /* ═══════════════════════════════════════════════════════════
356
+ SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
357
+ ═══════════════════════════════════════════════════════════ */
358
+
359
+ #editor .cm-content {
360
+ font-family: var(--font-body);
361
+ line-height: 1.75;
362
+ }
363
+
364
+ /* ── 2.1 Headings ── */
365
+ #editor .cm-content .cm-md-atxheading1,
366
+ #editor .cm-content .cm-md-atxheading2,
367
+ #editor .cm-content .cm-md-atxheading3,
368
+ #editor .cm-content .cm-md-atxheading4,
369
+ #editor .cm-content .cm-md-atxheading5,
370
+ #editor .cm-content .cm-md-atxheading6 {
371
+ font-family: "Instrument Serif", "Noto Serif SC", serif;
372
+ color: var(--text-color);
373
+ font-weight: 400; /* Instrument Serif 仅 400,模板即常规体 */
374
+ line-height: 1.1;
375
+ letter-spacing: -0.012em;
376
+ }
377
+
378
+ #editor .cm-content .cm-md-atxheading1 {
379
+ font-size: 2.7em;
380
+ line-height: 1.05;
381
+ letter-spacing: -0.018em;
382
+ }
383
+ #editor .cm-content .cm-md-atxheading2 {
384
+ font-size: 2.1em;
385
+ line-height: 1.08;
386
+ }
387
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.6em; }
388
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.3em; }
389
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.12em; }
390
+ #editor .cm-content .cm-md-atxheading6 {
391
+ font-size: 1em;
392
+ font-family: var(--font-body);
393
+ font-weight: 600;
394
+ letter-spacing: 0.18em; /* 模板 micro-label 眉标 */
395
+ text-transform: uppercase;
396
+ }
397
+
398
+ /* ── 2.2 Inline ── */
399
+ #editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 600; }
400
+ #editor .cm-content .cm-md-em { font-style: italic; }
401
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
402
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
403
+ #editor .cm-content .cm-md-link { color: var(--link-color); }
404
+ #editor .cm-content .cm-md-url { color: var(--text-muted); }
405
+
406
+ #editor .cm-content .cm-md-inlinecode {
407
+ font-family: var(--font-mono);
408
+ background: var(--code-bg);
409
+ color: var(--text-color);
410
+ border-radius: 0; /* 模板:零圆角 */
411
+ }
412
+
413
+ #editor .cm-content .cm-md-marker,
414
+ #editor .cm-content .cm-md-quotemark,
415
+ #editor .cm-content .cm-md-listmark {
416
+ color: var(--text-muted);
417
+ }
418
+
419
+ /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
420
+ 引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
421
+ 否则引用里的代码行会盖住代码块底色。 */
422
+ #editor .cm-content .cm-md-blockquote {
423
+ color: var(--text-secondary);
424
+ border-left: 1px solid var(--blockquote-border); /* 模板:1px ink 细线 */
425
+ padding-left: 16px;
426
+ padding-right: 16px;
427
+ }
428
+
429
+ #editor .cm-content .cm-md-codeblock {
430
+ background: var(--code-block-bg);
431
+ color: var(--code-block-text);
432
+ padding-left: 16px;
433
+ padding-right: 16px;
434
+ }
435
+ #editor .cm-content .cm-md-codeblock-first {
436
+ border-top-left-radius: 6px;
437
+ border-top-right-radius: 6px;
438
+ }
439
+ #editor .cm-content .cm-md-codeblock-last {
440
+ border-bottom-left-radius: 6px;
441
+ border-bottom-right-radius: 6px;
442
+ }
443
+
444
+ /* ── 2.4 Table / Rule(模板:行式细线表格,th = micro-label)── */
445
+ #editor .cm-content .cm-md-table-widget th,
446
+ #editor .cm-content .cm-md-table-widget td {
447
+ padding: 10px 14px;
448
+ border-color: rgba(27, 37, 102, 0.2);
449
+ }
450
+ #editor .cm-content .cm-md-table-widget th {
451
+ background: var(--table-header-bg);
452
+ color: var(--text-color);
453
+ font-family: var(--font-body);
454
+ font-size: 0.78em;
455
+ font-weight: 600;
456
+ letter-spacing: 0.18em; /* 模板 micro-label 表头 */
457
+ text-transform: uppercase;
458
+ border-bottom: 1px solid var(--seed-border-strong);
459
+ }
460
+ #editor .cm-content .cm-md-hr { border-top-color: var(--seed-border-strong); }
461
+
462
+ /* ── 2.5 中文首行缩进 ──
463
+ CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
464
+ #editor .cm-content .cm-line { text-indent: 2em; }
465
+
466
+ #editor .cm-content .cm-md-atxheading1,
467
+ #editor .cm-content .cm-md-atxheading2,
468
+ #editor .cm-content .cm-md-atxheading3,
469
+ #editor .cm-content .cm-md-atxheading4,
470
+ #editor .cm-content .cm-md-atxheading5,
471
+ #editor .cm-content .cm-md-atxheading6,
472
+ #editor .cm-content .cm-md-blockquote,
473
+ #editor .cm-content .cm-md-codeblock,
474
+ #editor .cm-content .cm-md-hr,
475
+ #editor .cm-content .cm-md-mermaid,
476
+ #editor .cm-content .cm-md-li-0,
477
+ #editor .cm-content .cm-md-li-1,
478
+ #editor .cm-content .cm-md-li-2,
479
+ #editor .cm-content .cm-md-li-3,
480
+ #editor .cm-content .cm-md-li-4,
481
+ #editor .cm-content .cm-md-li-5,
482
+ #editor .cm-content .cm-md-li-6 {
483
+ text-indent: 0;
484
+ }
485
+
486
+ /* ═══════════════════════════════════════════════════════════
487
+ SECTION 3 — Exported HTML(.colamd-document,语义标签)
488
+ HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
489
+ ═══════════════════════════════════════════════════════════ */
490
+
491
+ .colamd-document {
492
+ font-family: var(--font-body);
493
+ font-size: 16px;
494
+ line-height: 1.75;
495
+ }
496
+
497
+ .colamd-document h1,
498
+ .colamd-document h2,
499
+ .colamd-document h3,
500
+ .colamd-document h4,
501
+ .colamd-document h5,
502
+ .colamd-document h6 {
503
+ font-family: "Instrument Serif", "Noto Serif SC", serif;
504
+ color: var(--text-color);
505
+ font-weight: 400;
506
+ line-height: 1.1;
507
+ letter-spacing: -0.012em;
508
+ margin: 1.5em 0 0.5em;
509
+ }
510
+ .colamd-document h1 { font-size: 2.7em; line-height: 1.05; letter-spacing: -0.018em; margin-top: 0.4em; }
511
+ .colamd-document h2 { font-size: 2.1em; line-height: 1.08; }
512
+ .colamd-document h3 { font-size: 1.6em; }
513
+ .colamd-document h4 { font-size: 1.3em; }
514
+ .colamd-document h5 { font-size: 1.12em; }
515
+ .colamd-document h6 {
516
+ font-size: 1em;
517
+ font-family: var(--font-body);
518
+ font-weight: 600;
519
+ letter-spacing: 0.18em;
520
+ text-transform: uppercase;
521
+ }
522
+
523
+ .colamd-document strong { color: var(--text-color); font-weight: 600; }
524
+ .colamd-document code {
525
+ background: var(--code-bg);
526
+ color: var(--text-color);
527
+ font-family: var(--font-mono);
528
+ border-radius: 0;
529
+ }
530
+ /* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
531
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
532
+ .colamd-document pre { background: var(--code-block-bg); }
533
+ .colamd-document pre code { color: var(--code-block-text); }
534
+ .colamd-document blockquote {
535
+ background: var(--blockquote-bg);
536
+ color: var(--text-secondary);
537
+ border-left: 1px solid var(--blockquote-border);
538
+ padding: 0.5em 1.2em;
539
+ }
540
+ .colamd-document mark { background: var(--highlight-bg); }
541
+ .colamd-document th,
542
+ .colamd-document td {
543
+ border-color: rgba(27, 37, 102, 0.2);
544
+ padding: 10px 14px;
545
+ }
546
+ .colamd-document th {
547
+ background: var(--table-header-bg);
548
+ font-size: 0.78em;
549
+ font-weight: 600;
550
+ letter-spacing: 0.18em;
551
+ text-transform: uppercase;
552
+ border-bottom: 1px solid var(--seed-border-strong);
553
+ }
554
+ .colamd-document hr { border-top-color: var(--seed-border-strong); }
555
+
556
+ .colamd-document p { text-indent: 2em; }
557
+ .colamd-document li p,
558
+ .colamd-document td p,
559
+ .colamd-document th p,
560
+ .colamd-document blockquote p {
561
+ text-indent: 0;
562
+ }
563
+
564
+ /* ═══════════════════════════════════════════════════════════
565
+ SECTION 4 — Print
566
+ 应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
567
+ ═══════════════════════════════════════════════════════════ */
568
+
569
+ @media print {
570
+ html,
571
+ body {
572
+ background: var(--bg-color);
573
+ color: var(--text-color);
574
+ -webkit-print-color-adjust: exact;
575
+ print-color-adjust: exact;
576
+ }
577
+ }