octocode-cli 1.3.1 → 1.5.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.
- package/README.md +193 -34
- package/out/chunks/chunk-7476PETK.js +309 -0
- package/out/chunks/chunk-CVNNNSMQ.js +26 -0
- package/out/chunks/chunk-OQBJTZWK.js +60 -0
- package/out/chunks/chunk-UCZCF3BQ.js +9 -0
- package/out/chunks/command-help-specs-JZXVSLZ5.js +8 -0
- package/out/chunks/commands-XBFPLHSQ.js +8 -0
- package/out/chunks/help-P7TCOYAJ.js +10 -0
- package/out/chunks/main-help-ULF5PAQY.js +10 -0
- package/out/chunks/prompts-5E6VKRX5.js +8 -0
- package/out/chunks/spinner-URV2OX6O.js +8 -0
- package/out/chunks/tool-command-M6VA7P2F.js +8 -0
- package/out/octocode-cli.js +1 -1
- package/package.json +5 -3
- package/skills/README.md +13 -1
- package/skills/agentic-flow-best-practices/SKILL.md +280 -0
- package/skills/agentic-flow-best-practices/references/agent-collaboration-patterns.md +75 -0
- package/skills/agentic-flow-best-practices/references/pr-review-agent-example.md +47 -0
- package/skills/agentic-flow-best-practices/references/resources.md +112 -0
- package/skills/octocode-chrome-devtools/README.md +541 -0
- package/skills/octocode-chrome-devtools/SKILL.md +197 -0
- package/skills/octocode-chrome-devtools/agents/openai.yaml +7 -0
- package/skills/octocode-chrome-devtools/references/CDP_AGENT_REFERENCE.md +401 -0
- package/skills/octocode-chrome-devtools/references/CHROME_FLAGS.md +234 -0
- package/skills/octocode-chrome-devtools/references/INTENTS.md +108 -0
- package/skills/octocode-chrome-devtools/references/INTENTS_AUTH.md +179 -0
- package/skills/octocode-chrome-devtools/references/INTENTS_AUTOMATION.md +214 -0
- package/skills/octocode-chrome-devtools/references/INTENTS_DEBUG.md +329 -0
- package/skills/octocode-chrome-devtools/references/INTENTS_ENVIRONMENT.md +237 -0
- package/skills/octocode-chrome-devtools/references/INTENTS_INSPECT.md +263 -0
- package/skills/octocode-chrome-devtools/references/INTENTS_STORAGE_CONSENT.md +214 -0
- package/skills/octocode-chrome-devtools/references/RECOVERY.md +39 -0
- package/skills/octocode-chrome-devtools/references/SCRIPT_PATTERNS.md +43 -0
- package/skills/octocode-chrome-devtools/references/SCRIPT_PATTERNS_ASYNC_WORKERS.md +345 -0
- package/skills/octocode-chrome-devtools/references/SCRIPT_PATTERNS_BROWSER.md +403 -0
- package/skills/octocode-chrome-devtools/references/SCRIPT_PATTERNS_OBSERVE.md +275 -0
- package/skills/octocode-chrome-devtools/references/SCRIPT_PATTERNS_SPECIAL.md +18 -0
- package/skills/octocode-chrome-devtools/scripts/cdp-runner.mjs +503 -0
- package/skills/octocode-chrome-devtools/scripts/cdp-sandbox.mjs +123 -0
- package/skills/octocode-chrome-devtools/scripts/cdp-template.mjs +81 -0
- package/skills/octocode-chrome-devtools/scripts/octocode-chrome-devtools.vpn.example.json +8 -0
- package/skills/octocode-chrome-devtools/scripts/open-browser.mjs +362 -0
- package/skills/octocode-chrome-devtools/scripts/sourcemap-resolver.mjs +193 -0
- package/skills/octocode-chrome-devtools/scripts/undercover.mjs +226 -0
- package/skills/octocode-design/README.md +2 -2
- package/skills/octocode-documentation-writer/README.md +1 -1
- package/skills/octocode-engineer/README.md +1 -1
- package/skills/octocode-engineer/SKILL.md +4 -2
- package/skills/octocode-engineer/references/output-files.md +3 -3
- package/skills/octocode-engineer/scripts/run.js +136 -136
- package/skills/octocode-engineer/src/reporting/summary-md.test.ts +48 -0
- package/skills/octocode-engineer/src/reporting/summary-md.ts +43 -2
- package/skills/octocode-install/SKILL.md +1 -1
- package/skills/octocode-pull-request-reviewer/README.md +5 -5
- package/skills/octocode-pull-request-reviewer/SKILL.md +1 -1
- package/skills/octocode-research/AGENTS.md +1 -1
- package/skills/octocode-research/README.md +2 -2
- package/skills/octocode-research/docs/ARCHITECTURE.md +1 -1
- package/skills/octocode-research/scripts/server.js +191 -246
- package/skills/octocode-research/src/routes/github.ts +4 -21
- package/skills/octocode-research/src/routes/local.ts +4 -21
- package/skills/octocode-research/src/utils/fileContentTransform.ts +44 -0
- package/skills/octocode-search-skill/SKILL.md +245 -229
- package/skills/octocode-search-skill/references/agent-skills-guide.md +177 -0
- package/skills/octocode-search-skill/references/discovery-surfaces.md +162 -0
- package/skills/octocode-search-skill/references/fetch-and-create-locally.md +57 -0
- package/skills/octocode-search-skill/references/install-reference.md +130 -0
- package/skills/octocode-search-skill/references/references-template.md +27 -0
- package/skills/octocode-search-skill/references/references.md +62 -0
- package/skills/octocode-slides/README.md +307 -0
- package/skills/octocode-slides/SKILL.md +410 -0
- package/skills/octocode-slides/references/01-brief.md +156 -0
- package/skills/octocode-slides/references/02-research.md +149 -0
- package/skills/octocode-slides/references/03-outline.md +172 -0
- package/skills/octocode-slides/references/04-design.md +301 -0
- package/skills/octocode-slides/references/05-implementation.md +213 -0
- package/skills/octocode-slides/references/06-review.md +258 -0
- package/skills/octocode-slides/references/animation.md +281 -0
- package/skills/octocode-slides/references/design-system.md +316 -0
- package/skills/octocode-slides/references/html-templates.md +673 -0
- package/skills/octocode-slides/references/image-generation.md +448 -0
- package/skills/octocode-slides/references/resources.md +840 -0
- package/skills/octocode-slides/references/slide-rules.md +541 -0
- package/skills/octocode-slides/references/wireframes.md +727 -0
- package/skills/octocode-slides/scripts/animation.js +182 -0
- package/skills/octocode-slides/scripts/base.css +353 -0
- package/skills/octocode-slides/scripts/base.html +655 -0
- package/skills/octocode-slides/scripts/generate_image.py +221 -0
- package/skills/octocode-slides/scripts/navbridge.js +79 -0
- package/skills/octocode-slides/scripts/presenter.js +316 -0
- package/skills/octocode-slides/scripts/slide.html +248 -0
- package/skills/octocode-stats/SKILL.md +73 -0
- package/skills/octocode-stats/assets/template.html +1332 -0
- package/skills/octocode-stats/scripts/build_dashboard.mjs +407 -0
- package/assets/example.png +0 -0
- package/out/chunks/chunk-QCY7Q7YW.js +0 -389
- package/out/chunks/command-help-specs-CQ3RBLP6.js +0 -8
- package/out/chunks/commands-OCTZP2TO.js +0 -51
- package/out/chunks/help-XPXP46ZT.js +0 -10
- package/out/chunks/main-help-35HX2UDQ.js +0 -10
- package/out/chunks/tool-command-HOSMVLNK.js +0 -8
- package/skills/octocode-search-skill/INSTALL_REFERENCE.md +0 -112
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
# animation.md — In-Slide Step Animation
|
|
2
|
+
|
|
3
|
+
> Reference for `scripts/animation.js` — the step engine for Octocode Slides.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## What it does
|
|
8
|
+
|
|
9
|
+
`animation.js` lets a single slide reveal its content **one component at a time**, controlled by the same `→` / `←` keys the presenter already uses to navigate between slides.
|
|
10
|
+
|
|
11
|
+
| Key | Behaviour when steps remain | Behaviour when no steps remain |
|
|
12
|
+
|-----|-----------------------------|-------------------------------|
|
|
13
|
+
| `→` / `Space` / `↓` | Reveal the next step | Advance to the next slide |
|
|
14
|
+
| `←` / `↑` | Hide the last visible step | Retreat to the previous slide |
|
|
15
|
+
|
|
16
|
+
The slide never advances until all steps have been shown. The slide never retreats until all shown steps have been hidden. Slide authors only opt in per slide; the deck-level controller already knows how to route step-aware keys through the active iframe.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## How it works (technical summary)
|
|
21
|
+
|
|
22
|
+
`animation.js` adds a `keydown` listener in **capture phase** on the slide's `document`. Because it is loaded **before** `navbridge.js`, its handler fires first. When a step is consumed, it calls `e.stopImmediatePropagation()` — `navbridge.js` never sees the event, so the parent (`index.html`) is never told to change slides.
|
|
23
|
+
|
|
24
|
+
When all steps are exhausted in the current direction, the key passes through normally to navbridge, which forwards it to the parent, and normal slide navigation resumes.
|
|
25
|
+
|
|
26
|
+
### Full event flow (parent-window focus)
|
|
27
|
+
|
|
28
|
+
When the parent `index.html` has keyboard focus — initial load, browser chrome refocus, overview close, or other parent-level interaction — raw nav keys would otherwise bypass `animation.js` and jump straight to `go()`. `base.html` avoids that by routing step-aware nav keys through the active iframe first:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
User presses → / ← (parent window has focus)
|
|
32
|
+
│
|
|
33
|
+
▼
|
|
34
|
+
index.html handleKey() — no passthrough flag
|
|
35
|
+
└── postMessage {type:'octocode-slides:key', key} to active iframe
|
|
36
|
+
│
|
|
37
|
+
▼
|
|
38
|
+
navbridge.js message listener — dispatches synthetic keydown
|
|
39
|
+
│
|
|
40
|
+
▼
|
|
41
|
+
animation.js (capture, runs first)
|
|
42
|
+
├── step available in that direction?
|
|
43
|
+
│ └── showNext() / hideLast() + stopImmediatePropagation
|
|
44
|
+
│ └── navbridge keydown listener NEVER fires
|
|
45
|
+
│ └── no postMessage back → parent stays on slide ✓
|
|
46
|
+
│
|
|
47
|
+
└── no step left in that direction? → falls through
|
|
48
|
+
│
|
|
49
|
+
▼
|
|
50
|
+
navbridge.js keydown listener
|
|
51
|
+
└── postMessage {type:'octocode-slides:nav', key} to parent
|
|
52
|
+
│
|
|
53
|
+
▼
|
|
54
|
+
index.html message handler
|
|
55
|
+
└── handleKey({passthrough:true}) → go(next/previous) ✓
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### When the iframe already has focus (user clicked inside the slide)
|
|
59
|
+
|
|
60
|
+
The same intercept still applies, but the first keydown is real instead of synthetic: `animation.js` intercepts in capture phase, and navbridge forwards only unconsumed keys to the parent.
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
User presses → / ← (iframe has focus)
|
|
64
|
+
│
|
|
65
|
+
▼
|
|
66
|
+
animation.js (capture, runs first)
|
|
67
|
+
├── step available in that direction? → consume + stopImmediatePropagation → parent stays on slide
|
|
68
|
+
└── no step left in that direction? → fall through
|
|
69
|
+
│
|
|
70
|
+
▼
|
|
71
|
+
navbridge.js (capture, runs second)
|
|
72
|
+
└── postMessage → parent handleKey({passthrough:true}) → go(next/previous)
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Required loading order
|
|
79
|
+
|
|
80
|
+
`animation.js` **must be loaded before `navbridge.js`** so its event listener registers first and intercepts keys before navbridge forwards them.
|
|
81
|
+
|
|
82
|
+
```html
|
|
83
|
+
<!-- In every slide that uses steps — before </body> -->
|
|
84
|
+
<script src="../js/animation.js"></script> <!-- ← FIRST -->
|
|
85
|
+
<script src="../js/navbridge.js"></script> <!-- ← always last -->
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Slides that do not use steps can omit `animation.js` entirely — navbridge behaviour is unaffected.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Marking steps
|
|
93
|
+
|
|
94
|
+
Add `data-step="N"` to any element. `N` is a 1-based integer that controls reveal order. Elements without `data-step` are always visible.
|
|
95
|
+
|
|
96
|
+
```html
|
|
97
|
+
<!-- Ordered by data-step value -->
|
|
98
|
+
<li data-step="1">First point — revealed on first →</li>
|
|
99
|
+
<li data-step="2">Second point — revealed on second →</li>
|
|
100
|
+
<li data-step="3">Third point — revealed on third →</li>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### DOM-order fallback
|
|
104
|
+
|
|
105
|
+
If `data-step` has no value (or a non-numeric value), DOM order is used as the fallback. You can mix explicit and implicit ordering — explicit numbers always sort before implicit ones.
|
|
106
|
+
|
|
107
|
+
```html
|
|
108
|
+
<!-- All three reveal in DOM order because no numeric value is given -->
|
|
109
|
+
<div data-step>Alpha</div>
|
|
110
|
+
<div data-step>Beta</div>
|
|
111
|
+
<div data-step>Gamma</div>
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Default animation
|
|
117
|
+
|
|
118
|
+
The script injects these defaults via a `<style>` block:
|
|
119
|
+
|
|
120
|
+
```css
|
|
121
|
+
/* Hidden state (before reveal) */
|
|
122
|
+
[data-step] {
|
|
123
|
+
opacity: 0;
|
|
124
|
+
transform: translateY(14px);
|
|
125
|
+
transition: opacity 320ms cubic-bezier(.4,0,.2,1),
|
|
126
|
+
transform 320ms cubic-bezier(.4,0,.2,1);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* Visible state (after reveal) */
|
|
130
|
+
[data-step].step-visible {
|
|
131
|
+
opacity: 1;
|
|
132
|
+
transform: translateY(0);
|
|
133
|
+
}
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
The transition reverses automatically when a step is hidden (on `←`).
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## Customising the animation
|
|
141
|
+
|
|
142
|
+
Override the default animation in the slide's local `<style>` block. Define both states — the hidden default AND the visible override:
|
|
143
|
+
|
|
144
|
+
```html
|
|
145
|
+
<style>
|
|
146
|
+
/* Example: slide in from the left */
|
|
147
|
+
[data-step] {
|
|
148
|
+
opacity: 0;
|
|
149
|
+
transform: translateX(-24px);
|
|
150
|
+
transition: opacity 280ms ease, transform 280ms ease;
|
|
151
|
+
}
|
|
152
|
+
[data-step].step-visible {
|
|
153
|
+
opacity: 1;
|
|
154
|
+
transform: translateX(0);
|
|
155
|
+
}
|
|
156
|
+
</style>
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Staggered delays
|
|
160
|
+
|
|
161
|
+
Use `transition-delay` on individual elements or CSS nth selectors:
|
|
162
|
+
|
|
163
|
+
```html
|
|
164
|
+
<style>
|
|
165
|
+
[data-step]:nth-of-type(2) { transition-delay: 60ms; }
|
|
166
|
+
[data-step]:nth-of-type(3) { transition-delay: 120ms; }
|
|
167
|
+
</style>
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
Or set inline:
|
|
171
|
+
|
|
172
|
+
```html
|
|
173
|
+
<li data-step="1">Fast</li>
|
|
174
|
+
<li data-step="2" style="transition-delay:80ms">Delayed</li>
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## Optional step indicator
|
|
180
|
+
|
|
181
|
+
Add `data-step-indicator` to the slide root element to enable a small dot bar that tracks how many steps have been revealed:
|
|
182
|
+
|
|
183
|
+
```html
|
|
184
|
+
<div class="slide slide--content" data-step-indicator>
|
|
185
|
+
<!-- … slide content … -->
|
|
186
|
+
</div>
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
The dot bar appears fixed at the bottom-centre of the slide. Active dots fill white; pending dots are dim. Customise via CSS:
|
|
190
|
+
|
|
191
|
+
```css
|
|
192
|
+
.step-indicator { bottom: 28px; gap: 8px; } /* reposition / spacing */
|
|
193
|
+
.step-dot { width: 8px; height: 8px; } /* dot size */
|
|
194
|
+
.step-dot.is-done { background: var(--accent); } /* use theme accent */
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## Full example — content slide with steps
|
|
200
|
+
|
|
201
|
+
```html
|
|
202
|
+
<!DOCTYPE html>
|
|
203
|
+
<html lang="en">
|
|
204
|
+
<head>
|
|
205
|
+
<meta charset="UTF-8">
|
|
206
|
+
<title>Three Wins</title>
|
|
207
|
+
<link rel="stylesheet" href="../css/base.css">
|
|
208
|
+
<link rel="stylesheet" href="../css/theme.css">
|
|
209
|
+
</head>
|
|
210
|
+
<body>
|
|
211
|
+
<div class="slide slide--content" data-step-indicator>
|
|
212
|
+
<header class="slide-header">
|
|
213
|
+
<h1>Three things that changed everything</h1>
|
|
214
|
+
</header>
|
|
215
|
+
|
|
216
|
+
<main class="slide-content">
|
|
217
|
+
<ul class="content-list">
|
|
218
|
+
<li data-step="1">Deploy time dropped from 45 min to 4 min</li>
|
|
219
|
+
<li data-step="2">Error rate fell 60 % after adding type safety</li>
|
|
220
|
+
<li data-step="3">Team onboarding time cut in half</li>
|
|
221
|
+
</ul>
|
|
222
|
+
</main>
|
|
223
|
+
</div>
|
|
224
|
+
|
|
225
|
+
<!-- Steps load first, navbridge second — order is required -->
|
|
226
|
+
<script src="../js/animation.js"></script>
|
|
227
|
+
<script src="../js/navbridge.js"></script>
|
|
228
|
+
</body>
|
|
229
|
+
</html>
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
**Navigation flow for this slide:**
|
|
233
|
+
1. Slide loads — all three `<li>` elements are invisible
|
|
234
|
+
2. First `→` → "Deploy time…" fades up
|
|
235
|
+
3. Second `→` → "Error rate…" fades up
|
|
236
|
+
4. Third `→` → "Team onboarding…" fades up
|
|
237
|
+
5. Fourth `→` → slide advances to the next slide
|
|
238
|
+
6. First `←` (from later slide): retreat to this slide (all steps visible)
|
|
239
|
+
7. Next `←` → "Team onboarding…" fades out
|
|
240
|
+
8. Next `←` → "Error rate…" fades out
|
|
241
|
+
9. Next `←` → "Deploy time…" fades out
|
|
242
|
+
10. Next `←` → retreat to the previous slide
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
## Step state on return
|
|
247
|
+
|
|
248
|
+
When a slide is revisited (e.g. you advanced past it and pressed `←` to come back), its step state is preserved — all previously revealed steps remain visible. This is intentional: returning to a slide you already walked through does not force you to step through it again.
|
|
249
|
+
|
|
250
|
+
To reset steps, reload the page or navigate away and back across a full reload boundary.
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
## Slides without steps
|
|
255
|
+
|
|
256
|
+
If a slide has no `[data-step]` elements, `animation.js` is a complete no-op — it adds no visible CSS, registers no effective handler, and does not affect navbridge or slide-change timing. You can safely include `animation.js` in a slide template even if that slide has no steps.
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
## Checklist for slide authors
|
|
261
|
+
|
|
262
|
+
- [ ] `animation.js` loaded **before** `navbridge.js` in the slide HTML
|
|
263
|
+
- [ ] Every step element has `data-step="N"` with a unique integer value
|
|
264
|
+
- [ ] Step values are 1-based and sequential (1, 2, 3 …); gaps are allowed (1, 3, 5 …)
|
|
265
|
+
- [ ] Content that should always be visible does **not** have `data-step`
|
|
266
|
+
- [ ] Slide title / header does **not** have `data-step` (it must be visible on entry)
|
|
267
|
+
- [ ] Tested: all steps reveal correctly on `→`, hide correctly on `←`
|
|
268
|
+
- [ ] Tested: after last step, next `→` advances to the next slide
|
|
269
|
+
- [ ] Tested: before first step, `←` retreats to the previous slide
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
## Integration with the Phase 5 implementation checklist
|
|
274
|
+
|
|
275
|
+
When building a slide with steps, add this row to the Phase 5 template alignment check:
|
|
276
|
+
|
|
277
|
+
| Check | Pass condition |
|
|
278
|
+
|-------|---------------|
|
|
279
|
+
| animation.js loaded before navbridge | `<script src="../js/animation.js">` appears before `<script src="../js/navbridge.js">` in the same slide file |
|
|
280
|
+
|
|
281
|
+
Do not add `animation.js` to `index.html` or `js/navbridge.js` — it is a per-slide script, not a deck-level script.
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
# Design System Reference — Octocode Slides
|
|
2
|
+
|
|
3
|
+
Read at Phase 4 start (before any design decisions).
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## CSS Variable Contract
|
|
8
|
+
|
|
9
|
+
`scripts/base.css` (copied verbatim to `css/base.css`) defines these variables. `theme.css` overrides them. Slide HTML uses them via `var(...)`. No slide ever sets a raw color, font-family, or font-size.
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
--bg slide background
|
|
13
|
+
--surface card / panel backgrounds
|
|
14
|
+
--border dividers, code block edges
|
|
15
|
+
--accent one focal element per slide
|
|
16
|
+
--text body text
|
|
17
|
+
--muted captions, metadata, labels
|
|
18
|
+
--code-bg code block background
|
|
19
|
+
--code-text code block text
|
|
20
|
+
--font-head heading font stack
|
|
21
|
+
--font-body body font stack
|
|
22
|
+
--font-mono monospace font stack
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Typography scale (defined in base.css using `clamp()` only):
|
|
26
|
+
`--t-display --t-title --t-sub --t-body --t-small --t-code`
|
|
27
|
+
|
|
28
|
+
Calibration bands:
|
|
29
|
+
|
|
30
|
+
| Token | Target range | Use |
|
|
31
|
+
|-------|-------------|-----|
|
|
32
|
+
| `--t-display` | 48–64pt | Title slide headline |
|
|
33
|
+
| `--t-title` | 28–44pt | Slide heading |
|
|
34
|
+
| `--t-sub` | 22–28pt | Sub-heading, key number |
|
|
35
|
+
| `--t-body` | 18–24pt | Bullets, paragraphs |
|
|
36
|
+
| `--t-small` | 14–18pt | Captions, source lines |
|
|
37
|
+
| `--t-code` | 14–18pt | Code blocks |
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Slide Title Contract
|
|
42
|
+
|
|
43
|
+
Claim-sentence vs topic-label rule lives in `slide-rules.md §1.2` (master rule set) and is summarised in `SKILL.md → Operating principles`. This file does not restate it — but every CSS decision below assumes titles carry meaning, not labels.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Design Reasoning
|
|
48
|
+
|
|
49
|
+
The reasoning chain that drives every aesthetic decision lives in `references/04-design.md → Design Reasoning Chain`. Walk that chain *before* opening this document — the answers there determine which sections of the design system you actually need.
|
|
50
|
+
|
|
51
|
+
This file is the visual *contract*: tokens, palettes, typography presets, font pairings. It is not the *process*.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Theme Authoring — rules of thumb
|
|
56
|
+
|
|
57
|
+
The Phase 4 process is in `04-design.md`; this section captures the rules that process applies. Use these alongside the Design Reasoning Chain — not as a replacement.
|
|
58
|
+
|
|
59
|
+
**Audience signals → visual posture (a starting frame, not a verdict):**
|
|
60
|
+
|
|
61
|
+
| Audience | What it suggests |
|
|
62
|
+
|----------|-----------------|
|
|
63
|
+
| Developers / technical | High contrast, code-native fonts, readable from distance |
|
|
64
|
+
| Executives / investors | Premium restraint, serif or distinctive sans, limited palette |
|
|
65
|
+
| Creative / product | More expressive color and layout, personality over safety |
|
|
66
|
+
| Academic / research | Clean, readable, data-forward — legibility over style |
|
|
67
|
+
| Mixed / public | Light background, clear hierarchy, no niche aesthetics |
|
|
68
|
+
|
|
69
|
+
**Font pairing rules:**
|
|
70
|
+
- Two fonts maximum (one heading, one body). Monospace adds a third for code.
|
|
71
|
+
- Heading font should have *character* — chosen, not defaulted (Inter / Roboto alone fail Visual Slop).
|
|
72
|
+
- Body font legible at 18–22pt on screen.
|
|
73
|
+
- The pair should feel related: both geometric, both humanist, or contrast intentionally (serif heading + sans body).
|
|
74
|
+
|
|
75
|
+
**Color order — pick in this sequence so contrast and hierarchy fall out naturally:**
|
|
76
|
+
1. `--bg` (the base — sets the entire mood)
|
|
77
|
+
2. `--text` (contrast ≥ 4.5:1 against `--bg` — non-negotiable)
|
|
78
|
+
3. `--accent` (one focused punch; used on ≤3 elements per slide)
|
|
79
|
+
4. `--surface`, `--border`, `--muted` (usually derived from `--bg`)
|
|
80
|
+
5. `--code-bg`, `--code-text` (readable mono colors that feel cohesive with the theme)
|
|
81
|
+
|
|
82
|
+
Use OKLCH for dark/muted themes to get perceptually uniform lightness steps.
|
|
83
|
+
Validate every `--text` / `--bg` pair at `https://webaim.org/resources/contrastchecker`.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Theme Selection Matrix
|
|
88
|
+
|
|
89
|
+
When a user gives a strong context signal, use this as a starting-point compass — not a final answer:
|
|
90
|
+
|
|
91
|
+
| Audience | Explore these aesthetics first |
|
|
92
|
+
|----------|-----------------------------|
|
|
93
|
+
| Developers / engineers | Dark + monospace or geometric sans, cool accent |
|
|
94
|
+
| Business / executives | Dark premium or editorial light, warm or neutral |
|
|
95
|
+
| Designers / creatives | Warm editorial, expressive type, strong accent |
|
|
96
|
+
| Academics / researchers | Light, serif heading, data-forward, restrained accent |
|
|
97
|
+
| Marketing / product | High-energy color, bold display font, modern sans |
|
|
98
|
+
| Mixed / general | Light background, legible sans, subtle accent |
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Font Pairing Presets
|
|
103
|
+
|
|
104
|
+
Validated pairings across common contexts. All on Google Fonts or Fontshare (free).
|
|
105
|
+
|
|
106
|
+
| Context | Heading | Body | Note |
|
|
107
|
+
|---------|---------|------|------|
|
|
108
|
+
| Modern corporate | Outfit | Source Sans 3 | Clean, not generic |
|
|
109
|
+
| Startup pitch | Poppins Bold | DM Sans | Friendly confidence |
|
|
110
|
+
| Creative / editorial | Fraunces | Plus Jakarta Sans | Striking contrast |
|
|
111
|
+
| Technical / data | IBM Plex Mono | IBM Plex Sans | Cohesive family |
|
|
112
|
+
| Warm editorial | Instrument Serif | Sora | Uncommon serif presence |
|
|
113
|
+
| Dark keynote | Cabinet Grotesk ExtraBold | General Sans | Display weight impact |
|
|
114
|
+
| Research / academic | Lora | Inter | Authoritative + readable |
|
|
115
|
+
| Dev talk | JetBrains Mono | Space Grotesk | Code-native personality |
|
|
116
|
+
|
|
117
|
+
Treat these as starting points for research, not the only options.
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Curated Palette Library
|
|
122
|
+
|
|
123
|
+
Five battle-tested palettes with validated WCAG AA contrast ratios. Use these as a starting point for Phase 4 or as direct overrides when the brief gives a strong context signal. Validate modified values at `https://webaim.org/resources/contrastchecker` before shipping when contrast is uncertain.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
### Graphite — dark cool · developers / tech stage
|
|
128
|
+
High contrast, code-native. Works on dark projectors. Cool-blue accent reads clearly at distance.
|
|
129
|
+
|
|
130
|
+
| Token | Value | Role |
|
|
131
|
+
|-------|-------|------|
|
|
132
|
+
| `--bg` | `#0F1117` | Slide background |
|
|
133
|
+
| `--surface` | `#161B25` | Card / panel |
|
|
134
|
+
| `--border` | `#24293A` | Dividers |
|
|
135
|
+
| `--accent` | `#5A9EFF` | Focal element — contrast **5.2:1** on `--bg` ✓ |
|
|
136
|
+
| `--text` | `#E4E9F2` | Body text — contrast **14.1:1** on `--bg` ✓ |
|
|
137
|
+
| `--muted` | `#6B7694` | Captions |
|
|
138
|
+
| `--code-bg` | `#0A0E16` | Code blocks |
|
|
139
|
+
| `--code-text` | `#79C0FF` | Code text |
|
|
140
|
+
|
|
141
|
+
Recommended pair: **Space Grotesk ExtraBold** / IBM Plex Sans
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
### Cream — light warm · business / editorial / product
|
|
146
|
+
Premium, print-friendly. Terracotta accent feels chosen, not defaulted. Passes easily in bright rooms.
|
|
147
|
+
|
|
148
|
+
| Token | Value | Role |
|
|
149
|
+
|-------|-------|------|
|
|
150
|
+
| `--bg` | `#FAF9F6` | Slide background |
|
|
151
|
+
| `--surface` | `#F0EDE6` | Card / panel |
|
|
152
|
+
| `--border` | `#E0DDD4` | Dividers |
|
|
153
|
+
| `--accent` | `#A84427` | Focal element — contrast **5.8:1** on `--bg` ✓ |
|
|
154
|
+
| `--text` | `#1C1916` | Body text — contrast **17.4:1** on `--bg` ✓ |
|
|
155
|
+
| `--muted` | `#8A867E` | Captions |
|
|
156
|
+
| `--code-bg` | `#EDE9E0` | Code blocks |
|
|
157
|
+
| `--code-text` | `#7A3218` | Code text |
|
|
158
|
+
|
|
159
|
+
Recommended pair: **Fraunces** / Plus Jakarta Sans
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
### Midnight — dark warm · keynote / executive / premium pitch
|
|
164
|
+
Warm purple-black base with gold accent. Feels deliberate and high-end. Differentiates from standard dark themes.
|
|
165
|
+
|
|
166
|
+
| Token | Value | Role |
|
|
167
|
+
|-------|-------|------|
|
|
168
|
+
| `--bg` | `#100E17` | Slide background |
|
|
169
|
+
| `--surface` | `#1A1726` | Card / panel |
|
|
170
|
+
| `--border` | `#2C2840` | Dividers |
|
|
171
|
+
| `--accent` | `#C9A86C` | Focal element — contrast **7.3:1** on `--bg` ✓ |
|
|
172
|
+
| `--text` | `#EDE8F5` | Body text — contrast **15.4:1** on `--bg` ✓ |
|
|
173
|
+
| `--muted` | `#7A7090` | Captions |
|
|
174
|
+
| `--code-bg` | `#0C0A12` | Code blocks |
|
|
175
|
+
| `--code-text` | `#E8D5A3` | Code text |
|
|
176
|
+
|
|
177
|
+
Recommended pair: **Cabinet Grotesk ExtraBold** / General Sans
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
### Blueprint — dark technical · data / architecture / engineering
|
|
182
|
+
Deep navy with muted teal. Signals technical credibility without the neon-dashboard cliché. Good for diagram-heavy decks.
|
|
183
|
+
|
|
184
|
+
| Token | Value | Role |
|
|
185
|
+
|-------|-------|------|
|
|
186
|
+
| `--bg` | `#0B1220` | Slide background |
|
|
187
|
+
| `--surface` | `#101A30` | Card / panel |
|
|
188
|
+
| `--border` | `#1E2E4A` | Dividers |
|
|
189
|
+
| `--accent` | `#4EC9E0` | Focal element — contrast **5.7:1** on `--bg` ✓ |
|
|
190
|
+
| `--text` | `#D8E3F0` | Body text — contrast **13.5:1** on `--bg` ✓ |
|
|
191
|
+
| `--muted` | `#6080A8` | Captions |
|
|
192
|
+
| `--code-bg` | `#071020` | Code blocks |
|
|
193
|
+
| `--code-text` | `#85C9E8` | Code text |
|
|
194
|
+
|
|
195
|
+
Recommended pair: **IBM Plex Mono** / IBM Plex Sans
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
### Nordic — light cool · academic / research / mixed audience
|
|
200
|
+
Soft off-white base with deep navy accent. Universally readable, projects well, passes AAA on text.
|
|
201
|
+
|
|
202
|
+
| Token | Value | Role |
|
|
203
|
+
|-------|-------|------|
|
|
204
|
+
| `--bg` | `#F5F6FA` | Slide background |
|
|
205
|
+
| `--surface` | `#EAECF4` | Card / panel |
|
|
206
|
+
| `--border` | `#D4D8E8` | Dividers |
|
|
207
|
+
| `--accent` | `#2F4FA8` | Focal element — contrast **8.1:1** on `--bg` ✓ WCAG AAA |
|
|
208
|
+
| `--text` | `#1A1D2E` | Body text — contrast **16.3:1** on `--bg` ✓ |
|
|
209
|
+
| `--muted` | `#7880A0` | Captions |
|
|
210
|
+
| `--code-bg` | `#E0E4F0` | Code blocks |
|
|
211
|
+
| `--code-text` | `#1A3A80` | Code text |
|
|
212
|
+
|
|
213
|
+
Recommended pair: **Lora** / Source Sans 3
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
## Design Rules
|
|
218
|
+
|
|
219
|
+
### Typography
|
|
220
|
+
- Heading size: `--t-display` on title/section slides only; `--t-title` everywhere else.
|
|
221
|
+
- Body text below `--t-body` (≈18pt): split the slide instead of shrinking the font.
|
|
222
|
+
- Line height: `1.12` for display, `1.25` for headings, `1.6` for body.
|
|
223
|
+
- Letter spacing: `-0.02em` on display/title, `0` on body.
|
|
224
|
+
- All-caps: title and section slides only; avoid all-caps body text.
|
|
225
|
+
- `calc(-1 * clamp(...))` for negated lengths instead of `-clamp(...)`.
|
|
226
|
+
|
|
227
|
+
### Color
|
|
228
|
+
- Accent: **one focal element per slide** — main heading OR one highlighted figure, not both.
|
|
229
|
+
- Max 3 distinct colors visible per slide: bg, text, accent. Muted is a bg derivative.
|
|
230
|
+
- Dark themes: WCAG AA (4.5:1) minimum. Validate new accents before shipping.
|
|
231
|
+
- Gold/yellow accents only on dark backgrounds — they fail contrast on light.
|
|
232
|
+
|
|
233
|
+
### Layout
|
|
234
|
+
- Slide padding: `var(--pad)` on all sides; usually not tighter than `var(--sp-6)`.
|
|
235
|
+
- **Canonical regions (a slide uses up to four):**
|
|
236
|
+
- `.slide-logo` — optional, top-right brand mark
|
|
237
|
+
- `.slide-header` — optional, holds `.title` + `.description`
|
|
238
|
+
- `.slide-content` — required, smart flex body
|
|
239
|
+
- `.slide-footer` — optional, source / page / link
|
|
240
|
+
Only `.slide-content` is required. Logo and footer are usually deck-wide for visual rhythm, but can be skipped on hero / section slides — pick a posture and stick to it. The skeleton is a contract for *where* things sit when present, not a prescription that every slide must show every region.
|
|
241
|
+
- Centered slide types (`title`, `section`, `quote`, `closing`) center their stack vertically; `title` and `closing` also center horizontally.
|
|
242
|
+
- Per-slide flex / grid wireframes and the content-signal → layout decision table live in `references/wireframes.md`.
|
|
243
|
+
|
|
244
|
+
### Slide Density (hard limits)
|
|
245
|
+
|
|
246
|
+
| Type | What it delivers | Max content |
|
|
247
|
+
|------|-----------------|-------------|
|
|
248
|
+
| `title` | First impression, tone | Title + subtitle + meta (3 lines) |
|
|
249
|
+
| `agenda` | Roadmap — what's coming and why | 4–6 items, short labels |
|
|
250
|
+
| `section` | Topic transition, mental reset | Label + 1-line teaser |
|
|
251
|
+
| `content` | Claim + supporting evidence | Heading + max 4 bullets (12 words each) |
|
|
252
|
+
| `two-col` | Comparison, before/after, two views | Heading + 2 cols × 2–3 bullets |
|
|
253
|
+
| `stats` | A single number that IS the point | 1–2 large numbers + label + 1-line context |
|
|
254
|
+
| `quote` | External credibility, emotional punch | 1 quote ≤ 30 words + attribution |
|
|
255
|
+
| `code` | Working proof, concrete example | 1 code block ≤ 20 lines + title claim |
|
|
256
|
+
| `chart` | Data-driven proof, trend, distribution | 3–5 data points; title states the finding |
|
|
257
|
+
| `image` | Visual proof, atmosphere, diagram | 1 image + title + optional 1-line caption |
|
|
258
|
+
| `timeline` | Sequence, journey, roadmap | 3–5 steps with short labels |
|
|
259
|
+
| `comparison` | Decision matrix, option analysis | 2 cols × 3 rows max |
|
|
260
|
+
| `closing` | Land the conclusion, drive action | Headline + CTA + next step |
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
## Anti-Slop Guide
|
|
265
|
+
|
|
266
|
+
Full anti-pattern list → `references/slide-rules.md` §9. The swap test is in `references/slide-rules.md` §6.4.
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
## Resources
|
|
271
|
+
|
|
272
|
+
**Fonts and color/accessibility tools** → `references/resources.md` → Fonts and Color Tools sections (CDN imports, pairings, contrast checkers).
|
|
273
|
+
|
|
274
|
+
### Design Inspiration
|
|
275
|
+
|
|
276
|
+
**Dribbble** — `https://dribbble.com`
|
|
277
|
+
Filter by "presentation" for headline treatment, data visualization, and section divider patterns.
|
|
278
|
+
|
|
279
|
+
**Behance** — `https://behance.net`
|
|
280
|
+
Filter "presentation" by Most Appreciated for real end-to-end deck compositions.
|
|
281
|
+
|
|
282
|
+
**Slideworks** — `https://slideworks.io/resources/47-real-mckinsey-presentations`
|
|
283
|
+
Real consulting firm decks. Best reference for information-dense layouts and the takeaway-title approach.
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
### HTML Presentation Frameworks (for research and inspiration)
|
|
288
|
+
|
|
289
|
+
**Reveal.js** — `https://revealjs.com` · `https://github.com/hakimel/reveal.js` (68k ⭐)
|
|
290
|
+
Layered CSS theming, `data-auto-animate`, speaker notes. Inspect their themes for layout/spacing ideas.
|
|
291
|
+
|
|
292
|
+
**Slidev** — `https://sli.dev` · `https://github.com/slidevjs/slidev` (34k ⭐)
|
|
293
|
+
Markdown + Vue 3. Strong two-column layouts and code annotation patterns.
|
|
294
|
+
|
|
295
|
+
---
|
|
296
|
+
|
|
297
|
+
### Design Methodology
|
|
298
|
+
|
|
299
|
+
**Extended Frames — Visual Hierarchy** — `https://extendedframes.com/visual-hierarchy-in-design-and-presentation`
|
|
300
|
+
F/Z eye-path patterns, per-slide-type layout archetypes, 10-point pre-delivery checklist.
|
|
301
|
+
|
|
302
|
+
**Chronicle — Visual Presentation Principles** — `https://chroniclehq.com/blog/visual-presentations-tips-types-design-principles`
|
|
303
|
+
Layout, hierarchy levers, consistency, and the most common failure modes.
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
## PDF Export (Optional)
|
|
308
|
+
|
|
309
|
+
The `@media print` rule in `base.css` outputs 1280×720 pages. To export with headless Chrome:
|
|
310
|
+
|
|
311
|
+
```bash
|
|
312
|
+
# After: npx serve .octocode/slides/{{slideName}}
|
|
313
|
+
chromium-browser --headless --print-to-pdf=output.pdf \
|
|
314
|
+
--no-pdf-header-footer --window-size=1280,720 \
|
|
315
|
+
http://localhost:3000
|
|
316
|
+
```
|