@cameronsjo/artificer 0.27.0 → 0.29.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 +17 -16
- package/bin/artificer.mjs +341 -5
- package/bin/lint-core.mjs +3 -2
- package/dist/react/chrome.d.ts +6 -2
- package/dist/react/chrome.d.ts.map +1 -1
- package/dist/react/chrome.js +4 -4
- package/dist/react/index.d.ts +4 -1
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +2 -1
- package/dist/react/interactive.d.ts +52 -0
- package/dist/react/interactive.d.ts.map +1 -0
- package/dist/react/interactive.js +210 -0
- package/dist/react/primitives.d.ts +20 -5
- package/dist/react/primitives.d.ts.map +1 -1
- package/dist/react/primitives.js +37 -9
- package/package.json +6 -1
- package/reference/SKILL.md +13 -9
- package/src/artificer-options.js +1 -1
- package/src/artificer-sploot.js +303 -0
- package/src/artificer-tailwind.css +86 -0
- package/src/artificer-texture.css +129 -23
- package/src/artificer-theme.js +31 -4
- package/src/artificer-whimsy.css +43 -34
- package/src/artificer-whimsy.js +1 -1
- package/src/artificer.css +392 -120
- package/src/assets/app-icon-1024.png +0 -0
- package/src/assets/app-icon.svg +1 -0
- package/src/assets/favicon-16.png +0 -0
- package/src/assets/favicon-180.png +0 -0
- package/src/assets/favicon-32.png +0 -0
- package/src/assets/favicon-48.png +0 -0
- package/src/assets/favicon-512.png +0 -0
- package/src/assets/favicon-legacy.svg +5 -0
- package/src/assets/favicon.ico +0 -0
- package/src/assets/favicon.svg +1 -5
- package/src/assets/fonts/bricolage-grotesque-variable.woff2 +0 -0
- package/src/assets/fonts/jetbrains-mono-blocks.woff2 +0 -0
- package/src/assets/fonts/recursive-variable.woff2 +0 -0
- package/src/assets/og-image.png +0 -0
- package/src/assets/og-image.svg +14 -20
- package/src/primitives.json +74 -2
- package/src/print.css +4 -3
- package/src/theme-bootstrap.html +4 -2
- package/src/tokens.json +4 -4
- package/types/sploot.d.ts +48 -0
- package/src/assets/fonts/ia-writer-quattro-s-400-italic.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-s-400.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-s-700-italic.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-s-700.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-v-400-italic.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-v-400.woff2 +0 -0
package/src/artificer-whimsy.css
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
oklch at the palette's own lightness + chroma. The "normal RGB" look,
|
|
16
16
|
kept in-family. Dial --whimsy-c up only when you mean it.
|
|
17
17
|
• .whimsy--brand — cycles through Artificer's REAL semantic tokens
|
|
18
|
-
(gold → rose → brand-purple → steel →
|
|
18
|
+
(gold → rose → brand-purple-bright → steel → gold). It reads the live
|
|
19
19
|
CSS vars, so it tracks light/dark for free and is unmistakably ours.
|
|
20
20
|
More tonal variation than the spectrum by design — the brand colors
|
|
21
21
|
aren't uniform lightness, so the brand cycle breathes.
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
|
|
33
33
|
:root {
|
|
34
34
|
/* The knobs. Override on a scope to retune locally. */
|
|
35
|
-
--whimsy-l: 0.80; /* lightness of the spectrum (dark mode) */
|
|
36
|
-
--whimsy-c: 0.115; /* chroma — palette-muted. ~0.20 = vivid. */
|
|
37
|
-
--whimsy-angle: 100deg; /* gradient direction across the text */
|
|
38
|
-
--whimsy-speed: 7s; /* one full hue cycle. Calm, not frantic. */
|
|
39
|
-
--whimsy-bob: 2.6s; /* sine-wave bob period (wave variant) */
|
|
40
|
-
--whimsy-rise: 0.16em; /* sine-wave bob amplitude */
|
|
41
|
-
--whimsy-settle-speed: 150s; /* glacial rest cycle — ~2.5min, sub-perceptual */
|
|
42
|
-
--whimsy-dissolve-hold: 800ms; /* graceful exit: fully-lit before receding */
|
|
43
|
-
--whimsy-dissolve-fade: 2000ms; /* graceful exit: opacity fade-out duration */
|
|
35
|
+
--whimsy-l: 0.80; /* @kind other */ /* lightness of the spectrum (dark mode) */
|
|
36
|
+
--whimsy-c: 0.115; /* @kind other */ /* chroma — palette-muted. ~0.20 = vivid. */
|
|
37
|
+
--whimsy-angle: 100deg; /* @kind other */ /* gradient direction across the text */
|
|
38
|
+
--whimsy-speed: 7s; /* @kind other */ /* one full hue cycle. Calm, not frantic. */
|
|
39
|
+
--whimsy-bob: 2.6s; /* @kind other */ /* sine-wave bob period (wave variant) */
|
|
40
|
+
--whimsy-rise: 0.16em; /* @kind other */ /* sine-wave bob amplitude */
|
|
41
|
+
--whimsy-settle-speed: 150s; /* @kind other */ /* glacial rest cycle — ~2.5min, sub-perceptual */
|
|
42
|
+
--whimsy-dissolve-hold: 800ms; /* @kind other */ /* graceful exit: fully-lit before receding */
|
|
43
|
+
--whimsy-dissolve-fade: 2000ms; /* @kind other */ /* graceful exit: opacity fade-out duration */
|
|
44
44
|
|
|
45
45
|
/* Burnished spectrum — hue stops walk Artificer's own brand hues and loop
|
|
46
46
|
(first == last so the flow is seamless). Built lazily from the knobs,
|
|
@@ -58,15 +58,17 @@
|
|
|
58
58
|
);
|
|
59
59
|
|
|
60
60
|
/* Brand palette — the system's real tokens in motion. Auto-tracks theme
|
|
61
|
-
because it references the live vars. First == last so the loop is seamless.
|
|
61
|
+
because it references the live vars. First == last so the loop is seamless.
|
|
62
|
+
v0.28: the FOREGROUND purple (-bright) replaces the deep surface purple,
|
|
63
|
+
which sat near 2:1 on dark (1.67:1) and made the word go muddy mid-flow;
|
|
64
|
+
apothecary green (3.39:1) leaves the loop too: below the 4.5:1 text floor on dark. */
|
|
62
65
|
--whimsy-gradient-brand: linear-gradient(
|
|
63
66
|
var(--whimsy-angle),
|
|
64
|
-
var(--accent,
|
|
65
|
-
var(--attention,
|
|
66
|
-
var(--brand-purple, #
|
|
67
|
-
var(--steel,
|
|
68
|
-
var(--
|
|
69
|
-
var(--accent, #dbbb6f) /* → gold */
|
|
67
|
+
var(--accent, #dbbb6f), /* gold */
|
|
68
|
+
var(--attention, #c4808a), /* rose */
|
|
69
|
+
var(--brand-purple-bright, #b095e0), /* purple */
|
|
70
|
+
var(--steel, #b8cad4), /* steel */
|
|
71
|
+
var(--accent, #dbbb6f) /* → gold */
|
|
70
72
|
);
|
|
71
73
|
|
|
72
74
|
/* Night ground for .whimsy-sky (#501) — derived from tokens, no new hex.
|
|
@@ -77,27 +79,27 @@
|
|
|
77
79
|
the band meets the page with no seam (owner ruling 2026-09-27, from the
|
|
78
80
|
Gatehouse header: the first, brighter purple read too loud). --fg holds
|
|
79
81
|
11.2:1 or better across the whole band. */
|
|
80
|
-
--whimsy-night-top: color-mix(in oklab, var(--bg-inactive) 76%, var(--brand-purple-fill));
|
|
81
|
-
--whimsy-night-bottom: var(--bg);
|
|
82
|
-
--whimsy-sky-speed: 40s; /* one sky cycle — slow drift, not a sweep */
|
|
83
|
-
--whimsy-sky-opacity: 0.1; /* flowing field over the ground — a faint tint, never a fill */
|
|
82
|
+
--whimsy-night-top: color-mix(in oklab, var(--bg-inactive) 76%, var(--brand-purple-fill)); /* @kind color */
|
|
83
|
+
--whimsy-night-bottom: var(--bg); /* @kind color */
|
|
84
|
+
--whimsy-sky-speed: 40s; /* @kind other */ /* one sky cycle — slow drift, not a sweep */
|
|
85
|
+
--whimsy-sky-opacity: 0.1; /* @kind other */ /* flowing field over the ground — a faint tint, never a fill */
|
|
84
86
|
|
|
85
87
|
/* Sine-wave mask for the rainbow rule (one period = 64px). */
|
|
86
|
-
--whimsy-wave-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='22' viewBox='0 0 64 22'><path d='M0 11 Q 8 2 16 11 T 32 11 T 48 11 T 64 11' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/></svg>");
|
|
88
|
+
--whimsy-wave-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='22' viewBox='0 0 64 22'><path d='M0 11 Q 8 2 16 11 T 32 11 T 48 11 T 64 11' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/></svg>"); /* @kind other */
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
/* Light mode (ivory paper) — the spectrum must darken to read on cream.
|
|
90
92
|
Same hues, lower lightness, a touch more chroma so it stays present. */
|
|
91
93
|
:root[data-theme="light"],
|
|
92
94
|
:root:not([data-theme]) {
|
|
93
|
-
--whimsy-l: 0.80;
|
|
95
|
+
--whimsy-l: 0.80; /* @kind other */
|
|
94
96
|
}
|
|
95
97
|
:root[data-theme="light"] {
|
|
96
|
-
--whimsy-l: 0.52;
|
|
97
|
-
--whimsy-c: 0.135;
|
|
98
|
+
--whimsy-l: 0.52; /* @kind other */
|
|
99
|
+
--whimsy-c: 0.135; /* @kind other */
|
|
98
100
|
}
|
|
99
101
|
@media (prefers-color-scheme: light) {
|
|
100
|
-
:root:not([data-theme]) { --whimsy-l: 0.52; --whimsy-c: 0.135; }
|
|
102
|
+
:root:not([data-theme]) { --whimsy-l: 0.52; /* @kind other */ --whimsy-c: 0.135; /* @kind other */ }
|
|
101
103
|
}
|
|
102
104
|
|
|
103
105
|
/* Silver inverts on cream: warm graphite/ink so it reads on the paper bg,
|
|
@@ -175,6 +177,13 @@
|
|
|
175
177
|
Works on .whimsy text, .whimsy--wave, and .whimsy-rule alike (they all read
|
|
176
178
|
--whimsy-gradient). Brand mode ignores --whimsy-c/l — it uses the tokens. */
|
|
177
179
|
.whimsy--brand { --whimsy-gradient: var(--whimsy-gradient-brand); }
|
|
180
|
+
/* Signature — gold + purple only, the pair the tokens call the personal
|
|
181
|
+
signature. Narrower than brand: reads as Cameron's mark, not a rainbow.
|
|
182
|
+
For the wordmark and the footer; same display-only rules as all whimsy. */
|
|
183
|
+
.whimsy--signature {
|
|
184
|
+
--whimsy-gradient: linear-gradient(var(--whimsy-angle),
|
|
185
|
+
var(--accent), var(--brand-purple-bright), var(--accent));
|
|
186
|
+
}
|
|
178
187
|
|
|
179
188
|
/* ─── Silver: a near-neutral metal sheen — the most restrained whimsy ──────
|
|
180
189
|
Black/white/grey/silver on dark; warm graphite on cream (text must contrast
|
|
@@ -253,13 +262,13 @@
|
|
|
253
262
|
|
|
254
263
|
/* Flow off — freeze the hue on a held slice. Gradient stays, motion stops. */
|
|
255
264
|
.whimsy--no-flow.whimsy,
|
|
256
|
-
.whimsy--no-flow.whimsy-rule { animation: none; background-position:
|
|
265
|
+
.whimsy--no-flow.whimsy-rule { animation: none; background-position: 150% 50%; }
|
|
257
266
|
.whimsy--no-flow.whimsy--wave > .whimsy-char {
|
|
258
267
|
animation-name: whimsy-bob; /* keep the bob, drop the flow */
|
|
259
268
|
animation-duration: var(--whimsy-bob);
|
|
260
269
|
animation-timing-function: var(--ease);
|
|
261
270
|
animation-iteration-count: infinite;
|
|
262
|
-
background-position:
|
|
271
|
+
background-position: 150% 50%;
|
|
263
272
|
}
|
|
264
273
|
/* Bob off — wave chars hold still; the hue keeps flowing. */
|
|
265
274
|
.whimsy--no-bob.whimsy--wave > .whimsy-char {
|
|
@@ -286,7 +295,7 @@
|
|
|
286
295
|
.whimsy--settled.whimsy-rule,
|
|
287
296
|
.whimsy--settled .whimsy-char {
|
|
288
297
|
animation: none !important;
|
|
289
|
-
background-position:
|
|
298
|
+
background-position: 150% 50% !important;
|
|
290
299
|
}
|
|
291
300
|
.whimsy--settled .whimsy-char { transform: none !important; }
|
|
292
301
|
|
|
@@ -314,7 +323,7 @@
|
|
|
314
323
|
.whimsy--glacial.whimsy-rule,
|
|
315
324
|
.whimsy--glacial .whimsy-char {
|
|
316
325
|
animation: none !important;
|
|
317
|
-
background-position:
|
|
326
|
+
background-position: 150% 50%; /* hold the gold-centred slice (amber → gold → green) */
|
|
318
327
|
}
|
|
319
328
|
.whimsy--wave > .whimsy-char { transform: none !important; }
|
|
320
329
|
}
|
|
@@ -359,8 +368,8 @@
|
|
|
359
368
|
}
|
|
360
369
|
.whimsy-focus.whimsy--brand::after {
|
|
361
370
|
background: conic-gradient(from var(--whimsy-spin),
|
|
362
|
-
var(--accent), var(--attention), var(--brand-purple),
|
|
363
|
-
var(--steel), var(--
|
|
371
|
+
var(--accent), var(--attention), var(--brand-purple-bright),
|
|
372
|
+
var(--steel), var(--accent));
|
|
364
373
|
}
|
|
365
374
|
.whimsy-focus:focus-visible::after,
|
|
366
375
|
.whimsy-focus:hover::after {
|
|
@@ -384,7 +393,7 @@
|
|
|
384
393
|
|
|
385
394
|
/* Tiling sine for rainbow underlines — one clean period per 40px; start/end at
|
|
386
395
|
the same phase so repeat-x butts seamlessly. */
|
|
387
|
-
:root { --whimsy-sine: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'><path d='M0 5 Q 10 1.5 20 5 T 40 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>"); }
|
|
396
|
+
:root { --whimsy-sine: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'><path d='M0 5 Q 10 1.5 20 5 T 40 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>"); /* @kind other */ }
|
|
388
397
|
|
|
389
398
|
/* .whimsy--gold — a metal palette, cousin of .whimsy--silver. Slow (16s) so it
|
|
390
399
|
reads as near-static metal; add .whimsy--no-flow for a still gold fill. Metal
|
|
@@ -432,7 +441,7 @@
|
|
|
432
441
|
to { -webkit-mask-position: -40px center, center; mask-position: -40px center, center; }
|
|
433
442
|
}
|
|
434
443
|
@media (prefers-reduced-motion: reduce) {
|
|
435
|
-
.whimsy-underline::after { animation: none !important; background-position:
|
|
444
|
+
.whimsy-underline::after { animation: none !important; background-position: 150% 50% !important; }
|
|
436
445
|
}
|
|
437
446
|
|
|
438
447
|
/* ═══ Night sky — the backdrop form of whimsy (#501) ══════════════════════════
|
package/src/artificer-whimsy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
-
ARTIFICER · Whimsy helper · v0.
|
|
2
|
+
ARTIFICER · Whimsy helper · v0.29.0
|
|
3
3
|
─────────────────────────────────────────────────────────────────────────
|
|
4
4
|
Tiny, dependency-free. Pairs with artificer-whimsy.css. Exposes window.Whimsy.
|
|
5
5
|
|