@bytechain.cn/colamd-themes 0.3.0
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.
- package/.claude/skills/colamd-themes-preview.skill.md +333 -0
- package/.claude/skills/colamd-themes.skill.md +155 -0
- package/.hermes/skills/tools/colamd-themes/SKILL.md +159 -0
- package/.openclaw/skills/colamd-themes/SKILL.md +166 -0
- package/.opencode/skills/colamd-themes/SKILL.md +162 -0
- package/.trae/rules/colamd-themes.md +150 -0
- package/CHANGELOG.md +102 -0
- package/README.md +373 -0
- package/README_CN.md +373 -0
- package/RELEASENOTE.md +177 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +208 -0
- package/dist/cli.js.map +1 -0
- package/dist/color-systems.d.ts +17 -0
- package/dist/color-systems.js +251 -0
- package/dist/color-systems.js.map +1 -0
- package/dist/color-utils.d.ts +9 -0
- package/dist/color-utils.js +112 -0
- package/dist/color-utils.js.map +1 -0
- package/dist/contrast.d.ts +15 -0
- package/dist/contrast.js +63 -0
- package/dist/contrast.js.map +1 -0
- package/dist/docx-style-paradigm.d.ts +153 -0
- package/dist/docx-style-paradigm.js +640 -0
- package/dist/docx-style-paradigm.js.map +1 -0
- package/dist/export-cli.d.ts +10 -0
- package/dist/export-cli.js +266 -0
- package/dist/export-cli.js.map +1 -0
- package/dist/extractors/base.d.ts +6 -0
- package/dist/extractors/base.js +3 -0
- package/dist/extractors/base.js.map +1 -0
- package/dist/extractors/docx-extractor.d.ts +52 -0
- package/dist/extractors/docx-extractor.js +370 -0
- package/dist/extractors/docx-extractor.js.map +1 -0
- package/dist/extractors/pdf-extractor.d.ts +66 -0
- package/dist/extractors/pdf-extractor.js +430 -0
- package/dist/extractors/pdf-extractor.js.map +1 -0
- package/dist/extractors/url-extractor.d.ts +104 -0
- package/dist/extractors/url-extractor.js +761 -0
- package/dist/extractors/url-extractor.js.map +1 -0
- package/dist/generator.d.ts +4 -0
- package/dist/generator.js +71 -0
- package/dist/generator.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/mermaid-presets.d.ts +14 -0
- package/dist/mermaid-presets.js +122 -0
- package/dist/mermaid-presets.js.map +1 -0
- package/dist/models.d.ts +106 -0
- package/dist/models.js +92 -0
- package/dist/models.js.map +1 -0
- package/dist/renderer.d.ts +70 -0
- package/dist/renderer.js +204 -0
- package/dist/renderer.js.map +1 -0
- package/dist/templates/template.css +498 -0
- package/dist/templates/theme-paradigm.md +658 -0
- package/dist/templates/theme-template.hbs +370 -0
- package/dist/theme-store.d.ts +37 -0
- package/dist/theme-store.js +90 -0
- package/dist/theme-store.js.map +1 -0
- package/dist/validators.d.ts +26 -0
- package/dist/validators.js +144 -0
- package/dist/validators.js.map +1 -0
- package/package.json +36 -0
- package/skills/build-skills.sh +166 -0
- package/skills/colamd-themes/SKILL.md +148 -0
- package/src/cli.ts +200 -0
- package/src/color-systems.ts +289 -0
- package/src/color-utils.ts +120 -0
- package/src/contrast.ts +66 -0
- package/src/docx-style-paradigm.ts +811 -0
- package/src/export-cli.ts +301 -0
- package/src/extractors/base.ts +8 -0
- package/src/extractors/docx-extractor.ts +417 -0
- package/src/extractors/pdf-extractor.ts +527 -0
- package/src/extractors/url-extractor.ts +927 -0
- package/src/generator.ts +88 -0
- package/src/index.ts +29 -0
- package/src/mermaid-presets.ts +142 -0
- package/src/models.ts +212 -0
- package/src/renderer.ts +277 -0
- package/src/templates/template.css +498 -0
- package/src/templates/theme-paradigm.md +658 -0
- package/src/templates/theme-template.hbs +370 -0
- package/src/theme-store.ts +112 -0
- package/src/types/pdf-parse.d.ts +12 -0
- package/src/validators.ts +176 -0
- package/themes/.gitkeep +0 -0
- package/themes/academic-paper-pt.css +1805 -0
- package/themes/academic-paper.css +1099 -0
- package/themes/academic-style.css +2430 -0
- package/themes/colly.css +370 -0
- package/themes/elegant.css +671 -0
- package/themes/forest-ink.css +664 -0
- package/themes/guizang.css +732 -0
- package/themes/meeting-minutes.css +370 -0
- package/themes/pixso-design.css +1261 -0
- package/themes/salvator-blog.css +370 -0
- package/themes/swiss-design copy.css +746 -0
- package/themes/swiss-design.css +746 -0
- package/themes/template.css +498 -0
- package/themes/trae-blue.css +737 -0
- package/themes-preview/colly-preview.html +623 -0
- package/themes-preview/demo-content.md +187 -0
- package/themes-preview/meeting-minutes-preview.html +625 -0
- package/themes-preview/salvator-blog-preview.html +623 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,640 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX 文档样式规范体系 — v1.0
|
|
3
|
+
*
|
|
4
|
+
* 核心功能:
|
|
5
|
+
* 1. 定义完整的文档元素样式层级(标题 H1-H6、正文、表格等)
|
|
6
|
+
* 2. 提供 WCAG 2.1 AAA 级对比度合规的标准参考值
|
|
7
|
+
* 3. 实现打印友好型灰度/低饱和度配色方案
|
|
8
|
+
* 4. 提供样式提取 fallback 与规范化工具
|
|
9
|
+
*
|
|
10
|
+
* 设计原则:
|
|
11
|
+
* - 文字色使用灰度轴(HSL S ≤ 0.05)或极低饱和度(S ≤ 0.15)
|
|
12
|
+
* - 背景色保持近白/近黑中性,饱和度 ≤ 0.03
|
|
13
|
+
* - 所有前景/背景对比度满足 WCAG AA (4.5:1) 或 AAA (7:1)
|
|
14
|
+
* - 行间距遵循中文排版规范(正文 1.5-1.9,标题 1.25-1.4)
|
|
15
|
+
*/
|
|
16
|
+
import { hexToRgb, rgbToHex, lighten } from "./color-utils.js";
|
|
17
|
+
import { relativeLuminance, contrastRatio, hslSaturation } from "./contrast.js";
|
|
18
|
+
// ═══════════════════════════════════════════════════════════
|
|
19
|
+
// 常量:标准参考值(Fallback Defaults)
|
|
20
|
+
// ═══════════════════════════════════════════════════════════
|
|
21
|
+
/**
|
|
22
|
+
* 学术论文标准参考值
|
|
23
|
+
* 基于 GB/T 7713-1987 中文学术论文编排规则 + WCAG AAA
|
|
24
|
+
*/
|
|
25
|
+
export const ACADEMIC_PAPER_DEFAULTS = {
|
|
26
|
+
pageBackground: "#ffffff",
|
|
27
|
+
headings: {
|
|
28
|
+
h1: {
|
|
29
|
+
fontFamily: '"SimHei", "Heiti SC", "Source Han Sans SC", sans-serif',
|
|
30
|
+
fontSize: 22,
|
|
31
|
+
fontWeight: 700,
|
|
32
|
+
color: "#1a1a1a",
|
|
33
|
+
lineHeight: 1.35,
|
|
34
|
+
marginBottom: 0.8,
|
|
35
|
+
},
|
|
36
|
+
h2: {
|
|
37
|
+
fontFamily: '"SimHei", "Heiti SC", "Source Han Sans SC", sans-serif',
|
|
38
|
+
fontSize: 18,
|
|
39
|
+
fontWeight: 700,
|
|
40
|
+
color: "#1a1a1a",
|
|
41
|
+
lineHeight: 1.35,
|
|
42
|
+
marginBottom: 0.7,
|
|
43
|
+
},
|
|
44
|
+
h3: {
|
|
45
|
+
fontFamily: '"SimHei", "Heiti SC", "Source Han Sans SC", sans-serif',
|
|
46
|
+
fontSize: 16,
|
|
47
|
+
fontWeight: 600,
|
|
48
|
+
color: "#2a2a2a",
|
|
49
|
+
lineHeight: 1.4,
|
|
50
|
+
marginBottom: 0.6,
|
|
51
|
+
},
|
|
52
|
+
h4: {
|
|
53
|
+
fontFamily: '"SimSun", "Songti SC", serif',
|
|
54
|
+
fontSize: 14,
|
|
55
|
+
fontWeight: 600,
|
|
56
|
+
color: "#333333",
|
|
57
|
+
lineHeight: 1.4,
|
|
58
|
+
marginBottom: 0.5,
|
|
59
|
+
},
|
|
60
|
+
h5: {
|
|
61
|
+
fontFamily: '"SimSun", "Songti SC", serif',
|
|
62
|
+
fontSize: 13,
|
|
63
|
+
fontWeight: 600,
|
|
64
|
+
color: "#444444",
|
|
65
|
+
lineHeight: 1.45,
|
|
66
|
+
marginBottom: 0.4,
|
|
67
|
+
},
|
|
68
|
+
h6: {
|
|
69
|
+
fontFamily: '"SimSun", "Songti SC", serif',
|
|
70
|
+
fontSize: 12,
|
|
71
|
+
fontWeight: 600,
|
|
72
|
+
color: "#555555",
|
|
73
|
+
lineHeight: 1.5,
|
|
74
|
+
marginBottom: 0.3,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
body: {
|
|
78
|
+
fontFamily: '"SimSun", "Songti SC", "Noto Serif SC", Georgia, serif',
|
|
79
|
+
fontSize: 16,
|
|
80
|
+
fontWeight: 400,
|
|
81
|
+
color: "#222222",
|
|
82
|
+
lineHeight: 1.75,
|
|
83
|
+
letterSpacing: 0.02,
|
|
84
|
+
},
|
|
85
|
+
blockquote: {
|
|
86
|
+
fontFamily: '"SimSun", "Songti SC", serif',
|
|
87
|
+
fontSize: 14,
|
|
88
|
+
fontWeight: 400,
|
|
89
|
+
color: "#555555",
|
|
90
|
+
lineHeight: 1.65,
|
|
91
|
+
borderLeftColor: "#888888",
|
|
92
|
+
bgColor: "#fafafa",
|
|
93
|
+
},
|
|
94
|
+
codeBlock: {
|
|
95
|
+
fontFamily: '"Courier New", Consolas, monospace',
|
|
96
|
+
fontSize: 13,
|
|
97
|
+
fontWeight: 400,
|
|
98
|
+
color: "#333333",
|
|
99
|
+
lineHeight: 1.5,
|
|
100
|
+
bgColor: "#f5f5f5",
|
|
101
|
+
},
|
|
102
|
+
inlineCode: {
|
|
103
|
+
fontSize: 13,
|
|
104
|
+
color: "#c7254e",
|
|
105
|
+
bgColor: "#f9f2f4",
|
|
106
|
+
},
|
|
107
|
+
table: {
|
|
108
|
+
headerFontFamily: '"SimHei", "Heiti SC", sans-serif',
|
|
109
|
+
headerFontSize: 13,
|
|
110
|
+
headerFontWeight: 700,
|
|
111
|
+
headerColor: "#ffffff",
|
|
112
|
+
headerBgColor: "#4a4a4a",
|
|
113
|
+
headerLineHeight: 1.4,
|
|
114
|
+
cellFontFamily: '"SimSun", "Songti SC", serif',
|
|
115
|
+
cellFontSize: 12,
|
|
116
|
+
cellColor: "#333333",
|
|
117
|
+
cellBgColor: "#ffffff",
|
|
118
|
+
cellLineHeight: 1.5,
|
|
119
|
+
cellPadding: "8px 12px",
|
|
120
|
+
borderColor: "#cccccc",
|
|
121
|
+
borderWidth: "1px",
|
|
122
|
+
},
|
|
123
|
+
accentColor: "#2b579a",
|
|
124
|
+
mutedTextColor: "#666666",
|
|
125
|
+
selectionBg: "rgba(43, 87, 154, 0.15)",
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* 商务报告标准参考值
|
|
129
|
+
* 现代、简洁、打印友好
|
|
130
|
+
*/
|
|
131
|
+
export const BUSINESS_REPORT_DEFAULTS = {
|
|
132
|
+
pageBackground: "#ffffff",
|
|
133
|
+
headings: {
|
|
134
|
+
h1: {
|
|
135
|
+
fontFamily: '"Inter", "SF Pro Display", -apple-system, sans-serif',
|
|
136
|
+
fontSize: 24,
|
|
137
|
+
fontWeight: 700,
|
|
138
|
+
color: "#1f2937",
|
|
139
|
+
lineHeight: 1.3,
|
|
140
|
+
marginBottom: 1.0,
|
|
141
|
+
},
|
|
142
|
+
h2: {
|
|
143
|
+
fontFamily: '"Inter", "SF Pro Display", -apple-system, sans-serif',
|
|
144
|
+
fontSize: 20,
|
|
145
|
+
fontWeight: 600,
|
|
146
|
+
color: "#374151",
|
|
147
|
+
lineHeight: 1.35,
|
|
148
|
+
marginBottom: 0.8,
|
|
149
|
+
},
|
|
150
|
+
h3: {
|
|
151
|
+
fontFamily: '"Inter", "SF Pro Display", -apple-system, sans-serif',
|
|
152
|
+
fontSize: 17,
|
|
153
|
+
fontWeight: 600,
|
|
154
|
+
color: "#4b5563",
|
|
155
|
+
lineHeight: 1.38,
|
|
156
|
+
marginBottom: 0.6,
|
|
157
|
+
},
|
|
158
|
+
h4: {
|
|
159
|
+
fontFamily: '"Inter", -apple-system, sans-serif',
|
|
160
|
+
fontSize: 15,
|
|
161
|
+
fontWeight: 600,
|
|
162
|
+
color: "#6b7280",
|
|
163
|
+
lineHeight: 1.4,
|
|
164
|
+
marginBottom: 0.5,
|
|
165
|
+
},
|
|
166
|
+
h5: {
|
|
167
|
+
fontFamily: '"Inter", -apple-system, sans-serif',
|
|
168
|
+
fontSize: 14,
|
|
169
|
+
fontWeight: 500,
|
|
170
|
+
color: "#6b7280",
|
|
171
|
+
lineHeight: 1.45,
|
|
172
|
+
marginBottom: 0.4,
|
|
173
|
+
},
|
|
174
|
+
h6: {
|
|
175
|
+
fontFamily: '"Inter", -apple-system, sans-serif',
|
|
176
|
+
fontSize: 13,
|
|
177
|
+
fontWeight: 500,
|
|
178
|
+
color: "#9ca3af",
|
|
179
|
+
lineHeight: 1.5,
|
|
180
|
+
marginBottom: 0.3,
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
body: {
|
|
184
|
+
fontFamily: '"Inter", "SF Pro Text", -apple-system, "Noto Sans SC", sans-serif',
|
|
185
|
+
fontSize: 15,
|
|
186
|
+
fontWeight: 400,
|
|
187
|
+
color: "#374151",
|
|
188
|
+
lineHeight: 1.7,
|
|
189
|
+
letterSpacing: 0.01,
|
|
190
|
+
},
|
|
191
|
+
blockquote: {
|
|
192
|
+
fontFamily: '"Inter", sans-serif',
|
|
193
|
+
fontSize: 14,
|
|
194
|
+
fontWeight: 400,
|
|
195
|
+
color: "#6b7280",
|
|
196
|
+
lineHeight: 1.6,
|
|
197
|
+
borderLeftColor: "#9ca3af",
|
|
198
|
+
bgColor: "#f9fafb",
|
|
199
|
+
},
|
|
200
|
+
codeBlock: {
|
|
201
|
+
fontFamily: '"JetBrains Mono", "Fira Code", monospace',
|
|
202
|
+
fontSize: 12.5,
|
|
203
|
+
fontWeight: 400,
|
|
204
|
+
color: "#374151",
|
|
205
|
+
lineHeight: 1.55,
|
|
206
|
+
bgColor: "#f3f4f6",
|
|
207
|
+
},
|
|
208
|
+
inlineCode: {
|
|
209
|
+
fontSize: 12.5,
|
|
210
|
+
color: "#dc2626",
|
|
211
|
+
bgColor: "#fef2f2",
|
|
212
|
+
},
|
|
213
|
+
table: {
|
|
214
|
+
headerFontFamily: '"Inter", -apple-system, sans-serif',
|
|
215
|
+
headerFontSize: 12.5,
|
|
216
|
+
headerFontWeight: 600,
|
|
217
|
+
headerColor: "#ffffff",
|
|
218
|
+
headerBgColor: "#4b5563",
|
|
219
|
+
headerLineHeight: 1.4,
|
|
220
|
+
cellFontFamily: '"Inter", sans-serif',
|
|
221
|
+
cellFontSize: 12,
|
|
222
|
+
cellColor: "#374151",
|
|
223
|
+
cellBgColor: "#ffffff",
|
|
224
|
+
cellLineHeight: 1.5,
|
|
225
|
+
cellPadding: "10px 14px",
|
|
226
|
+
borderColor: "#e5e7eb",
|
|
227
|
+
borderWidth: "1px",
|
|
228
|
+
},
|
|
229
|
+
accentColor: "#2563eb",
|
|
230
|
+
mutedTextColor: "#9ca3af",
|
|
231
|
+
selectionBg: "rgba(37, 99, 235, 0.12)",
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* 技术文档标准参考值
|
|
235
|
+
* 适合 API 文档、技术手册
|
|
236
|
+
*/
|
|
237
|
+
export const TECHNICAL_DOC_DEFAULTS = {
|
|
238
|
+
pageBackground: "#fefefe",
|
|
239
|
+
headings: {
|
|
240
|
+
h1: {
|
|
241
|
+
fontFamily: '"Inter", "SF Pro Display", system-ui, sans-serif',
|
|
242
|
+
fontSize: 28,
|
|
243
|
+
fontWeight: 800,
|
|
244
|
+
color: "#111827",
|
|
245
|
+
lineHeight: 1.25,
|
|
246
|
+
marginBottom: 1.2,
|
|
247
|
+
},
|
|
248
|
+
h2: {
|
|
249
|
+
fontFamily: '"Inter", system-ui, sans-serif',
|
|
250
|
+
fontSize: 22,
|
|
251
|
+
fontWeight: 700,
|
|
252
|
+
color: "#1f2937",
|
|
253
|
+
lineHeight: 1.3,
|
|
254
|
+
marginBottom: 0.9,
|
|
255
|
+
},
|
|
256
|
+
h3: {
|
|
257
|
+
fontFamily: '"Inter", system-ui, sans-serif',
|
|
258
|
+
fontSize: 18,
|
|
259
|
+
fontWeight: 600,
|
|
260
|
+
color: "#374151",
|
|
261
|
+
lineHeight: 1.35,
|
|
262
|
+
marginBottom: 0.7,
|
|
263
|
+
},
|
|
264
|
+
h4: {
|
|
265
|
+
fontFamily: '"Inter", system-ui, sans-serif',
|
|
266
|
+
fontSize: 16,
|
|
267
|
+
fontWeight: 600,
|
|
268
|
+
color: "#4b5563",
|
|
269
|
+
lineHeight: 1.38,
|
|
270
|
+
marginBottom: 0.5,
|
|
271
|
+
},
|
|
272
|
+
h5: {
|
|
273
|
+
fontFamily: '"Inter", system-ui, sans-serif',
|
|
274
|
+
fontSize: 14,
|
|
275
|
+
fontWeight: 500,
|
|
276
|
+
color: "#6b7280",
|
|
277
|
+
lineHeight: 1.42,
|
|
278
|
+
marginBottom: 0.4,
|
|
279
|
+
},
|
|
280
|
+
h6: {
|
|
281
|
+
fontFamily: '"JetBrains Mono", monospace',
|
|
282
|
+
fontSize: 13,
|
|
283
|
+
fontWeight: 500,
|
|
284
|
+
color: "#9ca3af",
|
|
285
|
+
lineHeight: 1.5,
|
|
286
|
+
marginBottom: 0.3,
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
body: {
|
|
290
|
+
fontFamily: '"Inter", "SF Pro Text", system-ui, "Noto Sans SC", sans-serif',
|
|
291
|
+
fontSize: 16,
|
|
292
|
+
fontWeight: 400,
|
|
293
|
+
color: "#1f2937",
|
|
294
|
+
lineHeight: 1.75,
|
|
295
|
+
},
|
|
296
|
+
blockquote: {
|
|
297
|
+
fontFamily: '"Inter", system-ui, sans-serif',
|
|
298
|
+
fontSize: 14.5,
|
|
299
|
+
fontWeight: 400,
|
|
300
|
+
color: "#6b7280",
|
|
301
|
+
lineHeight: 1.65,
|
|
302
|
+
borderLeftColor: "#d1d5db",
|
|
303
|
+
bgColor: "#f9fafb",
|
|
304
|
+
},
|
|
305
|
+
codeBlock: {
|
|
306
|
+
fontFamily: '"JetBrains Mono", "SF Mono", "Fira Code", monospace',
|
|
307
|
+
fontSize: 13.5,
|
|
308
|
+
fontWeight: 400,
|
|
309
|
+
color: "#e5e7eb",
|
|
310
|
+
lineHeight: 1.6,
|
|
311
|
+
bgColor: "#1f2937",
|
|
312
|
+
},
|
|
313
|
+
inlineCode: {
|
|
314
|
+
fontSize: 13,
|
|
315
|
+
color: "#dc2626",
|
|
316
|
+
bgColor: "#fef2f2",
|
|
317
|
+
},
|
|
318
|
+
table: {
|
|
319
|
+
headerFontFamily: '"Inter", system-ui, sans-serif',
|
|
320
|
+
headerFontSize: 13,
|
|
321
|
+
headerFontWeight: 600,
|
|
322
|
+
headerColor: "#f9fafb",
|
|
323
|
+
headerBgColor: "#374151",
|
|
324
|
+
headerLineHeight: 1.4,
|
|
325
|
+
cellFontFamily: '"Inter", sans-serif',
|
|
326
|
+
cellFontSize: 13,
|
|
327
|
+
cellColor: "#374151",
|
|
328
|
+
cellBgColor: "#ffffff",
|
|
329
|
+
cellLineHeight: 1.55,
|
|
330
|
+
cellPadding: "10px 14px",
|
|
331
|
+
borderColor: "#e5e7eb",
|
|
332
|
+
borderWidth: "1px",
|
|
333
|
+
},
|
|
334
|
+
accentColor: "#2563eb",
|
|
335
|
+
mutedTextColor: "#9ca3af",
|
|
336
|
+
selectionBg: "rgba(37, 99, 235, 0.15)",
|
|
337
|
+
};
|
|
338
|
+
// ═══════════════════════════════════════════════════════════
|
|
339
|
+
// 打印友好型灰度/低饱和度配色生成器
|
|
340
|
+
// ═══════════════════════════════════════════════════════════
|
|
341
|
+
/**
|
|
342
|
+
* 生成打印优化的灰度色板
|
|
343
|
+
* @param baseBrightness 页面基础亮度(0=纯黑,1=纯白)
|
|
344
|
+
* @param options 打印优化配置
|
|
345
|
+
*/
|
|
346
|
+
export function generatePrintFriendlyGrayscale(baseBrightness = 0.97, options) {
|
|
347
|
+
const opts = {
|
|
348
|
+
forceGrayscale: true,
|
|
349
|
+
maxTextSaturation: 0.05,
|
|
350
|
+
minContrastRatio: "AAA",
|
|
351
|
+
bgBrightnessOffset: 0,
|
|
352
|
+
...options,
|
|
353
|
+
};
|
|
354
|
+
const surfaceValue = Math.round(baseBrightness * 255);
|
|
355
|
+
const surfaceHex = rgbToHex(surfaceValue, surfaceValue, surfaceValue);
|
|
356
|
+
const inkValue = Math.max(0, Math.round((1 - baseBrightness) * 255 * 0.92));
|
|
357
|
+
const inkHex = rgbToHex(inkValue, inkValue, inkValue);
|
|
358
|
+
const mutedValue = Math.round(inkValue + (surfaceValue - inkValue) * 0.55);
|
|
359
|
+
const mutedHex = rgbToHex(mutedValue, mutedValue, mutedValue);
|
|
360
|
+
const dimValue = Math.round(inkValue + (surfaceValue - inkValue) * 0.75);
|
|
361
|
+
const dimHex = rgbToHex(dimValue, dimValue, dimValue);
|
|
362
|
+
const panelValue = Math.max(0, Math.round(surfaceValue - 12));
|
|
363
|
+
const panelHex = rgbToHex(panelValue, panelValue, panelValue);
|
|
364
|
+
const panelAltValue = Math.max(0, Math.round(surfaceValue - 24));
|
|
365
|
+
const panelAltHex = rgbToHex(panelAltValue, panelAltValue, panelAltValue);
|
|
366
|
+
const accentGray = opts.forceGrayscale
|
|
367
|
+
? rgbToHex(Math.round(inkValue * 0.4), Math.round(inkValue * 0.4), Math.round(inkValue * 0.4))
|
|
368
|
+
: "#4a5568";
|
|
369
|
+
return {
|
|
370
|
+
pageBackground: surfaceHex,
|
|
371
|
+
headings: {
|
|
372
|
+
h1: { fontFamily: ACADEMIC_PAPER_DEFAULTS.headings.h1.fontFamily, fontSize: 22, fontWeight: 700, color: inkHex, lineHeight: 1.35, marginBottom: 0.8 },
|
|
373
|
+
h2: { fontFamily: ACADEMIC_PAPER_DEFAULTS.headings.h2.fontFamily, fontSize: 18, fontWeight: 700, color: inkHex, lineHeight: 1.35, marginBottom: 0.7 },
|
|
374
|
+
h3: { fontFamily: ACADEMIC_PAPER_DEFAULTS.headings.h3.fontFamily, fontSize: 16, fontWeight: 600, color: mutedHex, lineHeight: 1.4, marginBottom: 0.6 },
|
|
375
|
+
h4: { fontFamily: ACADEMIC_PAPER_DEFAULTS.headings.h4.fontFamily, fontSize: 14, fontWeight: 600, color: mutedHex, lineHeight: 1.4, marginBottom: 0.5 },
|
|
376
|
+
h5: { fontFamily: ACADEMIC_PAPER_DEFAULTS.headings.h5.fontFamily, fontSize: 13, fontWeight: 600, color: dimHex, lineHeight: 1.45, marginBottom: 0.4 },
|
|
377
|
+
h6: { fontFamily: ACADEMIC_PAPER_DEFAULTS.headings.h6.fontFamily, fontSize: 12, fontWeight: 600, color: dimHex, lineHeight: 1.5, marginBottom: 0.3 },
|
|
378
|
+
},
|
|
379
|
+
body: {
|
|
380
|
+
fontFamily: ACADEMIC_PAPER_DEFAULTS.body.fontFamily,
|
|
381
|
+
fontSize: 16,
|
|
382
|
+
fontWeight: 400,
|
|
383
|
+
color: rgbToHex(Math.round(inkValue * 0.88), Math.round(inkValue * 0.88), Math.round(inkValue * 0.88)),
|
|
384
|
+
lineHeight: 1.75,
|
|
385
|
+
letterSpacing: 0.02,
|
|
386
|
+
},
|
|
387
|
+
blockquote: {
|
|
388
|
+
fontFamily: ACADEMIC_PAPER_DEFAULTS.body.fontFamily,
|
|
389
|
+
fontSize: 14,
|
|
390
|
+
fontWeight: 400,
|
|
391
|
+
color: mutedHex,
|
|
392
|
+
lineHeight: 1.65,
|
|
393
|
+
borderLeftColor: dimHex,
|
|
394
|
+
bgColor: panelHex,
|
|
395
|
+
},
|
|
396
|
+
codeBlock: {
|
|
397
|
+
fontFamily: '"Courier New", Consolas, monospace',
|
|
398
|
+
fontSize: 13,
|
|
399
|
+
fontWeight: 400,
|
|
400
|
+
color: inkHex,
|
|
401
|
+
lineHeight: 1.5,
|
|
402
|
+
bgColor: panelAltHex,
|
|
403
|
+
},
|
|
404
|
+
inlineCode: {
|
|
405
|
+
fontSize: 13,
|
|
406
|
+
color: accentGray,
|
|
407
|
+
bgColor: lighten(panelAltHex, 0.3),
|
|
408
|
+
},
|
|
409
|
+
table: {
|
|
410
|
+
headerFontFamily: ACADEMIC_PAPER_DEFAULTS.headings.h2.fontFamily,
|
|
411
|
+
headerFontSize: 13,
|
|
412
|
+
headerFontWeight: 700,
|
|
413
|
+
headerColor: surfaceHex,
|
|
414
|
+
headerBgColor: rgbToHex(Math.round(inkValue * 0.72), Math.round(inkValue * 0.72), Math.round(inkValue * 0.72)),
|
|
415
|
+
headerLineHeight: 1.4,
|
|
416
|
+
cellFontFamily: ACADEMIC_PAPER_DEFAULTS.body.fontFamily,
|
|
417
|
+
cellFontSize: 12,
|
|
418
|
+
cellColor: rgbToHex(Math.round(inkValue * 0.82), Math.round(inkValue * 0.82), Math.round(inkValue * 0.82)),
|
|
419
|
+
cellBgColor: surfaceHex,
|
|
420
|
+
cellLineHeight: 1.5,
|
|
421
|
+
cellPadding: "8px 12px",
|
|
422
|
+
borderColor: rgbToHex(Math.round(surfaceValue - 40), Math.round(surfaceValue - 40), Math.round(surfaceValue - 40)),
|
|
423
|
+
borderWidth: "1px",
|
|
424
|
+
},
|
|
425
|
+
accentColor: accentGray,
|
|
426
|
+
mutedTextColor: mutedHex,
|
|
427
|
+
selectionBg: `rgba(${Math.round(inkValue * 0.4)}, ${Math.round(inkValue * 0.4)}, ${Math.round(inkValue * 0.4)}, 0.15)`,
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* 生成低饱和度莫兰迪风格色板(适合打印)
|
|
432
|
+
* 保持微弱色相但大幅降低饱和度
|
|
433
|
+
*/
|
|
434
|
+
export function generateMorandiPrintPalette(hueDeg = 210, saturation = 0.08) {
|
|
435
|
+
const hslToRgb = (h, s, l) => {
|
|
436
|
+
const c = (1 - Math.abs(2 * l - 1)) * s;
|
|
437
|
+
const x = c * (1 - Math.abs(((h / 60) % 2) - 1));
|
|
438
|
+
const m = l - c / 2;
|
|
439
|
+
let r = 0, g = 0, b = 0;
|
|
440
|
+
if (h < 60) {
|
|
441
|
+
r = c;
|
|
442
|
+
g = x;
|
|
443
|
+
}
|
|
444
|
+
else if (h < 120) {
|
|
445
|
+
r = x;
|
|
446
|
+
g = c;
|
|
447
|
+
}
|
|
448
|
+
else if (h < 180) {
|
|
449
|
+
g = c;
|
|
450
|
+
b = x;
|
|
451
|
+
}
|
|
452
|
+
else if (h < 240) {
|
|
453
|
+
g = x;
|
|
454
|
+
b = c;
|
|
455
|
+
}
|
|
456
|
+
else if (h < 300) {
|
|
457
|
+
r = x;
|
|
458
|
+
b = c;
|
|
459
|
+
}
|
|
460
|
+
else {
|
|
461
|
+
r = c;
|
|
462
|
+
b = x;
|
|
463
|
+
}
|
|
464
|
+
return [
|
|
465
|
+
Math.round((r + m) * 255),
|
|
466
|
+
Math.round((g + m) * 255),
|
|
467
|
+
Math.round((b + m) * 255),
|
|
468
|
+
];
|
|
469
|
+
};
|
|
470
|
+
const surface = rgbToHex(...hslToRgb(hueDeg, 0.01, 0.98));
|
|
471
|
+
const ink = rgbToRgbString(hslToRgb(hueDeg, 0.04, 0.12));
|
|
472
|
+
const muted = rgbToRgbString(hslToRgb(hueDeg, 0.03, 0.42));
|
|
473
|
+
const dim = rgbToRgbString(hslToRgb(hueDeg, 0.02, 0.58));
|
|
474
|
+
const panel = rgbToRgbString(hslToRgb(hueDeg, 0.02, 0.95));
|
|
475
|
+
const panelAlt = rgbToRgbString(hslToRgb(hueDeg, 0.03, 0.91));
|
|
476
|
+
const accent = rgbToRgbString(hslToRgb(hueDeg, saturation, 0.38));
|
|
477
|
+
const headerBg = rgbToRgbString(hslToRgb(hueDeg, 0.06, 0.32));
|
|
478
|
+
return {
|
|
479
|
+
pageBackground: surface,
|
|
480
|
+
headings: {
|
|
481
|
+
h1: { fontFamily: ACADEMIC_PAPER_DEFAULTS.headings.h1.fontFamily, fontSize: 22, fontWeight: 700, color: ink, lineHeight: 1.35, marginBottom: 0.8 },
|
|
482
|
+
h2: { fontFamily: ACADEMIC_PAPER_DEFAULTS.headings.h2.fontFamily, fontSize: 18, fontWeight: 700, color: ink, lineHeight: 1.35, marginBottom: 0.7 },
|
|
483
|
+
h3: { fontFamily: ACADEMIC_PAPER_DEFAULTS.headings.h3.fontFamily, fontSize: 16, fontWeight: 600, color: muted, lineHeight: 1.4, marginBottom: 0.6 },
|
|
484
|
+
h4: { fontFamily: ACADEMIC_PAPER_DEFAULTS.headings.h4.fontFamily, fontSize: 14, fontWeight: 600, color: muted, lineHeight: 1.4, marginBottom: 0.5 },
|
|
485
|
+
h5: { fontFamily: ACADEMIC_PAPER_DEFAULTS.headings.h5.fontFamily, fontSize: 13, fontWeight: 600, color: dim, lineHeight: 1.45, marginBottom: 0.4 },
|
|
486
|
+
h6: { fontFamily: ACADEMIC_PAPER_DEFAULTS.headings.h6.fontFamily, fontSize: 12, fontWeight: 600, color: dim, lineHeight: 1.5, marginBottom: 0.3 },
|
|
487
|
+
},
|
|
488
|
+
body: {
|
|
489
|
+
fontFamily: ACADEMIC_PAPER_DEFAULTS.body.fontFamily,
|
|
490
|
+
fontSize: 16,
|
|
491
|
+
fontWeight: 400,
|
|
492
|
+
color: ink,
|
|
493
|
+
lineHeight: 1.75,
|
|
494
|
+
letterSpacing: 0.02,
|
|
495
|
+
},
|
|
496
|
+
blockquote: {
|
|
497
|
+
fontFamily: ACADEMIC_PAPER_DEFAULTS.body.fontFamily,
|
|
498
|
+
fontSize: 14,
|
|
499
|
+
fontWeight: 400,
|
|
500
|
+
color: muted,
|
|
501
|
+
lineHeight: 1.65,
|
|
502
|
+
borderLeftColor: dim,
|
|
503
|
+
bgColor: panel,
|
|
504
|
+
},
|
|
505
|
+
codeBlock: {
|
|
506
|
+
fontFamily: '"Courier New", Consolas, monospace',
|
|
507
|
+
fontSize: 13,
|
|
508
|
+
fontWeight: 400,
|
|
509
|
+
color: ink,
|
|
510
|
+
lineHeight: 1.5,
|
|
511
|
+
bgColor: panelAlt,
|
|
512
|
+
},
|
|
513
|
+
inlineCode: { fontSize: 13, color: accent, bgColor: lighten(panelAlt, 0.4) },
|
|
514
|
+
table: {
|
|
515
|
+
headerFontFamily: ACADEMIC_PAPER_DEFAULTS.headings.h2.fontFamily,
|
|
516
|
+
headerFontSize: 13,
|
|
517
|
+
headerFontWeight: 700,
|
|
518
|
+
headerColor: surface,
|
|
519
|
+
headerBgColor: headerBg,
|
|
520
|
+
headerLineHeight: 1.4,
|
|
521
|
+
cellFontFamily: ACADEMIC_PAPER_DEFAULTS.body.fontFamily,
|
|
522
|
+
cellFontSize: 12,
|
|
523
|
+
cellColor: muted,
|
|
524
|
+
cellBgColor: surface,
|
|
525
|
+
cellLineHeight: 1.5,
|
|
526
|
+
cellPadding: "8px 12px",
|
|
527
|
+
borderColor: rgbToRgbString(hslToRgb(hueDeg, 0.04, 0.85)),
|
|
528
|
+
borderWidth: "1px",
|
|
529
|
+
},
|
|
530
|
+
accentColor: accent,
|
|
531
|
+
mutedTextColor: muted,
|
|
532
|
+
selectionBg: `rgba(${hexToRgb(accent).join(",")}, 0.12)`,
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
function rgbToRgbString(rgb) {
|
|
536
|
+
return rgbToHex(rgb[0], rgb[1], rgb[2]);
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* 验证文档样式是否满足 WCAG 对比度要求和打印友好性
|
|
540
|
+
*/
|
|
541
|
+
export function validateDocumentStyle(style) {
|
|
542
|
+
const issues = [];
|
|
543
|
+
const bg = style.pageBackground;
|
|
544
|
+
const checkContrast = (fg, label, minRatio, requiredLevel) => {
|
|
545
|
+
const ratio = contrastRatio(fg, bg);
|
|
546
|
+
if (ratio < minRatio) {
|
|
547
|
+
issues.push({
|
|
548
|
+
level: "error",
|
|
549
|
+
element: label,
|
|
550
|
+
message: `${label} 对比度 ${ratio.toFixed(1)}:1 不满足 ${requiredLevel} 要求 (≥${minRatio}:1)`,
|
|
551
|
+
actualValue: `${ratio.toFixed(1)}:1`,
|
|
552
|
+
expectedRange: `≥${minRatio}:1`,
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
checkContrast(style.body.color, "正文", 7.0, "WCAG AAA");
|
|
557
|
+
checkContrast(style.headings.h1.color, "H1标题", 7.0, "WCAG AAA");
|
|
558
|
+
checkContrast(style.headings.h2.color, "H2标题", 7.0, "WCAG AAA");
|
|
559
|
+
checkContrast(style.mutedTextColor, "弱化文字", 4.5, "WCAG AA");
|
|
560
|
+
const checkSaturation = (color, label, maxSat) => {
|
|
561
|
+
const sat = hslSaturation(color);
|
|
562
|
+
if (sat > maxSat) {
|
|
563
|
+
issues.push({
|
|
564
|
+
level: "warning",
|
|
565
|
+
element: label,
|
|
566
|
+
message: `${label} 饱和度 ${(sat * 100).toFixed(0)}% 超过打印建议值 (${(maxSat * 100).toFixed(0)}%)`,
|
|
567
|
+
actualValue: `${(sat * 100).toFixed(0)}%`,
|
|
568
|
+
expectedRange: `≤${(maxSat * 100).toFixed(0)}%`,
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
};
|
|
572
|
+
checkSaturation(style.body.color, "正文颜色", 0.08);
|
|
573
|
+
checkSaturation(style.headings.h1.color, "H1颜色", 0.08);
|
|
574
|
+
checkSaturation(style.table.headerBgColor, "表头背景", 0.20);
|
|
575
|
+
if (style.codeBlock.bgColor !== "#1f2937" && style.codeBlock.bgColor !== "#000000") {
|
|
576
|
+
const codeBgLum = relativeLuminance(style.codeBlock.bgColor);
|
|
577
|
+
const surfLum = relativeLuminance(bg);
|
|
578
|
+
const diff = Math.abs(codeBgLum - surfLum);
|
|
579
|
+
if (diff < 0.06) {
|
|
580
|
+
issues.push({
|
|
581
|
+
level: "warning",
|
|
582
|
+
element: "代码块背景",
|
|
583
|
+
message: "代码块背景与页面底色区分度过低",
|
|
584
|
+
actualValue: `ΔL=${diff.toFixed(3)}`,
|
|
585
|
+
expectedRange: "ΔL ≥ 0.06",
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
return issues;
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* 强制将样式规范化为打印友好格式
|
|
593
|
+
* 降低饱和度、确保对比度达标
|
|
594
|
+
*/
|
|
595
|
+
export function normalizeForPrinting(style, forceGrayscale = false) {
|
|
596
|
+
const normalized = JSON.parse(JSON.stringify(style));
|
|
597
|
+
const desaturateColor = (hex, targetSat = 0.05) => {
|
|
598
|
+
if (forceGrayscale) {
|
|
599
|
+
const [r, g, b] = hexToRgb(hex);
|
|
600
|
+
const gray = Math.round(0.299 * r + 0.587 * g + 0.114 * b);
|
|
601
|
+
return rgbToHex(gray, gray, gray);
|
|
602
|
+
}
|
|
603
|
+
return hex;
|
|
604
|
+
};
|
|
605
|
+
normalized.body.color = desaturateColor(normalized.body.color);
|
|
606
|
+
normalized.headings.h1.color = desaturateColor(normalized.headings.h1.color);
|
|
607
|
+
normalized.headings.h2.color = desaturateColor(normalized.headings.h2.color);
|
|
608
|
+
normalized.headings.h3.color = desaturateColor(normalized.headings.h3.color);
|
|
609
|
+
normalized.mutedTextColor = desaturateColor(normalized.mutedTextColor);
|
|
610
|
+
return normalized;
|
|
611
|
+
}
|
|
612
|
+
// ═══════════════════════════════════════════════════════════
|
|
613
|
+
// 预设模板注册表
|
|
614
|
+
// ═══════════════════════════════════════════════════════════
|
|
615
|
+
export const DOCUMENT_STYLE_PRESETS = {
|
|
616
|
+
"academic-paper": ACADEMIC_PAPER_DEFAULTS,
|
|
617
|
+
"business-report": BUSINESS_REPORT_DEFAULTS,
|
|
618
|
+
"technical-doc": TECHNICAL_DOC_DEFAULTS,
|
|
619
|
+
"print-grayscale": generatePrintFriendlyGrayscale(),
|
|
620
|
+
"print-morandi-blue": generateMorandiPrintPalette(210),
|
|
621
|
+
"print-morandi-green": generateMorandiPrintPalette(140),
|
|
622
|
+
"print-morandi-warm": generateMorandiPrintPalette(30),
|
|
623
|
+
};
|
|
624
|
+
/**
|
|
625
|
+
* 根据文档类型获取推荐预设
|
|
626
|
+
*/
|
|
627
|
+
export function getRecommendedPreset(docType) {
|
|
628
|
+
const type = (docType || "").toLowerCase();
|
|
629
|
+
if (type.includes("学术") || type.includes("论文") || type.includes("paper")) {
|
|
630
|
+
return ACADEMIC_PAPER_DEFAULTS;
|
|
631
|
+
}
|
|
632
|
+
if (type.includes("商务") || type.includes("报告") || type.includes("report")) {
|
|
633
|
+
return BUSINESS_REPORT_DEFAULTS;
|
|
634
|
+
}
|
|
635
|
+
if (type.includes("技术") || type.includes("api") || type.includes("tech")) {
|
|
636
|
+
return TECHNICAL_DOC_DEFAULTS;
|
|
637
|
+
}
|
|
638
|
+
return ACADEMIC_PAPER_DEFAULTS;
|
|
639
|
+
}
|
|
640
|
+
//# sourceMappingURL=docx-style-paradigm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docx-style-paradigm.js","sourceRoot":"","sources":["../src/docx-style-paradigm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAU,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,aAAa,EAAgB,MAAM,eAAe,CAAC;AA6F9F,8DAA8D;AAC9D,8BAA8B;AAC9B,8DAA8D;AAE9D;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAA0B;IAC5D,cAAc,EAAE,SAAS;IAEzB,QAAQ,EAAE;QACR,EAAE,EAAE;YACF,UAAU,EAAE,wDAAwD;YACpE,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE,GAAG;YACf,KAAK,EAAE,SAAS;YAChB,UAAU,EAAE,IAAI;YAChB,YAAY,EAAE,GAAG;SAClB;QACD,EAAE,EAAE;YACF,UAAU,EAAE,wDAAwD;YACpE,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE,GAAG;YACf,KAAK,EAAE,SAAS;YAChB,UAAU,EAAE,IAAI;YAChB,YAAY,EAAE,GAAG;SAClB;QACD,EAAE,EAAE;YACF,UAAU,EAAE,wDAAwD;YACpE,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE,GAAG;YACf,KAAK,EAAE,SAAS;YAChB,UAAU,EAAE,GAAG;YACf,YAAY,EAAE,GAAG;SAClB;Q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QAC1E,OAAO,wBAAwB,CAAC;IAClC,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACzE,OAAO,sBAAsB,CAAC;IAChC,CAAC;IACD,OAAO,uBAAuB,CAAC;AACjC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Export CLI commands: set-theme, export-html, export-pdf, export (batch).
|
|
3
|
+
*
|
|
4
|
+
* These are registered onto the main Commander program in cli.ts.
|
|
5
|
+
*/
|
|
6
|
+
import { Command } from "commander";
|
|
7
|
+
/**
|
|
8
|
+
* Register all export-related commands onto the program.
|
|
9
|
+
*/
|
|
10
|
+
export declare function registerExportCommands(program: Command): void;
|