@bytechain.cn/colamd-themes 0.6.0 → 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 (39) hide show
  1. package/README.md +22 -4
  2. package/package.json +1 -1
  3. package/skills/colamd-themes/SKILL.md +86 -1
  4. package/themes/8-bit-orbit.css +817 -0
  5. package/themes/README.md +69 -0
  6. package/themes/biennale-yellow.css +577 -0
  7. package/themes/block-frame.css +774 -0
  8. package/themes/blue-professional.css +741 -0
  9. package/themes/bold-poster.css +794 -0
  10. package/themes/broadside.css +837 -0
  11. package/themes/capsule.css +767 -0
  12. package/themes/cartesian.css +584 -0
  13. package/themes/cobalt-grid.css +632 -0
  14. package/themes/coral.css +699 -0
  15. package/themes/creative-mode.css +642 -0
  16. package/themes/daisy-days.css +1052 -0
  17. package/themes/editorial-forest.css +796 -0
  18. package/themes/editorial-tri-tone.css +811 -0
  19. package/themes/emerald-editorial.css +683 -0
  20. package/themes/grove.css +623 -0
  21. package/themes/long-table.css +782 -0
  22. package/themes/mat.css +848 -0
  23. package/themes/monochrome.css +782 -0
  24. package/themes/neo-grid-bold.css +838 -0
  25. package/themes/peoples-platform.css +843 -0
  26. package/themes/pin-and-paper.css +700 -0
  27. package/themes/pink-script-dark.css +648 -0
  28. package/themes/pink-script.css +290 -0
  29. package/themes/playful.css +774 -0
  30. package/themes/raw-grid.css +814 -0
  31. package/themes/retro-windows.css +767 -0
  32. package/themes/retro-zine.css +814 -0
  33. package/themes/sakura-chroma.css +775 -0
  34. package/themes/scatterbrain.css +726 -0
  35. package/themes/signal.css +872 -0
  36. package/themes/soft-editorial.css +788 -0
  37. package/themes/stencil-tablet.css +922 -0
  38. package/themes/studio.css +767 -0
  39. package/themes/vellum.css +723 -0
