decklight 0.2.0 → 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/README.md +69 -31
- package/SPEC.md +855 -80
- package/cli/agents.mjs +113 -9
- package/cli/associate.mjs +279 -0
- package/cli/audit.mjs +424 -0
- package/cli/bundle.mjs +174 -46
- package/cli/deckfile.mjs +233 -0
- package/cli/decklight.mjs +201 -8
- package/cli/dev.mjs +244 -55
- package/cli/edit.mjs +564 -107
- package/cli/extension.mjs +108 -0
- package/cli/git.mjs +141 -0
- package/cli/import.mjs +398 -0
- package/cli/init.mjs +421 -116
- package/cli/loader.mjs +263 -0
- package/cli/marketplace.mjs +730 -0
- package/cli/pdf.mjs +156 -0
- package/cli/pkg.mjs +69 -0
- package/cli/plugin.mjs +646 -0
- package/cli/port-conflict.mjs +94 -0
- package/cli/present.mjs +560 -0
- package/cli/publish.mjs +342 -0
- package/cli/qr.mjs +334 -0
- package/cli/rec.mjs +5 -8
- package/cli/remote.mjs +149 -0
- package/cli/report-bug.mjs +97 -0
- package/cli/restore.mjs +174 -0
- package/cli/serve.mjs +247 -0
- package/cli/sign.mjs +216 -0
- package/cli/skill-content.mjs +222 -0
- package/cli/skills.mjs +338 -0
- package/cli/supervise.mjs +57 -0
- package/cli/theme.mjs +201 -0
- package/cli/units.mjs +488 -0
- package/cli/upgrade.mjs +250 -0
- package/cli/util.mjs +90 -0
- package/cli/wizard.mjs +432 -0
- package/cli/zip.mjs +121 -0
- package/dist/decklight.css +716 -29
- package/dist/decklight.js +198 -125
- package/dist/decklight.js.map +4 -4
- package/docs/architecture.svg +1 -1
- package/package.json +5 -4
- package/themes/README.md +6 -4
- package/themes/aurora.css +1 -1
- package/themes/berry.css +1 -1
- package/themes/carbon.css +1 -1
- package/themes/citrus.css +1 -1
- package/themes/coastal.css +1 -1
- package/themes/cosmos.css +1 -1
- package/themes/dune.css +1 -1
- package/themes/eclipse.css +1 -1
- package/themes/ember.css +1 -1
- package/themes/fjord.css +1 -1
- package/themes/gallery.html +3 -11
- package/themes/glacier.css +1 -1
- package/themes/graphite.css +1 -1
- package/themes/harvest.css +1 -1
- package/themes/ibm-modern.css +1 -1
- package/themes/ink.css +1 -1
- package/themes/latte.css +1 -1
- package/themes/linen.css +1 -1
- package/themes/meadow.css +1 -1
- package/themes/metropolis.css +1 -1
- package/themes/midnight.css +1 -1
- package/themes/mint.css +1 -1
- package/themes/moss.css +1 -1
- package/themes/obsidian.css +1 -1
- package/themes/orchid.css +1 -1
- package/themes/packs.json +2 -30
- package/themes/paper.css +1 -1
- package/themes/peony.css +1 -1
- package/themes/porcelain.css +1 -1
- package/themes/reveal-beige.css +1 -1
- package/themes/reveal-black.css +1 -1
- package/themes/reveal-blood.css +1 -1
- package/themes/reveal-dracula.css +1 -1
- package/themes/reveal-league.css +1 -1
- package/themes/reveal-moon.css +1 -1
- package/themes/reveal-night.css +1 -1
- package/themes/reveal-serif.css +1 -1
- package/themes/reveal-simple.css +1 -1
- package/themes/reveal-sky.css +1 -1
- package/themes/reveal-solarized.css +1 -1
- package/themes/reveal-white.css +1 -1
- package/themes/sepia.css +1 -1
- package/themes/seriph.css +1 -1
- package/themes/slate.css +1 -1
- package/themes/storm.css +1 -1
- package/themes/synthwave.css +1 -1
- package/themes/velvet.css +1 -1
- package/themes/yamabuki.css +1 -1
- package/tools/args.mjs +32 -0
- package/tools/bridge.mjs +30 -0
- package/tools/chrome.mjs +11 -2
- package/tools/color.mjs +110 -0
- package/tools/deck-html.mjs +138 -0
- package/tools/elevenlabs-tts.mjs +248 -0
- package/tools/escape.mjs +40 -0
- package/tools/extension-check-runner.mjs +41 -0
- package/tools/extension-check.mjs +266 -0
- package/tools/gemini-tts.mjs +25 -3
- package/tools/lipsync-engines.mjs +81 -0
- package/tools/lipsync-server.mjs +78 -37
- package/tools/lipsync.mjs +36 -21
- package/tools/local-voice.mjs +209 -0
- package/tools/ooxml.mjs +151 -0
- package/tools/pptx.mjs +320 -0
- package/tools/publish-site-voices.mjs +2 -1
- package/tools/publish-targets.mjs +143 -0
- package/tools/publish-voices.mjs +230 -0
- package/tools/shot.mjs +91 -47
- package/tools/theme-check.mjs +139 -0
- package/tools/tts-engines.mjs +270 -41
- package/tools/tts-setup.mjs +257 -0
- package/tools/veo.mjs +204 -0
- package/tools/video.mjs +316 -0
- package/tools/voiceover-server.mjs +163 -54
- package/tools/voiceover.mjs +24 -7
- package/tools/zip.mjs +143 -0
- package/docs/demo.svg +0 -124
- package/themes/aliens.css +0 -87
- package/themes/apple2.css +0 -129
- package/themes/blade-runner.css +0 -86
- package/themes/c64.css +0 -88
- package/themes/friends.css +0 -85
- package/themes/gameboy.css +0 -121
- package/themes/genesis.css +0 -87
- package/themes/godfather.css +0 -85
- package/themes/ibm-oldschool.css +0 -87
- package/themes/miami-vice.css +0 -87
- package/themes/pulp-fiction.css +0 -87
- package/themes/severance.css +0 -85
- package/themes/snes.css +0 -85
- package/themes/star-wars.css +0 -88
- package/themes/stranger-things.css +0 -87
- package/themes/terminator.css +0 -87
package/tools/voiceover.mjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
// Voice-over generator: per-slide narration audio from a deck's speaker notes.
|
|
6
6
|
//
|
|
7
|
-
// node tools/voiceover.mjs <deck.html> [-o <dir>] [--engine piper|chirp|gemini]
|
|
7
|
+
// node tools/voiceover.mjs <deck.html> [-o <dir>] [--engine piper|chirp|gemini|elevenlabs]
|
|
8
8
|
// [--voice <name>] [--data-dir <dir>]
|
|
9
9
|
// [--project <id>] [--location global] [--lang en-US]
|
|
10
10
|
// [--tts-model gemini-2.5-pro-tts]
|
|
@@ -17,13 +17,21 @@
|
|
|
17
17
|
// piper — neural local TTS, fully offline, unlimited, free. --voice takes a
|
|
18
18
|
// piper model name (default en_US-ryan-high, a natural US male):
|
|
19
19
|
// uv tool install piper-tts
|
|
20
|
-
// python -m piper.download_voices en_US-ryan-high
|
|
20
|
+
// uvx --from piper-tts python -m piper.download_voices en_US-ryan-high
|
|
21
|
+
// (into --data-dir; a plain `python -m …` only works when piper was
|
|
22
|
+
// pip-installed into the active environment, not `uv tool install`ed)
|
|
21
23
|
// chirp — Chirp 3: HD on the Cloud Text-to-Speech API. Same 30 star-named
|
|
22
24
|
// voices as gemini, ~1s a sentence, and 1M characters a month free.
|
|
23
25
|
// No --style: Chirp has no delivery-instruction channel.
|
|
24
26
|
// gemini — gemini-2.5-{pro,flash}-tts on Vertex AI. The only engine that
|
|
25
27
|
// honors --style (default: warm, welcoming battle-hardened senior
|
|
26
28
|
// engineer). No free tier, and pro is slow.
|
|
29
|
+
// elevenlabs — your ElevenLabs account's own voices, cloned ones included.
|
|
30
|
+
// --voice takes the voice's NAME (or its id); omit it and the first
|
|
31
|
+
// of YOUR voices is used, which is the point of the engine. Needs
|
|
32
|
+
// $ELEVENLABS_API_KEY. No --style. --tts-format mp3 if your plan has
|
|
33
|
+
// no PCM output — but this tool wants WAV (--keep-wav feeds
|
|
34
|
+
// tools/lipsync.mjs), so pcm is the sane choice here.
|
|
27
35
|
// Cloud engines: --project or $GOOGLE_CLOUD_PROJECT, auth via
|
|
28
36
|
// gcloud auth application-default login.
|
|
29
37
|
//
|
|
@@ -40,14 +48,19 @@ import { execFileSync } from 'node:child_process';
|
|
|
40
48
|
import { resolve, join, basename } from 'node:path';
|
|
41
49
|
import { homedir } from 'node:os';
|
|
42
50
|
import { createEngine } from './tts-engines.mjs';
|
|
51
|
+
import { argReader } from './args.mjs';
|
|
52
|
+
import { sectionBodies, NOTES_ASIDE } from './deck-html.mjs';
|
|
43
53
|
|
|
44
54
|
const args = process.argv.slice(2);
|
|
45
55
|
const deckPath = args.find((a) => !a.startsWith('-'));
|
|
46
|
-
if (!deckPath) { console.error('usage: voiceover.mjs <deck.html> [-o dir] [--engine piper|gemini] [--voice name] [--no-llm] [--reuse-text]'); process.exit(1); }
|
|
47
|
-
const
|
|
56
|
+
if (!deckPath) { console.error('usage: voiceover.mjs <deck.html> [-o dir] [--engine piper|chirp|gemini|elevenlabs] [--voice name] [--no-llm] [--reuse-text]'); process.exit(1); }
|
|
57
|
+
const { opt } = argReader(args);
|
|
48
58
|
const outDir = resolve(opt('-o', join(resolve(deckPath, '..'), 'voiceover')));
|
|
49
59
|
const engine = opt('--engine', 'piper');
|
|
50
|
-
|
|
60
|
+
// elevenlabs has no default name worth guessing: the roster is the account's,
|
|
61
|
+
// and undefined means "the first of yours", which is what you came for
|
|
62
|
+
const voice = opt('--voice', engine === 'piper' ? 'en_US-ryan-high'
|
|
63
|
+
: engine === 'elevenlabs' ? undefined : 'Alnilam');
|
|
51
64
|
const style = opt('--style',
|
|
52
65
|
'Read in a warm, welcoming tone, like a friendly battle-hardened senior ' +
|
|
53
66
|
'engineer who is still curious about new technology.');
|
|
@@ -64,6 +77,7 @@ try {
|
|
|
64
77
|
tts = createEngine({
|
|
65
78
|
engine, project, voice, dataDir,
|
|
66
79
|
model: opt('--tts-model'), location: opt('--location'), lang: opt('--lang'),
|
|
80
|
+
format: opt('--tts-format'),
|
|
67
81
|
});
|
|
68
82
|
} catch (e) {
|
|
69
83
|
console.error(e.message);
|
|
@@ -87,7 +101,7 @@ const toAac = (wav, m4a) => execFileSync(encoder, encoder === 'ffmpeg'
|
|
|
87
101
|
|
|
88
102
|
// ── extract per-slide narration text ─────────────────────────────────────────
|
|
89
103
|
const html = readFileSync(deckPath, 'utf8');
|
|
90
|
-
const sections = html
|
|
104
|
+
const sections = sectionBodies(html);
|
|
91
105
|
const clean = (s) => s
|
|
92
106
|
.replace(/⟨CLICK⟩/g, ' ')
|
|
93
107
|
.replace(/<[^>]+>/g, ' ')
|
|
@@ -95,7 +109,7 @@ const clean = (s) => s
|
|
|
95
109
|
.replace(/\s+/g, ' ')
|
|
96
110
|
.trim();
|
|
97
111
|
const slides = sections.map((sec, i) => {
|
|
98
|
-
const aside = sec.match(
|
|
112
|
+
const aside = sec.match(NOTES_ASIDE);
|
|
99
113
|
if (aside) return clean(aside[1]);
|
|
100
114
|
const md = sec.match(/^Note:\s*$([\s\S]*?)(?=^Rehearse:\s*$|<\/script>)/m);
|
|
101
115
|
if (md) return clean(md[1]);
|
|
@@ -168,5 +182,8 @@ for (let i = 0; i < slides.length; i++) {
|
|
|
168
182
|
}
|
|
169
183
|
writeFileSync(join(outDir, 'manifest.json'),
|
|
170
184
|
JSON.stringify({ engine, voice, style, slides: manifest }, null, 1));
|
|
185
|
+
// piper is held resident (§ createPiper) — without this the tool prints `done`
|
|
186
|
+
// and then hangs on the live child process
|
|
187
|
+
tts.synth.close?.();
|
|
171
188
|
console.log(`done → ${outDir}${skipped ? ` (${skipped} unchanged, skipped)` : ''}`
|
|
172
189
|
+ (totalCost ? ` · estimated cost ~$${totalCost.toFixed(4)}` : ''));
|
package/tools/zip.mjs
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
// Copyright 2026 Gilles Philippart
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// Enough of the ZIP format to read an Office file, and nothing more.
|
|
5
|
+
//
|
|
6
|
+
// A .pptx is a ZIP of XML parts, so importing one means unzipping one — and
|
|
7
|
+
// the repo's rule is that the runtime has zero dependencies while the CLI may
|
|
8
|
+
// have Node-only ones. This could have been a dependency. It is ~90 lines
|
|
9
|
+
// instead, because `node:zlib` already does the only hard part (inflate) and
|
|
10
|
+
// what remains is reading a well-documented directory structure.
|
|
11
|
+
//
|
|
12
|
+
// Deliberately partial: read-only, no ZIP64, no encryption, no multi-disk, no
|
|
13
|
+
// data descriptors trusted over the central directory. Every one of those is
|
|
14
|
+
// absent from files Office and Keynote write, and each is a loud error rather
|
|
15
|
+
// than a wrong answer if it ever shows up.
|
|
16
|
+
//
|
|
17
|
+
// And deliberately bounded: everything this reads is something someone SENT —
|
|
18
|
+
// a `.pptx` on import, a `.decklight` container that `present` must unzip
|
|
19
|
+
// BEFORE it can even find the signature — so a few-KB archive that inflates to
|
|
20
|
+
// gigabytes (a zip bomb) would detonate ahead of every trust decision. Two
|
|
21
|
+
// caps, both far above anything Office or `bundle --deck` writes, and the
|
|
22
|
+
// central directory's declared size is enforced rather than merely read: an
|
|
23
|
+
// entry whose inflated bytes disagree with its declaration is hostile or
|
|
24
|
+
// corrupt, and either way the answer is a loud refusal, not an allocation.
|
|
25
|
+
|
|
26
|
+
import { inflateRawSync } from 'node:zlib';
|
|
27
|
+
|
|
28
|
+
/** The most one entry may inflate to. */
|
|
29
|
+
export const MAX_ENTRY_BYTES = 512 * 1024 * 1024;
|
|
30
|
+
/** The most a whole archive may declare, summed across its entries. */
|
|
31
|
+
export const MAX_TOTAL_BYTES = 1024 * 1024 * 1024;
|
|
32
|
+
|
|
33
|
+
const EOCD_SIG = 0x06054b50;
|
|
34
|
+
const CEN_SIG = 0x02014b50;
|
|
35
|
+
const LOC_SIG = 0x04034b50;
|
|
36
|
+
const STORED = 0;
|
|
37
|
+
const DEFLATED = 8;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The End Of Central Directory record, scanned backwards from the end.
|
|
41
|
+
*
|
|
42
|
+
* It is last in the file but variable in position, because a trailing comment
|
|
43
|
+
* may follow it — so the only way to find it is to look for its signature from
|
|
44
|
+
* the back. The comment is at most 65535 bytes, which bounds the search.
|
|
45
|
+
*/
|
|
46
|
+
function findEocd(buf) {
|
|
47
|
+
const min = Math.max(0, buf.length - 22 - 0xffff);
|
|
48
|
+
for (let i = buf.length - 22; i >= min; i -= 1) {
|
|
49
|
+
if (buf.readUInt32LE(i) === EOCD_SIG) return i;
|
|
50
|
+
}
|
|
51
|
+
return -1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* List a ZIP's entries from its central directory.
|
|
56
|
+
*
|
|
57
|
+
* The central directory is authoritative: the per-file local headers may carry
|
|
58
|
+
* zeroed sizes (a streaming writer fills them in a trailing data descriptor
|
|
59
|
+
* instead), so sizes and offsets are taken from here and the local header is
|
|
60
|
+
* read only for where its data actually begins.
|
|
61
|
+
*/
|
|
62
|
+
export function zipEntries(buf) {
|
|
63
|
+
const eocd = findEocd(buf);
|
|
64
|
+
if (eocd < 0) throw new Error('not a zip file (no end-of-central-directory record)');
|
|
65
|
+
const count = buf.readUInt16LE(eocd + 10);
|
|
66
|
+
const start = buf.readUInt32LE(eocd + 16);
|
|
67
|
+
if (start === 0xffffffff || count === 0xffff) {
|
|
68
|
+
throw new Error('zip64 archives are not supported');
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const entries = [];
|
|
72
|
+
let p = start;
|
|
73
|
+
for (let i = 0; i < count; i += 1) {
|
|
74
|
+
if (buf.readUInt32LE(p) !== CEN_SIG) throw new Error(`corrupt zip: bad central directory entry ${i}`);
|
|
75
|
+
const method = buf.readUInt16LE(p + 10);
|
|
76
|
+
const compressedSize = buf.readUInt32LE(p + 20);
|
|
77
|
+
const size = buf.readUInt32LE(p + 24);
|
|
78
|
+
const nameLen = buf.readUInt16LE(p + 28);
|
|
79
|
+
const extraLen = buf.readUInt16LE(p + 30);
|
|
80
|
+
const commentLen = buf.readUInt16LE(p + 32);
|
|
81
|
+
const offset = buf.readUInt32LE(p + 42);
|
|
82
|
+
// Office writes UTF-8 names; the flag bit that says so is set, and the
|
|
83
|
+
// legacy CP437 alternative has no characters we would read differently.
|
|
84
|
+
const name = buf.toString('utf8', p + 46, p + 46 + nameLen);
|
|
85
|
+
entries.push({ name, method, compressedSize, size, offset });
|
|
86
|
+
p += 46 + nameLen + extraLen + commentLen;
|
|
87
|
+
}
|
|
88
|
+
return entries;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** The bytes of one entry, inflated if it needs to be. */
|
|
92
|
+
export function zipRead(buf, entry) {
|
|
93
|
+
if (buf.readUInt32LE(entry.offset) !== LOC_SIG) {
|
|
94
|
+
throw new Error(`corrupt zip: ${entry.name} does not start with a local file header`);
|
|
95
|
+
}
|
|
96
|
+
if (entry.size > MAX_ENTRY_BYTES) {
|
|
97
|
+
throw new Error(`${entry.name}: declares ${entry.size} bytes inflated, past the ${MAX_ENTRY_BYTES}-byte entry cap`);
|
|
98
|
+
}
|
|
99
|
+
const nameLen = buf.readUInt16LE(entry.offset + 26);
|
|
100
|
+
const extraLen = buf.readUInt16LE(entry.offset + 28);
|
|
101
|
+
const start = entry.offset + 30 + nameLen + extraLen;
|
|
102
|
+
const raw = buf.subarray(start, start + entry.compressedSize);
|
|
103
|
+
if (entry.method === STORED) return Buffer.from(raw);
|
|
104
|
+
if (entry.method === DEFLATED) {
|
|
105
|
+
let out;
|
|
106
|
+
// maxOutputLength makes zlib stop AT the declared size instead of
|
|
107
|
+
// allocating whatever the stream expands to — the declaration is the cap.
|
|
108
|
+
// (zlib refuses a cap of 0; a genuinely empty entry still inflates to
|
|
109
|
+
// nothing under a cap of 1, and anything else fails the check below.)
|
|
110
|
+
try {
|
|
111
|
+
out = inflateRawSync(raw, { maxOutputLength: Math.max(entry.size, 1) });
|
|
112
|
+
} catch (e) {
|
|
113
|
+
if (e.code !== 'ERR_BUFFER_TOO_LARGE') throw e;
|
|
114
|
+
throw new Error(`${entry.name}: inflates past the ${entry.size} bytes its central directory entry declares`);
|
|
115
|
+
}
|
|
116
|
+
if (out.length !== entry.size) {
|
|
117
|
+
throw new Error(`${entry.name}: inflates to ${out.length} bytes, not the ${entry.size} its central directory entry declares`);
|
|
118
|
+
}
|
|
119
|
+
return out;
|
|
120
|
+
}
|
|
121
|
+
throw new Error(`${entry.name}: unsupported compression method ${entry.method}`);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* The whole archive as a name → Buffer map.
|
|
126
|
+
*
|
|
127
|
+
* An Office file is a few dozen small parts read in an order the code decides,
|
|
128
|
+
* not the archive, so holding them all beats seeking repeatedly. Directory
|
|
129
|
+
* entries (trailing slash, zero length) are dropped — they are not content.
|
|
130
|
+
*/
|
|
131
|
+
export function unzip(buf) {
|
|
132
|
+
const entries = zipEntries(buf).filter((e) => !e.name.endsWith('/'));
|
|
133
|
+
// Summed up front, from the directory alone — an archive that declares more
|
|
134
|
+
// than the cap is refused before a single entry is inflated, and zipRead
|
|
135
|
+
// holds every entry to its declaration, so the sum is a real bound.
|
|
136
|
+
const total = entries.reduce((n, e) => n + e.size, 0);
|
|
137
|
+
if (total > MAX_TOTAL_BYTES) {
|
|
138
|
+
throw new Error(`archive declares ${total} bytes inflated, past the ${MAX_TOTAL_BYTES}-byte cap`);
|
|
139
|
+
}
|
|
140
|
+
const out = new Map();
|
|
141
|
+
for (const entry of entries) out.set(entry.name, zipRead(buf, entry));
|
|
142
|
+
return out;
|
|
143
|
+
}
|
package/docs/demo.svg
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 540" width="960" height="540" role="img"
|
|
2
|
-
aria-label="A Decklight slide building in: title, bullets and a diagram step in one by one, then the theme cycles from indigo light to dark to warm parchment.">
|
|
3
|
-
<!-- Hand-authored animated demo (no JS — safe in <img>). One 14s loop:
|
|
4
|
-
0–43% builds step in (title, subtitle, bullets, diagram draw)
|
|
5
|
-
47–51% theme cycles to dark (as if pressing .)
|
|
6
|
-
53–72% generator toast (⌃T)
|
|
7
|
-
73–77% theme cycles to warm parchment
|
|
8
|
-
97–100% content fades for the loop restart
|
|
9
|
-
Reduced motion: animations off → static, fully-built slide. -->
|
|
10
|
-
<style>
|
|
11
|
-
* { animation-duration: 14s; animation-timing-function: linear; animation-iteration-count: infinite; }
|
|
12
|
-
text { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
|
|
13
|
-
.mono { font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace; }
|
|
14
|
-
|
|
15
|
-
.bg { fill: #f6f6fa; animation-name: kBg; }
|
|
16
|
-
.ttl { fill: #23268f; animation-name: kTtl; }
|
|
17
|
-
.ink { fill: #2b2e44; animation-name: kInk; }
|
|
18
|
-
.mut { fill: #7c8095; animation-name: kMut; }
|
|
19
|
-
.acc { fill: #3438c9; animation-name: kAcc; }
|
|
20
|
-
.strk { stroke: #9297cf; animation-name: kStrk; }
|
|
21
|
-
/* animation-name lists don't merge across rules: anything needing a
|
|
22
|
-
color animation AND a reveal/draw animation names both in ONE rule */
|
|
23
|
-
.nf1 { fill: #e4e5f7; stroke: #9297cf; animation-name: kF1, kStrk; }
|
|
24
|
-
.nf2 { fill: #dfeaf6; stroke: #9297cf; animation-name: kF2, kStrk; }
|
|
25
|
-
.nf3 { fill: #ece3f4; stroke: #9297cf; animation-name: kF3, kStrk; }
|
|
26
|
-
|
|
27
|
-
.rTitle { animation-name: kTtl, kInTitle; }
|
|
28
|
-
.rSub { animation-name: kMut, kInSub; }
|
|
29
|
-
.rB1 { animation-name: kInB1; }
|
|
30
|
-
.rB2 { animation-name: kInB2; }
|
|
31
|
-
.rB3 { animation-name: kInB3; }
|
|
32
|
-
.rN1 { animation-name: kInN1; }
|
|
33
|
-
.rN2 { animation-name: kInN2; }
|
|
34
|
-
.rN3 { animation-name: kInN3; }
|
|
35
|
-
.rA1 { animation-name: kStrk, kDrawA1; }
|
|
36
|
-
.rA2 { animation-name: kStrk, kDrawA2; }
|
|
37
|
-
.rA1h { animation-name: kAcc, kA1Head; }
|
|
38
|
-
.rA2h { animation-name: kAcc, kA2Head; }
|
|
39
|
-
.toast { animation-name: kToast; }
|
|
40
|
-
.pfill { animation-name: kAcc, kProgress; transform-origin: 0 0; }
|
|
41
|
-
|
|
42
|
-
/* theme color cycle: A(indigo light) → B(night) → C(parchment) → A */
|
|
43
|
-
@keyframes kBg { 0%,47% {fill:#f6f6fa} 51%,73% {fill:#131519} 77%,97% {fill:#faf7f2} 100% {fill:#f6f6fa} }
|
|
44
|
-
@keyframes kTtl { 0%,47% {fill:#23268f} 51%,73% {fill:#e9edf4} 77%,97% {fill:#4d5527} 100% {fill:#23268f} }
|
|
45
|
-
@keyframes kInk { 0%,47% {fill:#2b2e44} 51%,73% {fill:#c9d1dc} 77%,97% {fill:#2e2a24} 100% {fill:#2b2e44} }
|
|
46
|
-
@keyframes kMut { 0%,47% {fill:#7c8095} 51%,73% {fill:#848da0} 77%,97% {fill:#8d8577} 100% {fill:#7c8095} }
|
|
47
|
-
@keyframes kAcc { 0%,47% {fill:#3438c9} 51%,73% {fill:#8fbfe8} 77%,97% {fill:#75823f} 100% {fill:#3438c9} }
|
|
48
|
-
@keyframes kF1 { 0%,47% {fill:#e4e5f7} 51%,73% {fill:#232833} 77%,97% {fill:#e7e5d4} 100% {fill:#e4e5f7} }
|
|
49
|
-
@keyframes kF2 { 0%,47% {fill:#dfeaf6} 51%,73% {fill:#223028} 77%,97% {fill:#dfe6df} 100% {fill:#dfeaf6} }
|
|
50
|
-
@keyframes kF3 { 0%,47% {fill:#ece3f4} 51%,73% {fill:#2a2536} 77%,97% {fill:#ece2d8} 100% {fill:#ece3f4} }
|
|
51
|
-
@keyframes kStrk { 0%,47% {stroke:#9297cf} 51%,73% {stroke:#9db8cd} 77%,97% {stroke:#837e5a} 100% {stroke:#9297cf} }
|
|
52
|
-
|
|
53
|
-
/* builds (Keynote-style steps) */
|
|
54
|
-
@keyframes kInTitle { 0% {opacity:0; transform:translateY(14px)} 3.5% {opacity:1; transform:none} 96.5% {opacity:1} 100% {opacity:0} }
|
|
55
|
-
@keyframes kInSub { 0%,4% {opacity:0; transform:translateY(10px)} 7% {opacity:1; transform:none} 96.5% {opacity:1} 100% {opacity:0} }
|
|
56
|
-
@keyframes kInB1 { 0%,9% {opacity:0; transform:translateY(10px)} 12% {opacity:1; transform:none} 96.5% {opacity:1} 100% {opacity:0} }
|
|
57
|
-
@keyframes kInB2 { 0%,15% {opacity:0; transform:translateY(10px)} 18% {opacity:1; transform:none} 96.5% {opacity:1} 100% {opacity:0} }
|
|
58
|
-
@keyframes kInB3 { 0%,21% {opacity:0; transform:translateY(10px)} 24% {opacity:1; transform:none} 96.5% {opacity:1} 100% {opacity:0} }
|
|
59
|
-
@keyframes kInN1 { 0%,27% {opacity:0; transform:translateY(10px)} 30% {opacity:1; transform:none} 96.5% {opacity:1} 100% {opacity:0} }
|
|
60
|
-
@keyframes kInN2 { 0%,33.5% {opacity:0; transform:translateY(10px)} 36.5% {opacity:1; transform:none} 96.5% {opacity:1} 100% {opacity:0} }
|
|
61
|
-
@keyframes kInN3 { 0%,40% {opacity:0; transform:translateY(10px)} 43% {opacity:1; transform:none} 96.5% {opacity:1} 100% {opacity:0} }
|
|
62
|
-
@keyframes kDrawA1 { 0%,30% {opacity:0; stroke-dashoffset:1} 30.5% {opacity:1} 33.5% {stroke-dashoffset:0} 96.5% {opacity:1; stroke-dashoffset:0} 100% {opacity:0} }
|
|
63
|
-
@keyframes kDrawA2 { 0%,36.5% {opacity:0; stroke-dashoffset:1} 37% {opacity:1} 40% {stroke-dashoffset:0} 96.5% {opacity:1; stroke-dashoffset:0} 100% {opacity:0} }
|
|
64
|
-
@keyframes kA1Head { 0%,33% {opacity:0} 34.5% {opacity:1} 96.5% {opacity:1} 100% {opacity:0} }
|
|
65
|
-
@keyframes kA2Head { 0%,39.5% {opacity:0} 41% {opacity:1} 96.5% {opacity:1} 100% {opacity:0} }
|
|
66
|
-
@keyframes kToast { 0%,52% {opacity:0; transform:translateY(8px)} 55% {opacity:1; transform:none} 69% {opacity:1; transform:none} 72% {opacity:0} 100% {opacity:0} }
|
|
67
|
-
@keyframes kProgress{ 0% {transform:scaleX(0.04)} 11% {transform:scaleX(0.04)} 12% {transform:scaleX(0.2)}
|
|
68
|
-
17% {transform:scaleX(0.2)} 18% {transform:scaleX(0.36)} 23% {transform:scaleX(0.36)}
|
|
69
|
-
24% {transform:scaleX(0.52)} 29% {transform:scaleX(0.52)} 30% {transform:scaleX(0.68)}
|
|
70
|
-
36% {transform:scaleX(0.68)} 36.5% {transform:scaleX(0.84)} 42% {transform:scaleX(0.84)}
|
|
71
|
-
43%,100% {transform:scaleX(1)} }
|
|
72
|
-
|
|
73
|
-
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
|
|
74
|
-
</style>
|
|
75
|
-
|
|
76
|
-
<rect class="bg" width="960" height="540"/>
|
|
77
|
-
|
|
78
|
-
<!-- chrome -->
|
|
79
|
-
<text class="mut" x="912" y="38" font-size="15" text-anchor="end">12 / 40</text>
|
|
80
|
-
<rect class="mut" x="0" y="536" width="960" height="4" opacity="0.22"/>
|
|
81
|
-
<rect class="acc pfill" x="0" y="536" width="960" height="4"/>
|
|
82
|
-
|
|
83
|
-
<!-- pinned title + subtitle -->
|
|
84
|
-
<text class="ttl rTitle" x="480" y="96" font-size="44" font-weight="700" text-anchor="middle">Composing Agents</text>
|
|
85
|
-
<text class="mut rSub" x="480" y="132" font-size="19" text-anchor="middle">Patterns for multi-agent systems</text>
|
|
86
|
-
|
|
87
|
-
<!-- bullets (one data-build container in a real deck) -->
|
|
88
|
-
<g class="rB1">
|
|
89
|
-
<circle class="acc" cx="96" cy="238" r="5"/>
|
|
90
|
-
<text class="ink" x="120" y="246" font-size="22">Sequential — hand off step by step</text>
|
|
91
|
-
</g>
|
|
92
|
-
<g class="rB2">
|
|
93
|
-
<circle class="acc" cx="96" cy="308" r="5"/>
|
|
94
|
-
<text class="ink" x="120" y="316" font-size="22">Parallel — fan out, then aggregate</text>
|
|
95
|
-
</g>
|
|
96
|
-
<g class="rB3">
|
|
97
|
-
<circle class="acc" cx="96" cy="378" r="5"/>
|
|
98
|
-
<text class="ink" x="120" y="386" font-size="22">Supervisor — one agent routes the rest</text>
|
|
99
|
-
</g>
|
|
100
|
-
|
|
101
|
-
<!-- diagram (an inline SVG with data-build="draw" in a real deck) -->
|
|
102
|
-
<g class="rN1">
|
|
103
|
-
<rect class="nf1" x="620" y="180" width="240" height="62" rx="12" stroke-width="2"/>
|
|
104
|
-
<text class="ink" x="740" y="218" font-size="19" font-weight="600" text-anchor="middle">Intent Agent</text>
|
|
105
|
-
</g>
|
|
106
|
-
<line class="strk rA1" x1="740" y1="244" x2="740" y2="276" stroke-width="2.5" pathLength="1" stroke-dasharray="1"/>
|
|
107
|
-
<path class="acc rA1h" d="M 733 272 L 747 272 L 740 283 Z"/>
|
|
108
|
-
<g class="rN2">
|
|
109
|
-
<rect class="nf2" x="620" y="286" width="240" height="62" rx="12" stroke-width="2"/>
|
|
110
|
-
<text class="ink" x="740" y="324" font-size="19" font-weight="600" text-anchor="middle">Research Agent</text>
|
|
111
|
-
</g>
|
|
112
|
-
<line class="strk rA2" x1="740" y1="350" x2="740" y2="382" stroke-width="2.5" pathLength="1" stroke-dasharray="1"/>
|
|
113
|
-
<path class="acc rA2h" d="M 733 378 L 747 378 L 740 389 Z"/>
|
|
114
|
-
<g class="rN3">
|
|
115
|
-
<rect class="nf3" x="620" y="392" width="240" height="62" rx="12" stroke-width="2"/>
|
|
116
|
-
<text class="ink" x="740" y="430" font-size="19" font-weight="600" text-anchor="middle">Response Agent</text>
|
|
117
|
-
</g>
|
|
118
|
-
|
|
119
|
-
<!-- generator toast (⌃T) -->
|
|
120
|
-
<g class="toast">
|
|
121
|
-
<rect x="290" y="472" width="380" height="34" rx="17" fill="#333338" opacity="0.92"/>
|
|
122
|
-
<text class="mono" x="480" y="494" font-size="14" fill="#f2f2f4" text-anchor="middle">✨ gen-onyx-0b81 — ⌃T re-roll · ⌃⇧T save</text>
|
|
123
|
-
</g>
|
|
124
|
-
</svg>
|
package/themes/aliens.css
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/* Copyright 2026 Gilles Philippart
|
|
2
|
-
SPDX-License-Identifier: Apache-2.0 */
|
|
3
|
-
|
|
4
|
-
/* ═══════════════════════════════════════════════════════════════
|
|
5
|
-
Decklight theme · aliens
|
|
6
|
-
dark · military phosphor, tracker green, amber warnings
|
|
7
|
-
Inspired by Aliens — the motion tracker and the Sulaco CRTs — palette kept canonical where possible,
|
|
8
|
-
every gated pair fitted to the WCAG contract.
|
|
9
|
-
Token contract: SPEC.md §5 — validated by test/contrast.mjs
|
|
10
|
-
═══════════════════════════════════════════════════════════════ */
|
|
11
|
-
|
|
12
|
-
.decklight {
|
|
13
|
-
/* ── canvas ─────────────────────────────── */
|
|
14
|
-
--bg: #0a0f0d;
|
|
15
|
-
--bg-accent: none;
|
|
16
|
-
--fg: #b8e0c8;
|
|
17
|
-
--muted: #6f9a80;
|
|
18
|
-
|
|
19
|
-
/* ── type ───────────────────────────────── */
|
|
20
|
-
--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
21
|
-
--font-heading: "SF Mono", SFMono-Regular, ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
|
|
22
|
-
--font-mono: "SF Mono", SFMono-Regular, ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
|
|
23
|
-
--heading-color: #8fe8b0;
|
|
24
|
-
--heading-weight: 600;
|
|
25
|
-
--link: #e8c060;
|
|
26
|
-
|
|
27
|
-
/* ── accent ─────────────────────────────── */
|
|
28
|
-
--accent: #58d364;
|
|
29
|
-
--accent-contrast: #131313;
|
|
30
|
-
|
|
31
|
-
/* ── blocks ─────────────────────────────── */
|
|
32
|
-
--block-bg: #111c18;
|
|
33
|
-
--block-border: 1px solid #26302c;
|
|
34
|
-
--block-radius: 3px;
|
|
35
|
-
--shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
|
|
36
|
-
|
|
37
|
-
/* ── code ───────────────────────────────── */
|
|
38
|
-
--code-bg: #0e1511;
|
|
39
|
-
--code-fg: #b8e8c8;
|
|
40
|
-
--hl-keyword: #8fe8b0;
|
|
41
|
-
--hl-string: #e8d080;
|
|
42
|
-
--hl-number: #e8a850;
|
|
43
|
-
--hl-comment: #557a64;
|
|
44
|
-
--hl-function: #7fd8d0;
|
|
45
|
-
--hl-type: #c8e890;
|
|
46
|
-
--hl-punct: #8fb89c;
|
|
47
|
-
|
|
48
|
-
/* ── diagram ────────────────────────────── */
|
|
49
|
-
--d-stroke: #6f9a80;
|
|
50
|
-
--d-text: #b8e0c8;
|
|
51
|
-
--d-muted: #6f9a80;
|
|
52
|
-
--d-accent: #e8b840;
|
|
53
|
-
--d-fill-1: #17201b;
|
|
54
|
-
--d-fill-2: #28251a;
|
|
55
|
-
--d-fill-3: #1b312a;
|
|
56
|
-
--d-fill-4: #172019;
|
|
57
|
-
--d-fill-5: #1a2827;
|
|
58
|
-
--d-fill-6: #22311b;
|
|
59
|
-
|
|
60
|
-
/* ── terminal ───────────────────────────── */
|
|
61
|
-
--term-bg: #080c0a;
|
|
62
|
-
--term-fg: #e6e6e2;
|
|
63
|
-
--term-prompt: #58d364;
|
|
64
|
-
--term-cursor: #58d364;
|
|
65
|
-
--term-selection: rgba(88, 211, 100, 0.28);
|
|
66
|
-
--ansi-black: #7a8a7a;
|
|
67
|
-
--ansi-red: #e08a6a;
|
|
68
|
-
--ansi-green: #6fd66f;
|
|
69
|
-
--ansi-yellow: #d6c258;
|
|
70
|
-
--ansi-blue: #7fb3d0;
|
|
71
|
-
--ansi-magenta: #c79ac0;
|
|
72
|
-
--ansi-cyan: #7fd0c0;
|
|
73
|
-
--ansi-white: #dfe8df;
|
|
74
|
-
--ansi-bright-black: #9ba79b;
|
|
75
|
-
--ansi-bright-red: #ebb29d;
|
|
76
|
-
--ansi-bright-green: #9fe49f;
|
|
77
|
-
--ansi-bright-yellow: #e2d489;
|
|
78
|
-
--ansi-bright-blue: #accee0;
|
|
79
|
-
--ansi-bright-magenta: #ddc1d9;
|
|
80
|
-
--ansi-bright-cyan: #ace0d6;
|
|
81
|
-
--ansi-bright-white: #f3f6f3;
|
|
82
|
-
|
|
83
|
-
/* ── builds ─────────────────────────────── */
|
|
84
|
-
--dim-opacity: 0.22;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.decklight h1, .decklight h2 { text-transform: uppercase; letter-spacing: 0.05em; }
|
package/themes/apple2.css
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/* Copyright 2026 Gilles Philippart
|
|
2
|
-
SPDX-License-Identifier: Apache-2.0 */
|
|
3
|
-
|
|
4
|
-
/* ═══════════════════════════════════════════════════════════════
|
|
5
|
-
Decklight theme · apple2
|
|
6
|
-
dark · black glass, one green phosphor, mono display type
|
|
7
|
-
Inspired by the Apple ][ green phosphor CRT — palette kept canonical where possible,
|
|
8
|
-
every gated pair fitted to the WCAG contract.
|
|
9
|
-
rule-exception: R1 a single-phosphor monochrome display is the identity
|
|
10
|
-
rule-exception: R3 phosphor green burns bright by design
|
|
11
|
-
Token contract: SPEC.md §5 — validated by test/contrast.mjs
|
|
12
|
-
═══════════════════════════════════════════════════════════════ */
|
|
13
|
-
|
|
14
|
-
.decklight {
|
|
15
|
-
/* ── canvas ─────────────────────────────── */
|
|
16
|
-
--bg: #0c0f0c;
|
|
17
|
-
--bg-accent: none;
|
|
18
|
-
--fg: #7fe87f;
|
|
19
|
-
--muted: #4f9f5b;
|
|
20
|
-
|
|
21
|
-
/* ── type ───────────────────────────────── */
|
|
22
|
-
--font-body: "SF Mono", SFMono-Regular, ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
|
|
23
|
-
--font-heading: "SF Mono", SFMono-Regular, ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
|
|
24
|
-
--font-mono: "SF Mono", SFMono-Regular, ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
|
|
25
|
-
--heading-color: #8ff98f;
|
|
26
|
-
--heading-weight: 600;
|
|
27
|
-
--link: #a8ff9f;
|
|
28
|
-
|
|
29
|
-
/* ── accent ─────────────────────────────── */
|
|
30
|
-
--accent: #37d63d;
|
|
31
|
-
--accent-contrast: #131313;
|
|
32
|
-
|
|
33
|
-
/* ── blocks ─────────────────────────────── */
|
|
34
|
-
--block-bg: #141b14;
|
|
35
|
-
--block-border: 1px solid #273127;
|
|
36
|
-
--block-radius: 2px;
|
|
37
|
-
--shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
|
|
38
|
-
|
|
39
|
-
/* ── code ───────────────────────────────── */
|
|
40
|
-
--code-bg: #101510;
|
|
41
|
-
--code-fg: #8ff98f;
|
|
42
|
-
--hl-keyword: #a8ff9f;
|
|
43
|
-
--hl-string: #5fd68f;
|
|
44
|
-
--hl-number: #d6d65f;
|
|
45
|
-
--hl-comment: #3f7a4a;
|
|
46
|
-
--hl-function: #7fe8b0;
|
|
47
|
-
--hl-type: #c8e87f;
|
|
48
|
-
--hl-punct: #6fbf7f;
|
|
49
|
-
|
|
50
|
-
/* ── diagram ────────────────────────────── */
|
|
51
|
-
--d-stroke: #4f9f5b;
|
|
52
|
-
--d-text: #7fe87f;
|
|
53
|
-
--d-muted: #4f9f5b;
|
|
54
|
-
--d-accent: #37d63d;
|
|
55
|
-
--d-fill-1: #182119;
|
|
56
|
-
--d-fill-2: #1d291a;
|
|
57
|
-
--d-fill-3: #1c3223;
|
|
58
|
-
--d-fill-4: #1c2118;
|
|
59
|
-
--d-fill-5: #1a2923;
|
|
60
|
-
--d-fill-6: #2b321c;
|
|
61
|
-
|
|
62
|
-
/* ── terminal ───────────────────────────── */
|
|
63
|
-
--term-bg: #0a0d0a;
|
|
64
|
-
--term-fg: #e6e6e2;
|
|
65
|
-
--term-prompt: #37d63d;
|
|
66
|
-
--term-cursor: #37d63d;
|
|
67
|
-
--term-selection: rgba(55, 214, 61, 0.28);
|
|
68
|
-
--ansi-black: #7a8a7a;
|
|
69
|
-
--ansi-red: #e08a6a;
|
|
70
|
-
--ansi-green: #6fd66f;
|
|
71
|
-
--ansi-yellow: #d6c258;
|
|
72
|
-
--ansi-blue: #7fb3d0;
|
|
73
|
-
--ansi-magenta: #c79ac0;
|
|
74
|
-
--ansi-cyan: #7fd0c0;
|
|
75
|
-
--ansi-white: #dfe8df;
|
|
76
|
-
--ansi-bright-black: #9ba79b;
|
|
77
|
-
--ansi-bright-red: #ebb29d;
|
|
78
|
-
--ansi-bright-green: #9fe49f;
|
|
79
|
-
--ansi-bright-yellow: #e2d489;
|
|
80
|
-
--ansi-bright-blue: #accee0;
|
|
81
|
-
--ansi-bright-magenta: #ddc1d9;
|
|
82
|
-
--ansi-bright-cyan: #ace0d6;
|
|
83
|
-
--ansi-bright-white: #f3f6f3;
|
|
84
|
-
|
|
85
|
-
/* ── builds ─────────────────────────────── */
|
|
86
|
-
--dim-opacity: 0.22;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.decklight h1, .decklight h2 { text-transform: uppercase; letter-spacing: 0.04em; }
|
|
90
|
-
|
|
91
|
-
/* ── CRT character: the Monitor /// look ─────────────────────────────────────
|
|
92
|
-
Scanlines + phosphor bloom + a slow raster roll + the occasional horizontal
|
|
93
|
-
sync tear. Subtle by design; all motion sits out prefers-reduced-motion. */
|
|
94
|
-
.decklight .terminal-screen {
|
|
95
|
-
position: relative;
|
|
96
|
-
overflow: hidden;
|
|
97
|
-
text-shadow: 0 0 5px rgba(90, 240, 110, 0.4);
|
|
98
|
-
animation: a2-tear 7s steps(1) infinite;
|
|
99
|
-
}
|
|
100
|
-
.decklight .terminal-screen::after {
|
|
101
|
-
content: '';
|
|
102
|
-
position: absolute;
|
|
103
|
-
inset: 0;
|
|
104
|
-
pointer-events: none;
|
|
105
|
-
background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0 1px, transparent 1px 3px);
|
|
106
|
-
}
|
|
107
|
-
.decklight .terminal-screen::before {
|
|
108
|
-
content: '';
|
|
109
|
-
position: absolute;
|
|
110
|
-
left: 0;
|
|
111
|
-
right: 0;
|
|
112
|
-
top: -25%;
|
|
113
|
-
height: 22%;
|
|
114
|
-
pointer-events: none;
|
|
115
|
-
background: linear-gradient(180deg, transparent, rgba(130, 255, 150, 0.055), transparent);
|
|
116
|
-
animation: a2-roll 8s linear infinite;
|
|
117
|
-
}
|
|
118
|
-
@keyframes a2-roll { to { transform: translateY(560%); } }
|
|
119
|
-
@keyframes a2-tear {
|
|
120
|
-
0%, 93.9% { transform: none; }
|
|
121
|
-
94% { transform: translateX(2px); }
|
|
122
|
-
94.7% { transform: translateX(-3px) skewX(0.5deg); }
|
|
123
|
-
95.4% { transform: translateX(1px); }
|
|
124
|
-
96%, 100% { transform: none; }
|
|
125
|
-
}
|
|
126
|
-
@media (prefers-reduced-motion: reduce) {
|
|
127
|
-
.decklight .terminal-screen,
|
|
128
|
-
.decklight .terminal-screen::before { animation: none; }
|
|
129
|
-
}
|
package/themes/blade-runner.css
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/* Copyright 2026 Gilles Philippart
|
|
2
|
-
SPDX-License-Identifier: Apache-2.0 */
|
|
3
|
-
|
|
4
|
-
/* ═══════════════════════════════════════════════════════════════
|
|
5
|
-
Decklight theme · blade-runner
|
|
6
|
-
dark · off-world night, neon cyan + magenta, spinner amber
|
|
7
|
-
Inspired by Blade Runner — neon noir over the rain — palette kept canonical where possible,
|
|
8
|
-
every gated pair fitted to the WCAG contract.
|
|
9
|
-
rule-exception: R2 the neon-noir duotone canvas is the identity
|
|
10
|
-
Token contract: SPEC.md §5 — validated by test/contrast.mjs
|
|
11
|
-
═══════════════════════════════════════════════════════════════ */
|
|
12
|
-
|
|
13
|
-
.decklight {
|
|
14
|
-
/* ── canvas ─────────────────────────────── */
|
|
15
|
-
--bg: linear-gradient(200deg, #0b0e18 0%, #140b1a 100%);
|
|
16
|
-
--bg-accent: none;
|
|
17
|
-
--fg: #e2e6f0;
|
|
18
|
-
--muted: #8f95ac;
|
|
19
|
-
|
|
20
|
-
/* ── type ───────────────────────────────── */
|
|
21
|
-
--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
22
|
-
--font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
23
|
-
--font-mono: "SF Mono", SFMono-Regular, ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
|
|
24
|
-
--heading-color: #4fd8e8;
|
|
25
|
-
--heading-weight: 600;
|
|
26
|
-
--link: #e884c8;
|
|
27
|
-
|
|
28
|
-
/* ── accent ─────────────────────────────── */
|
|
29
|
-
--accent: #c957aa;
|
|
30
|
-
--accent-contrast: #171712;
|
|
31
|
-
|
|
32
|
-
/* ── blocks ─────────────────────────────── */
|
|
33
|
-
--block-bg: #141823;
|
|
34
|
-
--block-border: 1px solid #2a2d36;
|
|
35
|
-
--block-radius: 8px;
|
|
36
|
-
--shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
|
|
37
|
-
|
|
38
|
-
/* ── code ───────────────────────────────── */
|
|
39
|
-
--code-bg: #10131f;
|
|
40
|
-
--code-fg: #e0e4f0;
|
|
41
|
-
--hl-keyword: #e884c8;
|
|
42
|
-
--hl-string: #6fd8e8;
|
|
43
|
-
--hl-number: #e8b860;
|
|
44
|
-
--hl-comment: #6a708a;
|
|
45
|
-
--hl-function: #8fa8f0;
|
|
46
|
-
--hl-type: #c8a0e8;
|
|
47
|
-
--hl-punct: #a8aec4;
|
|
48
|
-
|
|
49
|
-
/* ── diagram ────────────────────────────── */
|
|
50
|
-
--d-stroke: #8f95ac;
|
|
51
|
-
--d-text: #e2e6f0;
|
|
52
|
-
--d-muted: #8f95ac;
|
|
53
|
-
--d-accent: #c957aa;
|
|
54
|
-
--d-fill-1: #1c2426;
|
|
55
|
-
--d-fill-2: #2e1e29;
|
|
56
|
-
--d-fill-3: #1f2337;
|
|
57
|
-
--d-fill-4: #26231c;
|
|
58
|
-
--d-fill-5: #261e2e;
|
|
59
|
-
--d-fill-6: #1f372f;
|
|
60
|
-
|
|
61
|
-
/* ── terminal ───────────────────────────── */
|
|
62
|
-
--term-bg: #0a0d16;
|
|
63
|
-
--term-fg: #e6e6e2;
|
|
64
|
-
--term-prompt: #c957aa;
|
|
65
|
-
--term-cursor: #c957aa;
|
|
66
|
-
--term-selection: rgba(201, 87, 170, 0.28);
|
|
67
|
-
--ansi-black: #8a90a8;
|
|
68
|
-
--ansi-red: #e88a90;
|
|
69
|
-
--ansi-green: #7fd0a8;
|
|
70
|
-
--ansi-yellow: #e8c070;
|
|
71
|
-
--ansi-blue: #8fa8f0;
|
|
72
|
-
--ansi-magenta: #e884c8;
|
|
73
|
-
--ansi-cyan: #6fd8e8;
|
|
74
|
-
--ansi-white: #eceef6;
|
|
75
|
-
--ansi-bright-black: #adb1c2;
|
|
76
|
-
--ansi-bright-red: #f2bdc1;
|
|
77
|
-
--ansi-bright-green: #ace0c6;
|
|
78
|
-
--ansi-bright-yellow: #f0d7a5;
|
|
79
|
-
--ansi-bright-blue: #c5d2f7;
|
|
80
|
-
--ansi-bright-magenta: #f2b8df;
|
|
81
|
-
--ansi-bright-cyan: #a4e6f0;
|
|
82
|
-
--ansi-bright-white: #f1f3f8;
|
|
83
|
-
|
|
84
|
-
/* ── builds ─────────────────────────────── */
|
|
85
|
-
--dim-opacity: 0.25;
|
|
86
|
-
}
|