@iasiv5/dsh-skills 1.0.0 → 1.0.2
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/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +4 -2
- package/skills/answer-me-with-html/SKILL.md +4 -2
- package/skills/answer-me-with-html/scripts/am.mjs +627 -192
- package/skills/guizang-ppt-skill/README.en.md +10 -8
- package/skills/guizang-ppt-skill/README.md +10 -8
- package/skills/guizang-ppt-skill/SKILL.md +20 -16
- package/skills/guizang-ppt-skill/assets/template-swiss.html +1068 -456
- package/skills/guizang-ppt-skill/assets/template.html +991 -225
- package/skills/guizang-ppt-skill/references/checklist.md +5 -4
- package/skills/guizang-ppt-skill/references/components.md +9 -5
- package/skills/guizang-ppt-skill/references/gz-components.md +289 -0
- package/skills/guizang-ppt-skill/references/layouts-swiss.md +17 -17
- package/skills/guizang-ppt-skill/references/layouts.md +1 -1
- package/skills/guizang-ppt-skill/references/themes-swiss.md +57 -86
- package/skills/guizang-ppt-skill/references/themes.md +65 -63
- package/skills/guizang-ppt-skill/scripts/gz-theme.mjs +434 -0
- package/skills/guizang-social-card-skill/HANDOFF.md +19 -1
- package/skills/guizang-social-card-skill/README.en.md +20 -7
- package/skills/guizang-social-card-skill/README.md +20 -7
- package/skills/guizang-social-card-skill/SKILL.md +7 -5
- package/skills/guizang-social-card-skill/assets/template-editorial-card.html +954 -126
- package/skills/guizang-social-card-skill/assets/template-swiss-card.html +588 -84
- package/skills/guizang-social-card-skill/package-lock.json +90 -1
- package/skills/guizang-social-card-skill/package.json +7 -4
- package/skills/guizang-social-card-skill/references/background-systems.md +7 -15
- package/skills/guizang-social-card-skill/references/components.md +16 -10
- package/skills/guizang-social-card-skill/references/gz-components.md +289 -0
- package/skills/guizang-social-card-skill/references/layout-recipes.md +1 -1
- package/skills/guizang-social-card-skill/references/production-workflow.md +10 -12
- package/skills/guizang-social-card-skill/references/style-system.md +1 -1
- package/skills/guizang-social-card-skill/references/theme-presets.md +59 -111
- package/skills/guizang-social-card-skill/scripts/gz-fonts.mjs +654 -0
- package/skills/guizang-social-card-skill/scripts/gz-theme.mjs +434 -0
- package/skills/guizang-social-card-skill/scripts/render.mjs +92 -0
- package/skills/guizang-social-card-skill/validate-social-deck.mjs +11 -6
|
@@ -2,105 +2,95 @@
|
|
|
2
2
|
|
|
3
3
|
Use one theme for one image package. Do not mix palettes across pages unless the user explicitly asks for a deliberate multi-chapter system.
|
|
4
4
|
|
|
5
|
+
<!-- GZ:THEMES:START · generated by guizang-design — do not edit by hand; change guizang-design/tokens/palettes.json and run scripts/sync-skill.mjs -->
|
|
6
|
+
## Switching themes
|
|
7
|
+
|
|
8
|
+
All palettes are inlined in the seed template's `GZ:TOKENS` block. Pick one palette per package and set it with `data-theme` on `<html>` (or on a single `<section class="poster">` when one poster needs a different palette):
|
|
9
|
+
|
|
10
|
+
```html
|
|
11
|
+
<html lang="zh-CN" data-theme="indigo-porcelain"> <!-- Editorial -->
|
|
12
|
+
<html lang="zh-CN" data-theme="lemon"> <!-- Swiss -->
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Old Swiss decks that use `data-accent="ikb | lemon-yellow | lemon-green | safety-orange"` still work. Do not edit the `GZ:TOKENS` block and do not write hex values in posters. Use the semantic variables:
|
|
16
|
+
|
|
17
|
+
| Variable | Use |
|
|
18
|
+
|---|---|
|
|
19
|
+
| `--paper` / `--ink` | background / primary text |
|
|
20
|
+
| `--text-body` / `--text-secondary` / `--text-helper` | body / secondary / helper text, contrast-checked (use instead of opacity) |
|
|
21
|
+
| `--line` / `--line-strong` / `--line-subtle` | rules and hairlines |
|
|
22
|
+
| `--accent` | accent fills, rules, dots |
|
|
23
|
+
| `--accent-ink` | accent as **small text** (light accents are darkened until readable) |
|
|
24
|
+
| `--accent-display` | accent as **large text** (titles, big numbers) |
|
|
25
|
+
| `--accent-on` | text on an accent fill (dark on lemon / lemon green, white on IKB / orange) |
|
|
26
|
+
|
|
27
|
+
### The user has a brand colour or logo colour
|
|
28
|
+
|
|
29
|
+
Do not use it directly. Run:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
node <SKILL_ROOT>/scripts/gz-theme.mjs brand "#4D6BFE" --family magazine # Editorial
|
|
33
|
+
node <SKILL_ROOT>/scripts/gz-theme.mjs brand "#4D6BFE" --family swiss # Swiss
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Paste the printed `[data-theme="brand"]{…}` at the end of the page `<style>` and set `data-theme="brand"`. The script moves the colour into the lightness / chroma range of the hand-tuned palettes and checks WCAG + APCA contrast; when it refuses, it says why — fall back to a preset. Editorial keeps chroma at or below 0.12, so a saturated brand colour comes out noticeably calmer (e.g. #FF2442 → #b75a59, printed in the first comment line); when the brand must stay vivid, use Swiss.
|
|
37
|
+
|
|
38
|
+
### Editorial palette values
|
|
39
|
+
|
|
40
|
+
| Theme | data-theme | paper | ink | accent | accent-ink | accent-on | body contrast (WCAG / APCA) |
|
|
41
|
+
|---|---|---|---|---|---|---|---|
|
|
42
|
+
| 🖋 Ink Classic (default) | `ink-classic` | `#f1efea` | `#0a0a0b` | `#111111` | `#111111` | `#f1efea` | 12.3 / 91 |
|
|
43
|
+
| 🌊 Indigo Porcelain | `indigo-porcelain` | `#f1f3f5` | `#0a1f3d` | `#315d93` | `#315d93` | `#f1f3f5` | 9.3 / 87 |
|
|
44
|
+
| 🌿 Forest Ink | `forest-ink` | `#f5f1e8` | `#1a2e1f` | `#2e6b4f` | `#2e6b4f` | `#f5f1e8` | 8.0 / 83 |
|
|
45
|
+
| 🍂 Kraft Paper | `kraft-paper` | `#eedfc7` | `#2a1e13` | `#9b5a2e` | `#804212` | `#eedfc7` | 8.1 / 77 |
|
|
46
|
+
| 🌙 Dune | `dune` | `#f0e6d2` | `#1f1a14` | `#8f7650` | `#705833` | `#f0e6d2` | 9.2 / 82 |
|
|
47
|
+
| 🌑 Midnight Ink | `midnight-ink` | `#0e0d0c` | `#ece2cf` | `#d4a04a` | `#e0ab56` | `#0e0d0c` | 12.2 / 76 |
|
|
48
|
+
|
|
49
|
+
### Swiss palette values
|
|
50
|
+
|
|
51
|
+
| Theme | data-theme | paper | ink | accent | accent-ink | accent-on | body contrast (WCAG / APCA) |
|
|
52
|
+
|---|---|---|---|---|---|---|---|
|
|
53
|
+
| 🔵 IKB (default) | `ikb` | `#fafaf8` | `#0a0a0a` | `#002FA7` | `#002FA7` | `#ffffff` | 14.7 / 99 |
|
|
54
|
+
| 🟡 Lemon | `lemon` | `#fafaf8` | `#0a0a0a` | `#FFD500` | `#7a5f00` | `#0a0a0a` | 14.7 / 99 |
|
|
55
|
+
| 🟢 Lemon Green | `lemon-green` | `#fafaf8` | `#0a0a0a` | `#C5E803` | `#4a6400` | `#0a0a0a` | 14.7 / 99 |
|
|
56
|
+
| 🟠 Safety Orange | `safety-orange` | `#fafaf8` | `#0a0a0a` | `#FF6B35` | `#c2410c` | `#ffffff` | 14.7 / 99 |
|
|
57
|
+
<!-- GZ:THEMES:END -->
|
|
58
|
+
|
|
5
59
|
## Editorial Magazine x E-ink Palettes
|
|
6
60
|
|
|
61
|
+
Exact values are in the generated tables above; the notes below say when to use each palette.
|
|
62
|
+
|
|
7
63
|
These are adapted from the Guizang PPT electronic-magazine mode for static Rednote and WeChat images.
|
|
8
64
|
|
|
9
65
|
### Ink Classic
|
|
10
66
|
|
|
11
67
|
Use for business commentary, AI essays, product thinking, and neutral editorial posts.
|
|
12
68
|
|
|
13
|
-
```css
|
|
14
|
-
:root {
|
|
15
|
-
--paper: #f3f0e8;
|
|
16
|
-
--paper-2: #ebe6da;
|
|
17
|
-
--ink: #0a0a0b;
|
|
18
|
-
--muted: #68625a;
|
|
19
|
-
--line: rgba(10,10,11,.22);
|
|
20
|
-
--accent: #111111;
|
|
21
|
-
--accent-soft: #d8d2c6;
|
|
22
|
-
}
|
|
23
|
-
```
|
|
24
69
|
|
|
25
70
|
### Indigo Porcelain
|
|
26
71
|
|
|
27
72
|
Use for technology, research, data, AI infrastructure, and calm analytical writing.
|
|
28
73
|
|
|
29
|
-
```css
|
|
30
|
-
:root {
|
|
31
|
-
--paper: #f2f4f5;
|
|
32
|
-
--paper-2: #e5ebef;
|
|
33
|
-
--ink: #0a1f3d;
|
|
34
|
-
--muted: #5f6d78;
|
|
35
|
-
--line: rgba(10,31,61,.20);
|
|
36
|
-
--accent: #315d93;
|
|
37
|
-
--accent-soft: #d7e1ec;
|
|
38
|
-
}
|
|
39
|
-
```
|
|
40
74
|
|
|
41
75
|
### Forest Ink
|
|
42
76
|
|
|
43
77
|
Use for hiking, outdoor, nature, sustainability, personal field notes, and grounded lifestyle posts.
|
|
44
78
|
|
|
45
|
-
```css
|
|
46
|
-
:root {
|
|
47
|
-
--paper: #f5f1e8;
|
|
48
|
-
--paper-2: #e8dfcf;
|
|
49
|
-
--ink: #16251b;
|
|
50
|
-
--muted: #5d665d;
|
|
51
|
-
--line: rgba(22,37,27,.22);
|
|
52
|
-
--accent: #2e6b4f;
|
|
53
|
-
--accent-soft: #d4dfd2;
|
|
54
|
-
}
|
|
55
|
-
```
|
|
56
79
|
|
|
57
80
|
### Kraft Paper
|
|
58
81
|
|
|
59
82
|
Use for memory, craft, personal essays, old objects, creator notes, and warm low-tech topics.
|
|
60
83
|
|
|
61
|
-
```css
|
|
62
|
-
:root {
|
|
63
|
-
--paper: #eedfc7;
|
|
64
|
-
--paper-2: #dfc9a8;
|
|
65
|
-
--ink: #2a1e13;
|
|
66
|
-
--muted: #755f49;
|
|
67
|
-
--line: rgba(42,30,19,.24);
|
|
68
|
-
--accent: #9b5a2e;
|
|
69
|
-
--accent-soft: #d5b58f;
|
|
70
|
-
}
|
|
71
|
-
```
|
|
72
84
|
|
|
73
85
|
### Dune
|
|
74
86
|
|
|
75
87
|
Use for design, object studies, portfolio-like covers, gallery tone, and restrained aesthetic posts.
|
|
76
88
|
|
|
77
|
-
```css
|
|
78
|
-
:root {
|
|
79
|
-
--paper: #f0e6d2;
|
|
80
|
-
--paper-2: #ded0b7;
|
|
81
|
-
--ink: #1f1a14;
|
|
82
|
-
--muted: #6f6557;
|
|
83
|
-
--line: rgba(31,26,20,.22);
|
|
84
|
-
--accent: #8f7650;
|
|
85
|
-
--accent-soft: #d4c2a4;
|
|
86
|
-
}
|
|
87
|
-
```
|
|
88
89
|
|
|
89
90
|
### Midnight Ink
|
|
90
91
|
|
|
91
92
|
The **only** official dark Editorial palette. Use for game key art, night photography, cinematic covers, dark-themed cultural pieces — content whose source imagery is already dark and would be diminished by paper backgrounds. Do not improvise other dark palettes; if Midnight Ink does not fit, pick a different mode (Editorial dark is not a universal switch).
|
|
92
93
|
|
|
93
|
-
```css
|
|
94
|
-
:root {
|
|
95
|
-
--paper: #0e0d0c;
|
|
96
|
-
--paper-2: #1a1714;
|
|
97
|
-
--ink: #ece2cf;
|
|
98
|
-
--muted: #9a8c75;
|
|
99
|
-
--line: rgba(236,226,207,.22);
|
|
100
|
-
--accent: #d4a04a;
|
|
101
|
-
--accent-soft: #3a2a14;
|
|
102
|
-
}
|
|
103
|
-
```
|
|
104
94
|
|
|
105
95
|
Midnight Ink **must** also override two background layers — light-paper math does not carry over:
|
|
106
96
|
|
|
@@ -134,75 +124,33 @@ Magazine palette rules:
|
|
|
134
124
|
|
|
135
125
|
## Swiss International Palettes
|
|
136
126
|
|
|
127
|
+
Exact values are in the generated tables above.
|
|
128
|
+
|
|
137
129
|
These are adapted from the Guizang PPT Swiss mode.
|
|
138
130
|
|
|
139
131
|
### IKB Blue
|
|
140
132
|
|
|
141
133
|
Default for AI, technology, product updates, design, and engineering topics.
|
|
142
134
|
|
|
143
|
-
```css
|
|
144
|
-
:root {
|
|
145
|
-
--paper: #fafaf8;
|
|
146
|
-
--ink: #0a0a0a;
|
|
147
|
-
--grey-1: #f0f0ee;
|
|
148
|
-
--grey-2: #d4d4d2;
|
|
149
|
-
--grey-3: #737373;
|
|
150
|
-
--accent: #002FA7;
|
|
151
|
-
--accent-on: #ffffff;
|
|
152
|
-
}
|
|
153
|
-
```
|
|
154
135
|
|
|
155
136
|
### Lemon Yellow
|
|
156
137
|
|
|
157
138
|
Use for young, consumer, active, retail, sporty, or playful information.
|
|
158
139
|
|
|
159
|
-
```css
|
|
160
|
-
:root {
|
|
161
|
-
--paper: #fafaf8;
|
|
162
|
-
--ink: #0a0a0a;
|
|
163
|
-
--grey-1: #f0f0ee;
|
|
164
|
-
--grey-2: #d4d4d2;
|
|
165
|
-
--grey-3: #737373;
|
|
166
|
-
--accent: #FFD500;
|
|
167
|
-
--accent-on: #0a0a0a;
|
|
168
|
-
}
|
|
169
|
-
```
|
|
170
140
|
|
|
171
141
|
### Lemon Green
|
|
172
142
|
|
|
173
143
|
Use for ecology, future, emerging tech, health, and highlighter-like contemporary topics.
|
|
174
144
|
|
|
175
|
-
```css
|
|
176
|
-
:root {
|
|
177
|
-
--paper: #fafaf8;
|
|
178
|
-
--ink: #0a0a0a;
|
|
179
|
-
--grey-1: #f0f0ee;
|
|
180
|
-
--grey-2: #d4d4d2;
|
|
181
|
-
--grey-3: #737373;
|
|
182
|
-
--accent: #C5E803;
|
|
183
|
-
--accent-on: #0a0a0a;
|
|
184
|
-
}
|
|
185
|
-
```
|
|
186
145
|
|
|
187
146
|
### Safety Orange
|
|
188
147
|
|
|
189
148
|
Use for industrial, warning, urgency, risk, decision points, and sharp corrections.
|
|
190
149
|
|
|
191
|
-
```css
|
|
192
|
-
:root {
|
|
193
|
-
--paper: #fafaf8;
|
|
194
|
-
--ink: #0a0a0a;
|
|
195
|
-
--grey-1: #f0f0ee;
|
|
196
|
-
--grey-2: #d4d4d2;
|
|
197
|
-
--grey-3: #737373;
|
|
198
|
-
--accent: #FF6B35;
|
|
199
|
-
--accent-on: #ffffff;
|
|
200
|
-
}
|
|
201
|
-
```
|
|
202
150
|
|
|
203
151
|
Swiss palette rules:
|
|
204
152
|
|
|
205
153
|
- Use exactly one `--accent`.
|
|
206
154
|
- Do not use gradients, shadows, glass, or mixed accent colors.
|
|
207
|
-
-
|
|
155
|
+
- Text on an accent fill uses `var(--accent-on)` (dark on yellow / green, white on IKB / orange). Accent-coloured text on paper uses `var(--accent-ink)` (small) or `var(--accent-display)` (large) — never raw `var(--accent)`, which is invisible on paper for yellow / green.
|
|
208
156
|
- Prefer pure blocks, hairline rules, and grid rhythm.
|