@@ -0,0 +1,642 @@
1
+ /*
2
+ * ColaMD Theme: Creative Mode(创意模式 · 新粗野主义 · 手工精修逐页版式复刻版)
3
+ * Cream 纸面 + 4px 墨框 + 硬偏移投影 + 四色高饱和撞色(green/pink/orange/yellow),
4
+ * Archivo Black 大写紧排 display + JetBrains Mono 技术标签 + Space Grotesk 正文。
5
+ * 来源:D:\workspace\git\beautiful-html-templates\templates\creative-mode\template.html
6
+ * + design.md + template.json(1920×1080 八页 neo-brutalist deck)
7
+ * colors: cream #EFE9D9 / cream-2 #E4DCC4 / ink #0F0F0F / ink-2 #2A2A2A
8
+ * green #1F8A4C / green-dark #136636 / pink #F06CA8 / orange #E85A1F
9
+ * yellow #F5C518
10
+ * fonts: Archivo Black(display,仅 400,大写锁)/ JetBrains Mono(标签 chrome)
11
+ * Space Grotesk(正文);CJK 落 Noto Sans SC(design.md Strategy A)
12
+ *
13
+ * paradigm 备案(模板刻意身份,有意保留,validate exit 1 属预期):
14
+ * SL-01 —— 底色 cream #EFE9D9 HSL 饱和度 40.7% > 5%:暖纸黄调是模板唯一
15
+ * 画布色(八页无一例外),高明度(L 89%)下感知为中性暖纸;
16
+ * 与 biennale-yellow / pin-and-paper 的黄纸备案同类。
17
+ * SL-02 —— panel #E4DCC4 37.2% / panelAlt #CDC8BB 15.3% > 10%:均为 cream
18
+ * 同族降档纸面(表格底/代码底),模板 cream-2 即此色,不改。
19
+ * NT-01 —— 四色离轴并置(green 150° / pink 330° / orange 20° / yellow 45°)
20
+ * 是模板的设计语言("四色撞色即设计");契约只有一个 accent 位,
21
+ * seed 层只收 green 主轴 + yellow 高亮,pink/orange 仅存在于色块
22
+ * 装饰(本主题未复刻的逐格填充),永不入文字色。
23
+ * CR-04 —— seed-accent green 对 cream 3.64:1:green 只做色块/边框/Pele 条形,
24
+ * 文字强调走 --link-color = green-dark #136636(5.8:1 过线)。
25
+ * 生成版 link=yellow(1.35:1 不可读)已修复。
26
+ * CR-02 —— 收页 green 满页上 cream 文字 3.64:1:标题 220px / strap 32px /
27
+ * chrome 24px 均属 WCAG large-text(3:1 过线);模板 .s8 身份即
28
+ * green 满页,按原样保留。
29
+ * 生成版修复(§3 文档层):h1-h6 爆字号 4.12em 阶梯 → 常规阶梯;Archivo Black
30
+ * 字重 700 → 400(仅 400 一档,§6-7);--editor-font-size 34px → 17px;
31
+ * ink-muted/ink-dim 重复 #666 → ink-2 #2A2A2A / #5A5A5A 分档;strong
32
+ * yellow → 正文墨色;标题下划线移除(模板标题无边线)。
33
+ *
34
+ * 版式复刻见 SECTION 1.5/1.6(八页逐页对照、换算式与未复刻清单均在其注释中)。
35
+ *
36
+ * 契约:ColaMD 2.7.13(CodeMirror 6 编辑器 + Pele 图表引擎 + 幻灯片版式)
37
+ *
38
+ * 两条硬规矩:
39
+ * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
40
+ * 编辑器继承不到。
41
+ * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
42
+ * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
43
+ * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
44
+ *
45
+ * ═══════════════════════════════════════════════════════════
46
+ * SECTION 1 — Design Tokens
47
+ * 改 11 个种子色 + 3 组字体即可换一套主题
48
+ * ═══════════════════════════════════════════════════════════ */
49
+
50
+ :root {
51
+
52
+ /* ── 1.1 Seed Palette ──
53
+ 本工具的再生成与校验读这一层;编辑器不消费。
54
+ 明度排序(SL-04 亮色范式):surface 0.82 > panel 0.72 > panelAlt 0.58;
55
+ 四 accent 明度 green 0.19 < yellow 0.59(同族升档)。 */
56
+ --seed-accent: #1f8a4c; /* green —— 模板主 accent(满页收页/面板/条形) */
57
+ --seed-accent-light: #f5c518; /* yellow —— 暖 punct 色(荧光/装饰圆) */
58
+ --seed-accent-dark: #136636; /* green-dark —— 文字级强调档(cream 上 5.8:1) */
59
+ --seed-surface: #efe9d9; /* cream —— 全 deck 纸面 */
60
+ --seed-panel: #e4dcc4; /* cream-2 —— 表格底/引用面板 */
61
+ --seed-panel-alt: #cdc8bb; /* 代码块降档纸面(SL-04) */
62
+ --seed-ink: #0f0f0f; /* ink —— 边框/正文/规则线 */
63
+ --seed-ink-muted: #2a2a2a; /* ink-2 —— 次要正文 */
64
+ --seed-ink-dim: #5a5a5a; /* 辅助文字(cream 上 5.7:1) */
65
+ --seed-border: #0f0f0f; /* 模板:4px/3px solid ink 边框体系 */
66
+ --seed-border-strong: #0f0f0f;
67
+
68
+ /* ── 1.2 Semantic Colors(活变量)── */
69
+ --bg-color: var(--seed-surface);
70
+ --text-color: var(--seed-ink);
71
+ --text-secondary: var(--seed-ink-muted);
72
+ --text-muted: var(--seed-ink-dim);
73
+ --border-color: var(--seed-border);
74
+ /* 模板 green-dark(5.8:1);green 原色只承担色块(CR-04 备案见文件头) */
75
+ --link-color: #136636;
76
+
77
+ --code-bg: var(--seed-panel);
78
+ --code-block-bg: var(--seed-panel-alt);
79
+ --code-block-text: #0f0f0f;
80
+
81
+ --blockquote-border: var(--seed-ink); /* neo-brutalist 4px 墨轨 */
82
+ --blockquote-bg: var(--seed-panel); /* cream-2 面板 */
83
+ --table-header-bg: #0f0f0f; /* 模板 .head:ink 表头 cream 字 */
84
+
85
+ --selection-bg: rgba(245, 197, 24, 0.4);
86
+ --highlight-bg: #f5c518; /* yellow 荧光笔(ink 字 11.7:1) */
87
+
88
+ /* ── 1.3 Typography & Metrics(活变量)── */
89
+ --font-body: "Space Grotesk", "Noto Sans SC", sans-serif;
90
+ --font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
91
+ --editor-font-size: 17px;
92
+ --editor-column-width: 820px;
93
+
94
+ /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
95
+ 图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。 */
96
+ --pele-bg: var(--code-block-bg);
97
+ --pele-fg: var(--code-block-text);
98
+ --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
99
+ --pele-line: var(--code-block-text);
100
+ --pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
101
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
102
+ --pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
103
+ --pele-accent: var(--seed-accent); /* 模板条形图 green 主色 */
104
+ --pele-radius: 0px; /* 模板:零圆角(唯一例外是 chrome pill) */
105
+ }
106
+
107
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 creative-mode 八页逐页复刻)──
108
+ 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
109
+ 模板 1920 画布 px ÷ 26 = em(clamp 取 1920×1080 实际落点);行内元素先定
110
+ li 基准(说明文字 ÷26)再对行题/序号除以 li 缩放补偿。字体体系:
111
+ Archivo Black 400(display,大写锁 -.01em / .92 行高)/ JetBrains Mono
112
+ (chrome+kicker 24px)/ Space Grotesk(正文)。页面对照:
113
+ cover←P1 section←P2 kpi←P3 figure←P4 steps←P6 closing←P8(green 满页)
114
+ (P5 条形图 / P7 对照表与 figure 同形不单列——表格形态由 SECTION 2.4 的
115
+ ink 表头 + cream-2 表底承担;agenda/timeline/quote/matrix/two-col 无对应
116
+ 页保持上游默认,--slide-quote-size 不设。)
117
+ 未复刻(绝对定位装饰,行式 DOM 无挂点):P1 海报开关与双行双色标题、
118
+ P2 PRESS PLAY 粉块 + 绿方黄圆、P3 四格逐格异色(green/pink/cream/orange
119
+ 填充,行式 DOM 无法按 nth 稳定定位)、P4 iso 堆叠块与图例色板、P5 坐标轴
120
+ 与条形、P6 卡间箭头、P7 旋转贴纸、P8 斜置印章;chrome pill 徽章与 meta
121
+ 墨点分隔。能近似者:P4 图卡 → Pele 托 cream-2 底 + 4px 墨框 + 18px 硬投影;
122
+ P6 header-line 虚线 → 页题底线近似。 */
123
+ :root {
124
+ --slide-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
125
+ --slide-title-font: "Archivo Black", "Noto Sans SC", sans-serif;
126
+ --slide-title-size: 3.23em; /* 内容页题 84px(display-sm)÷26 */
127
+ --slide-title-weight: 400; /* Archivo Black 仅 400(§6-7) */
128
+ --slide-subhead-weight: 400;
129
+ --slide-title-tracking: -0.01em; /* .display -.01em */
130
+ --slide-title-line-height: 0.92; /* display 紧排 .92(大写锁) */
131
+ --slide-cover-title-size: 6.15em; /* P1 .title 160px ÷26 */
132
+ --slide-cover-title-line-height: 0.92;
133
+ --slide-cover-title-tracking: -0.01em;
134
+ --slide-section-title-size: 5.38em; /* P2 .h 140px ÷26 */
135
+ --slide-closing-title-size: 8.46em; /* P8 .h 220px ÷26 */
136
+ --slide-lead-size: 1.08em; /* .body-col 28px ÷26 */
137
+ --slide-kicker-size: clamp(12px, 1.25vw, 24px); /* .kicker 24px @1920 */
138
+ --slide-kicker-tracking: 0.14em; /* .kicker .14em */
139
+ --slide-kicker-transform: uppercase;
140
+ --slide-chrome-opacity: 1; /* topbar/meta 全墨不淡出 */
141
+ --slide-chrome-transform: uppercase;
142
+ --slide-kpi-number-size: 4.01em; /* P3 .num 96px ÷26 ÷0.92(li) */
143
+ --slide-page-pad-x: 5vw; /* 内容沟距 96px @1920 */
144
+ --slide-page-top-pad: 90px; /* 内容顶 96px − chrome 安全区 */
145
+ --slide-page-top-pad-print: 80px;
146
+ --slide-cover-text-align: left; /* P1 标题左对齐(垂直居中) */
147
+ --slide-cover-lead-inline: auto;
148
+ }
149
+
150
+ /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
151
+ body.presenting / body.slides-printing 作用域) ═══════════════ */
152
+
153
+ /* 1.6.1 页标题声部对齐:Archivo Black 400 大写紧排墨色;并压掉文档式 h1/h2
154
+ 的 border-bottom(编辑器规则带 id 权重会漏进放映,陷阱3) */
155
+ body.presenting #editor .cm-content .cm-md-page-title,
156
+ body.slides-printing #editor .cm-content .cm-md-page-title {
157
+ font-family: var(--slide-title-font);
158
+ font-size: var(--slide-title-size);
159
+ font-weight: 400;
160
+ line-height: 0.92;
161
+ letter-spacing: -0.01em;
162
+ text-transform: uppercase; /* display 大写锁(Hanzi 无害) */
163
+ color: var(--text-color);
164
+ border-bottom: none;
165
+ padding-bottom: 0;
166
+ margin-bottom: 0.45em;
167
+ }
168
+
169
+ /* 1.6.2 cover · P1(poster):标题 160px 垂直居中左对齐;mono tagline .16em
170
+ (前置短横线 span 与右栏海报开关为绝对定位装饰——未复刻;"MODE 橙"双行
171
+ 双色为模板排版,单行 DOM 不复刻);footnote 24px ink-2 */
172
+ body.presenting #editor[data-slide-layout='cover'] .cm-content {
173
+ justify-content: center;
174
+ }
175
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
176
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title {
177
+ font-size: var(--slide-cover-title-size);
178
+ line-height: 0.92;
179
+ letter-spacing: -0.01em;
180
+ max-width: 6em; /* .title width 900px @160px */
181
+ }
182
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
183
+ body.slides-printing .cm-md-slide-cover .cm-md-page-title[data-slide-kicker]::before {
184
+ letter-spacing: 0.16em; /* .tagline .16em */
185
+ }
186
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
187
+ body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
188
+ font-size: 0.92em; /* .footnote 24px ÷26 */
189
+ line-height: 1.4;
190
+ color: var(--text-secondary); /* ink-2 */
191
+ max-width: 27em; /* footnote max-width 640px @24px */
192
+ }
193
+
194
+ /* 1.6.3 section · P2(chapter opener):kicker 反白墨块(ink 底 cream 字
195
+ .14em);标题 140px;导语 28px ink-1.4(PRESS PLAY 粉块与绿方黄圆未复刻) */
196
+ body.presenting #editor .cm-content .cm-md-slide-section .cm-md-page-title,
197
+ body.slides-printing .cm-md-slide-section.cm-md-page-title {
198
+ font-size: var(--slide-section-title-size);
199
+ max-width: 6em; /* .h right:1000px @140px */
200
+ }
201
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
202
+ body.slides-printing .cm-md-slide-section .cm-md-page-title[data-slide-kicker]::before {
203
+ background: var(--seed-ink); /* .kicker 反白墨块 */
204
+ color: var(--seed-surface);
205
+ letter-spacing: 0.14em;
206
+ padding: 0.12em 0.4em;
207
+ }
208
+ body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
209
+ body.slides-printing .cm-md-slide-section.cm-md-page-lead {
210
+ font-size: 1.08em; /* .body-col 28px ÷26 */
211
+ line-height: 1.4;
212
+ color: var(--text-secondary);
213
+ max-width: 32ch;
214
+ }
215
+
216
+ /* 1.6.4 kpi · P3(stat grid 2×2):页题 72px;四格 = 4px 墨框透明卡(c3 奶油
217
+ 格形态;逐格异色填充未复刻);裸排大数字 96px(.9 行高);mono 角标 /01 =
218
+ listmark;mono 标签行与 desc 在行式 DOM 中合流为行说明 */
219
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-page-title,
220
+ body.slides-printing .cm-md-slide-kpi.cm-md-page-title {
221
+ font-size: 2.77em; /* .h 72px ÷26 */
222
+ line-height: 0.95;
223
+ }
224
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
225
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
226
+ display: inline-block;
227
+ width: 47%;
228
+ margin: 0 2% 1.2em 0; /* 2×2:47+2=49%×2 留白兜底 */
229
+ vertical-align: top;
230
+ background: transparent;
231
+ border: 4px solid var(--seed-ink); /* .cell 4px ink */
232
+ border-radius: 0;
233
+ box-shadow: none;
234
+ padding: 1.17em 1.23em; /* 28px 32px ÷26 ÷0.92 */
235
+ font-size: 0.92em; /* .desc 24px ÷26 */
236
+ list-style: none;
237
+ }
238
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-listmark,
239
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-listmark {
240
+ font-family: var(--slide-mono);
241
+ font-size: 1em; /* .corner 24px ÷26 ÷0.92 */
242
+ letter-spacing: 0.1em;
243
+ color: var(--text-color);
244
+ }
245
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
246
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
247
+ font-size: var(--slide-kpi-number-size); /* 96px ÷26 ÷0.92 */
248
+ font-weight: 400;
249
+ line-height: 0.9;
250
+ letter-spacing: 0;
251
+ color: var(--text-color);
252
+ }
253
+
254
+ /* 1.6.5 figure · P4(iso diagram):左栏标题 100px + 导语 24px ink-2;右栏
255
+ 绿色 iso 面板为绝对定位装饰——未复刻;Pele 图卡近似版式面板:cream-2 托底
256
+ + 4px 墨框 + 18px 硬投影(.blk 18px 18px 0 ink)。P5 条形图 / P7 对照表
257
+ 同形不单列(坐标轴/条形/图例/图注为模板专用 DOM;表格形态由 SECTION 2.4
258
+ 承担:ink 表头 cream 字 + cream-2 表底) */
259
+ body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-page-title,
260
+ body.slides-printing .cm-md-slide-figure.cm-md-page-title {
261
+ font-size: 3.85em; /* .h 100px ÷26 */
262
+ max-width: 9.2em; /* .h right:900px @100px */
263
+ }
264
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-lead,
265
+ body.slides-printing .cm-md-slide-figure.cm-md-page-lead {
266
+ font-size: 0.92em; /* .sub 24px ÷26 */
267
+ line-height: 1.45;
268
+ color: var(--text-secondary);
269
+ }
270
+ body.presenting #editor .cm-content svg.pele,
271
+ body.slides-printing #editor .cm-content svg.pele {
272
+ background: var(--seed-panel);
273
+ border: 4px solid var(--seed-ink);
274
+ border-radius: 0;
275
+ box-shadow: 18px 18px 0 var(--seed-ink); /* .blk 硬偏移投影 */
276
+ }
277
+
278
+ /* 1.6.6 steps · P6(process flow):页题 96px + 3px 虚线分隔(.header-line
279
+ 以页题底线近似);四列 4px 墨框卡(s-1 奶油形态;s-2/3/4 逐卡异色与卡间
280
+ 箭头未复刻);AB 序号 140px(.85 行高)+ 卡题 34px 大写 + 说明 24px ink-2 */
281
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-page-title,
282
+ body.slides-printing .cm-md-slide-steps.cm-md-page-title {
283
+ font-size: 3.69em; /* .h 96px ÷26 */
284
+ border-bottom: 3px dashed var(--seed-ink); /* .header-line 3px dashed ink */
285
+ padding-bottom: 0.35em;
286
+ }
287
+ body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
288
+ body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
289
+ display: inline-block;
290
+ width: 22.5%;
291
+ margin: 0 1.5% 1.2em 0; /* 四列:22.5+1.5=24%×4=96% */
292
+ vertical-align: top;
293
+ background: transparent;
294
+ border: 4px solid var(--seed-ink); /* .step 4px ink */
295
+ border-radius: 0;
296
+ box-shadow: none;
297
+ padding: 1.17em; /* .step 28px ÷26 ÷0.92 */
298
+ font-size: 0.92em; /* .d 24px ÷26 */
299
+ color: var(--text-secondary); /* .d ink-2 */
300
+ list-style: none;
301
+ }
302
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
303
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
304
+ display: inline;
305
+ font-family: var(--slide-title-font);
306
+ font-weight: 400;
307
+ font-size: 5.85em; /* .n 140px ÷26 ÷0.92 */
308
+ line-height: 0.85;
309
+ letter-spacing: 0;
310
+ color: var(--text-color);
311
+ margin-right: 0.15em;
312
+ }
313
+ body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
314
+ body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
315
+ display: block;
316
+ border: none;
317
+ border-radius: 0;
318
+ background: transparent;
319
+ padding: 0;
320
+ min-width: 0;
321
+ font-family: var(--slide-title-font);
322
+ font-size: 1.42em; /* .t 34px ÷26 ÷0.92 */
323
+ font-weight: 400;
324
+ line-height: 1;
325
+ letter-spacing: 0;
326
+ text-transform: uppercase;
327
+ color: var(--text-color);
328
+ }
329
+
330
+ /* 1.6.7 closing · P8(big mark,green 满页):原页面底色 = --green 整页
331
+ (.s8 background green)——底色打满整条层叠链(陷阱1:只挂 body 会被平台
332
+ 给 #editor 画的 cream 底反盖);文字与 chrome 全 cream 声部;strap 32px;
333
+ 斜置印章为绝对定位装饰未复刻。cream-on-green 3.64:1 属 large-text 过线
334
+ (文件头 CR-02 备案) */
335
+ body.presenting:has(#editor[data-slide-layout='closing']),
336
+ body.slides-printing:has(.cm-md-slide-closing) {
337
+ background: var(--seed-accent); /* --green #1F8A4C */
338
+ }
339
+ body.presenting #editor[data-slide-layout='closing'],
340
+ body.slides-printing:has(.cm-md-slide-closing) #editor,
341
+ body.presenting #editor[data-slide-layout='closing'] .cm-editor,
342
+ body.presenting #editor[data-slide-layout='closing'] .cm-scroller,
343
+ body.presenting #editor[data-slide-layout='closing'] .cm-content,
344
+ body.slides-printing:has(.cm-md-slide-closing) .cm-editor,
345
+ body.slides-printing:has(.cm-md-slide-closing) .cm-scroller,
346
+ body.slides-printing:has(.cm-md-slide-closing) .cm-content {
347
+ background: var(--seed-accent);
348
+ }
349
+ body.presenting #editor[data-slide-layout='closing'] .cm-content,
350
+ body.slides-printing .cm-md-slide-closing .cm-md-page-title ~ * {
351
+ color: var(--seed-surface); /* cream 文字声部 */
352
+ }
353
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title,
354
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title {
355
+ font-size: var(--slide-closing-title-size); /* .h 220px ÷26 */
356
+ line-height: 0.92;
357
+ letter-spacing: -0.01em;
358
+ color: var(--seed-surface);
359
+ max-width: 6em; /* .h right:700px @220px */
360
+ }
361
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-lead,
362
+ body.slides-printing .cm-md-slide-closing.cm-md-page-lead {
363
+ font-size: 1.23em; /* .strap 32px ÷26 */
364
+ line-height: 1.4;
365
+ }
366
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
367
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
368
+ border-top: 3px solid var(--seed-surface); /* cream 顶线(模板 P8 无清单,
369
+ 按 chrome 3px 线体系弱化承担) */
370
+ border-bottom: none;
371
+ padding: 0.6em 0;
372
+ margin: 0;
373
+ color: var(--seed-surface);
374
+ }
375
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
376
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
377
+ color: var(--seed-surface);
378
+ }
379
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
380
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
381
+ color: var(--seed-surface);
382
+ }
383
+ /* 同色隐形(陷阱2):ghost 页码 = ink 声部落 green 页脏读 → 整页隐藏 */
384
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-ghost,
385
+ body.slides-printing:has(.cm-md-slide-closing) .slide-ghost {
386
+ opacity: 0;
387
+ }
388
+ /* 换底页表格:td 换纸面 cream(th 自带 ink 底不受影响) */
389
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-table-widget td,
390
+ body.slides-printing:has(.cm-md-slide-closing) .cm-content .cm-md-table-widget td {
391
+ color: var(--seed-surface);
392
+ background: transparent;
393
+ }
394
+ body.presenting [data-slide-layout='closing'] .slide-chrome,
395
+ body.slides-printing [data-slide-layout='closing'] .slide-chrome,
396
+ body.presenting [data-slide-layout='closing'] .slide-foot,
397
+ body.slides-printing [data-slide-layout='closing'] .slide-foot {
398
+ color: var(--seed-surface);
399
+ }
400
+
401
+ /* 1.6.8 chrome · topbar/meta:JetBrains Mono 24px 大写(.topbar .08em /
402
+ .slide-meta .06em);pill 徽章与墨点分隔为 chrome 装饰——未复刻 */
403
+ body.presenting .slide-chrome,
404
+ body.slides-printing .slide-chrome {
405
+ font-family: var(--slide-mono);
406
+ font-size: clamp(12px, 1.25vw, 24px); /* .topbar 24px @1920 */
407
+ letter-spacing: 0.08em;
408
+ text-transform: uppercase;
409
+ color: var(--text-color);
410
+ }
411
+ body.presenting .slide-foot,
412
+ body.slides-printing .slide-foot {
413
+ font-family: var(--slide-mono);
414
+ font-size: clamp(12px, 1.25vw, 24px); /* .slide-meta 24px @1920 */
415
+ letter-spacing: 0.06em;
416
+ text-transform: uppercase;
417
+ opacity: 1;
418
+ color: var(--text-color);
419
+ }
420
+
421
+ /* ═══════════════════════════════════════════════════════════
422
+ SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
423
+ ═══════════════════════════════════════════════════════════ */
424
+
425
+ #editor .cm-content {
426
+ font-family: var(--font-body);
427
+ line-height: 1.7;
428
+ }
429
+
430
+ /* ── 2.1 Headings(Archivo Black 大写锁;字重 400——display 仅 400 一档,
431
+ 生成版 700 为合成加粗错误)── */
432
+ #editor .cm-content .cm-md-atxheading1,
433
+ #editor .cm-content .cm-md-atxheading2,
434
+ #editor .cm-content .cm-md-atxheading3,
435
+ #editor .cm-content .cm-md-atxheading4,
436
+ #editor .cm-content .cm-md-atxheading5,
437
+ #editor .cm-content .cm-md-atxheading6 {
438
+ font-family: "Archivo Black", "Noto Sans SC", sans-serif;
439
+ color: var(--text-color);
440
+ font-weight: 400;
441
+ line-height: 1.1;
442
+ letter-spacing: -0.01em;
443
+ text-transform: uppercase;
444
+ }
445
+
446
+ #editor .cm-content .cm-md-atxheading1 { font-size: 2.6em; line-height: 1.05; }
447
+ #editor .cm-content .cm-md-atxheading2 { font-size: 2.1em; }
448
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.6em; }
449
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.3em; }
450
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.12em; }
451
+ #editor .cm-content .cm-md-atxheading6 {
452
+ font-size: 1em;
453
+ font-family: var(--font-mono); /* h6 = mono-label 眉标声部 */
454
+ font-weight: 400;
455
+ letter-spacing: 0.14em;
456
+ line-height: 1.4;
457
+ }
458
+
459
+ /* ── 2.2 Inline(strong 永远正文墨色,不用 accent——§5)── */
460
+ #editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 400; }
461
+ #editor .cm-content .cm-md-em { font-style: italic; }
462
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
463
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
464
+ #editor .cm-content .cm-md-link { color: var(--link-color); }
465
+ #editor .cm-content .cm-md-url { color: var(--text-muted); }
466
+
467
+ #editor .cm-content .cm-md-inlinecode {
468
+ font-family: var(--font-mono);
469
+ background: var(--code-bg);
470
+ color: var(--text-color);
471
+ border-radius: 0; /* 模板:零圆角 */
472
+ }
473
+
474
+ #editor .cm-content .cm-md-marker,
475
+ #editor .cm-content .cm-md-quotemark,
476
+ #editor .cm-content .cm-md-listmark {
477
+ color: var(--text-muted);
478
+ }
479
+
480
+ /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
481
+ 引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
482
+ 否则引用里的代码行会盖住代码块底色。 */
483
+ #editor .cm-content .cm-md-blockquote {
484
+ color: var(--text-secondary);
485
+ border-left: 4px solid var(--blockquote-border); /* neo-brutalist 墨轨 */
486
+ padding-left: 16px;
487
+ padding-right: 16px;
488
+ }
489
+
490
+ #editor .cm-content .cm-md-codeblock {
491
+ background: var(--code-block-bg);
492
+ color: var(--code-block-text);
493
+ border-radius: 0;
494
+ padding-left: 16px;
495
+ padding-right: 16px;
496
+ }
497
+
498
+ /* ── 2.4 Table / Rule(模板:4px ink 外框体系,ink 表头 cream 字,cream-2 表底)── */
499
+ #editor .cm-content .cm-md-table-widget th,
500
+ #editor .cm-content .cm-md-table-widget td {
501
+ padding: 10px 14px;
502
+ border-color: var(--seed-ink);
503
+ }
504
+ #editor .cm-content .cm-md-table-widget td {
505
+ background: var(--seed-panel); /* .table cream-2 底 */
506
+ }
507
+ #editor .cm-content .cm-md-table-widget th {
508
+ background: var(--table-header-bg); /* .head ink 底 */
509
+ color: var(--seed-surface); /* cream 字 */
510
+ font-family: "Archivo Black", "Noto Sans SC", sans-serif;
511
+ font-size: 0.85em;
512
+ font-weight: 400;
513
+ letter-spacing: 0;
514
+ text-transform: uppercase;
515
+ }
516
+ #editor .cm-content .cm-md-hr {
517
+ border-top: 3px solid var(--seed-ink); /* --rule = ink */
518
+ }
519
+
520
+ /* ── 2.5 中文首行缩进 ──
521
+ CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
522
+ #editor .cm-content .cm-line { text-indent: 2em; }
523
+
524
+ #editor .cm-content .cm-md-atxheading1,
525
+ #editor .cm-content .cm-md-atxheading2,
526
+ #editor .cm-content .cm-md-atxheading3,
527
+ #editor .cm-content .cm-md-atxheading4,
528
+ #editor .cm-content .cm-md-atxheading5,
529
+ #editor .cm-content .cm-md-atxheading6,
530
+ #editor .cm-content .cm-md-blockquote,
531
+ #editor .cm-content .cm-md-codeblock,
532
+ #editor .cm-content .cm-md-hr,
533
+ #editor .cm-content .cm-md-mermaid,
534
+ #editor .cm-content .cm-md-li-0,
535
+ #editor .cm-content .cm-md-li-1,
536
+ #editor .cm-content .cm-md-li-2,
537
+ #editor .cm-content .cm-md-li-3,
538
+ #editor .cm-content .cm-md-li-4,
539
+ #editor .cm-content .cm-md-li-5,
540
+ #editor .cm-content .cm-md-li-6 {
541
+ text-indent: 0;
542
+ }
543
+
544
+ /* ═══════════════════════════════════════════════════════════
545
+ SECTION 3 — Exported HTML(.colamd-document,语义标签)
546
+ HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
547
+ ═══════════════════════════════════════════════════════════ */
548
+
549
+ .colamd-document {
550
+ font-family: var(--font-body);
551
+ font-size: var(--editor-font-size);
552
+ line-height: 1.7;
553
+ }
554
+
555
+ .colamd-document h1,
556
+ .colamd-document h2,
557
+ .colamd-document h3,
558
+ .colamd-document h4,
559
+ .colamd-document h5,
560
+ .colamd-document h6 {
561
+ font-family: "Archivo Black", "Noto Sans SC", sans-serif;
562
+ color: var(--text-color);
563
+ font-weight: 400;
564
+ line-height: 1.1;
565
+ letter-spacing: -0.01em;
566
+ text-transform: uppercase;
567
+ margin: 1.4em 0 0.5em;
568
+ }
569
+ .colamd-document h1 { font-size: 2.6em; line-height: 1.05; margin-top: 0.4em; }
570
+ .colamd-document h2 { font-size: 2.1em; }
571
+ .colamd-document h3 { font-size: 1.6em; }
572
+ .colamd-document h4 { font-size: 1.3em; }
573
+ .colamd-document h5 { font-size: 1.12em; }
574
+ .colamd-document h6 {
575
+ font-size: 1em;
576
+ font-family: var(--font-mono);
577
+ font-weight: 400;
578
+ letter-spacing: 0.14em;
579
+ line-height: 1.4;
580
+ }
581
+
582
+ .colamd-document strong { color: var(--text-color); font-weight: 400; }
583
+ .colamd-document code {
584
+ background: var(--code-bg);
585
+ color: var(--text-color);
586
+ font-family: var(--font-mono);
587
+ border-radius: 0;
588
+ }
589
+ /* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
590
+ .colamd-document svg.pele {
591
+ background: var(--pele-bg);
592
+ border: 4px solid var(--seed-ink);
593
+ border-radius: var(--pele-radius);
594
+ box-shadow: 18px 18px 0 var(--seed-ink);
595
+ }
596
+ .colamd-document pre { background: var(--code-block-bg); border-radius: 0; }
597
+ .colamd-document pre code { color: var(--code-block-text); }
598
+ .colamd-document blockquote {
599
+ background: var(--blockquote-bg);
600
+ color: var(--text-secondary);
601
+ border-left: 4px solid var(--blockquote-border);
602
+ padding: 0.5em 1.2em;
603
+ }
604
+ .colamd-document mark { background: var(--highlight-bg); }
605
+ .colamd-document th,
606
+ .colamd-document td {
607
+ padding: 10px 14px;
608
+ border-color: var(--seed-ink);
609
+ }
610
+ .colamd-document td { background: var(--seed-panel); }
611
+ .colamd-document th {
612
+ background: var(--table-header-bg);
613
+ color: var(--seed-surface);
614
+ font-family: "Archivo Black", "Noto Sans SC", sans-serif;
615
+ font-size: 0.85em;
616
+ font-weight: 400;
617
+ text-transform: uppercase;
618
+ }
619
+ .colamd-document hr { border-top: 3px solid var(--seed-ink); }
620
+
621
+ .colamd-document p { text-indent: 2em; }
622
+ .colamd-document li p,
623
+ .colamd-document td p,
624
+ .colamd-document th p,
625
+ .colamd-document blockquote p {
626
+ text-indent: 0;
627
+ }
628
+
629
+ /* ═══════════════════════════════════════════════════════════
630
+ SECTION 4 — Print
631
+ 应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
632
+ ═══════════════════════════════════════════════════════════ */
633
+
634
+ @media print {
635
+ html,
636
+ body {
637
+ background: var(--bg-color);
638
+ color: var(--text-color);
639
+ -webkit-print-color-adjust: exact;
640
+ print-color-adjust: exact;
641
+ }
642
+ }