@cameronsjo/artificer 0.27.0 → 0.28.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 +11 -10
- package/package.json +5 -1
- package/reference/SKILL.md +10 -9
- package/src/artificer-sploot.js +303 -0
- package/src/artificer-texture.css +129 -23
- package/src/artificer-whimsy.css +43 -34
- package/src/artificer-whimsy.js +1 -1
- package/src/artificer.css +271 -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 +31 -2
- package/src/print.css +4 -3
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
-
ARTIFICER · Texture · v0.12.0 (the third — and ceiling — sanctioned carve)
|
|
2
|
+
ARTIFICER · Texture · v0.12.0 → drafting v0.28 (the third — and ceiling — sanctioned carve)
|
|
3
3
|
─────────────────────────────────────────────────────────────────────────
|
|
4
4
|
Artificer's surfaces are flat solid fills by doctrine. This file is the
|
|
5
5
|
bounded place that relaxes that — material honesty, not decoration. Read
|
|
@@ -28,26 +28,30 @@
|
|
|
28
28
|
|
|
29
29
|
:root {
|
|
30
30
|
/* ── knobs ─────────────────────────────────────────────────────────────── */
|
|
31
|
-
--tex-dot-gap: 14px; /* dot-matrix lattice pitch. Sweet spot 14; 12–16. */
|
|
32
|
-
--tex-fiber-strength: 0.5; /* document-fiber intensity (0–1). */
|
|
33
|
-
--tex-paper-grain: 0.22; /* page-grain level. 0.22 = Faint · 0.45 = Whisper. */
|
|
34
|
-
--tex-line-ink: var(--border); /* deco lines are token ink, never raw color. */
|
|
35
|
-
--tex-line-a: 70%; /* line ink alpha (dark). */
|
|
31
|
+
--tex-dot-gap: 14px; /* @kind spacing */ /* dot-matrix lattice pitch. Sweet spot 14; 12–16. */
|
|
32
|
+
--tex-fiber-strength: 0.5; /* @kind other */ /* document-fiber intensity (0–1). */
|
|
33
|
+
--tex-paper-grain: 0.22; /* @kind other */ /* page-grain level. 0.22 = Faint · 0.45 = Whisper (drawn ×0.71 on ink). */
|
|
34
|
+
--tex-line-ink: var(--border); /* @kind color */ /* deco lines are token ink, never raw color. */
|
|
35
|
+
--tex-line-a: 70%; /* @kind other */ /* line ink alpha (dark). */
|
|
36
|
+
--tex-grid-minor: 8px; /* @kind spacing */ /* drafting grid minor pitch = --s-sm. */
|
|
37
|
+
--tex-grid-major: 40px; /* @kind spacing */ /* drafting grid major pitch (5 minors). */
|
|
38
|
+
--tex-ruled-lh: 1.7em; /* @kind other */ /* ledger line pitch; text + rules share it. */
|
|
39
|
+
--tex-perf-ground: var(--bg); /* @kind color */ /* what the perforation notches punch through to. */
|
|
36
40
|
|
|
37
41
|
/* Desaturated fiber noise — the paper/ink tooth. No hue, blended into surface. */
|
|
38
|
-
--tex-noise-fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
|
|
42
|
+
--tex-noise-fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); /* @kind other */
|
|
39
43
|
/* Page-grain speckle — noise baked as ALPHA so it shows with normal
|
|
40
44
|
compositing (blend-mode independent, renders reliably). Light grains on
|
|
41
45
|
ink; the light-theme block below swaps to ink grains on paper. */
|
|
42
|
-
--tex-speckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='1.1' intercept='-0.45'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
|
|
46
|
+
--tex-speckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='1.1' intercept='-0.45'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E"); /* @kind other */
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
/* Light (paper) retunes — the lines read too strong on cream with the dark
|
|
46
50
|
--border at full alpha and pick up a bluish cast; ride the border ink softer.
|
|
47
51
|
The page-grain speckle inverts to ink grains so it shows on paper. */
|
|
48
52
|
:root[data-theme="light"] {
|
|
49
|
-
--tex-line-a: 68%;
|
|
50
|
-
--tex-speckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.12 0 0 0 0 0.11 0 0 0 0 0.20 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='1.1' intercept='-0.45'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
|
|
53
|
+
--tex-line-a: 68%; /* @kind other */
|
|
54
|
+
--tex-speckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.12 0 0 0 0 0.11 0 0 0 0 0.20 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='1.1' intercept='-0.45'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E"); /* @kind other */
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
/* ═══ 1 · GRAIN ═══════════════════════════════════════════════════════════
|
|
@@ -91,6 +95,13 @@
|
|
|
91
95
|
opacity: var(--tex-paper-grain);
|
|
92
96
|
}
|
|
93
97
|
.tex-paper--whisper { --tex-paper-grain: 0.45; }
|
|
98
|
+
/* Whisper is capped lower on ink: at 0.45 the light speckle on a dark floor
|
|
99
|
+
read as dust/static, so the ink floor draws it at ~0.32 (0.45 × 0.71).
|
|
100
|
+
Paper keeps the full level — ink grains on cream read as tooth. Scaled on
|
|
101
|
+
the pseudo-element so no new custom property is declared per theme. */
|
|
102
|
+
.tex-paper--whisper::before { opacity: calc(var(--tex-paper-grain) * 0.71); }
|
|
103
|
+
:root[data-theme="light"] .tex-paper--whisper::before { opacity: var(--tex-paper-grain); }
|
|
104
|
+
@media (prefers-color-scheme: light) { :root:not([data-theme]) .tex-paper--whisper::before { opacity: var(--tex-paper-grain); } }
|
|
94
105
|
|
|
95
106
|
/* ═══ 3 · DECO LINE-TEXTURE (ink, not material) ═══════════════════════════
|
|
96
107
|
Hatch / cross / flute / pinstripe — drawn ONLY from token ink, so they add
|
|
@@ -114,20 +125,24 @@
|
|
|
114
125
|
repeating-linear-gradient(45deg, transparent 0 7px, color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 7px 8px),
|
|
115
126
|
repeating-linear-gradient(-45deg, transparent 0 7px, color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 7px 8px);
|
|
116
127
|
}
|
|
117
|
-
/* flute — paired vertical hairlines, the speakeasy column
|
|
128
|
+
/* flute — paired vertical hairlines, the speakeasy column. 28px period, a
|
|
129
|
+
4px pair gap: wide enough that the doubling reads at a glance (the old
|
|
130
|
+
17px/2px pitch was indistinguishable from pinstripe). */
|
|
118
131
|
.tex-line--flute::after {
|
|
119
132
|
background-image: repeating-linear-gradient(90deg,
|
|
120
|
-
transparent 0
|
|
121
|
-
color-mix(in oklab, var(--fg) 9%, transparent)
|
|
122
|
-
transparent
|
|
123
|
-
color-mix(in oklab, var(--fg) 9%, transparent)
|
|
133
|
+
transparent 0 20px,
|
|
134
|
+
color-mix(in oklab, var(--fg) 9%, transparent) 20px 21px,
|
|
135
|
+
transparent 21px 25px,
|
|
136
|
+
color-mix(in oklab, var(--fg) 9%, transparent) 25px 26px,
|
|
137
|
+
transparent 26px 28px);
|
|
124
138
|
}
|
|
125
139
|
:root[data-theme="light"] .tex-line--flute::after {
|
|
126
140
|
background-image: repeating-linear-gradient(90deg,
|
|
127
|
-
transparent 0
|
|
128
|
-
color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent)
|
|
129
|
-
transparent
|
|
130
|
-
color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent)
|
|
141
|
+
transparent 0 20px,
|
|
142
|
+
color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 20px 21px,
|
|
143
|
+
transparent 21px 25px,
|
|
144
|
+
color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 25px 26px,
|
|
145
|
+
transparent 26px 28px);
|
|
131
146
|
}
|
|
132
147
|
/* pinstripe — even single hairlines, tailoring not architecture */
|
|
133
148
|
.tex-line--pinstripe::after {
|
|
@@ -139,15 +154,106 @@
|
|
|
139
154
|
/* ═══ 4 · RAISED (outer-glow depth) ═══════════════════════════════════════
|
|
140
155
|
The one sanctioned elevation beyond the functional --shadow-overlay. The
|
|
141
156
|
card FACE stays flat (no interior gradient — that "uniform glow" look is a
|
|
142
|
-
canonical no); depth is a soft halo
|
|
143
|
-
|
|
157
|
+
canonical no); depth is a soft halo falling straight down, entirely outside
|
|
158
|
+
the border — lit from above, the same light as the app icon (v0.28; was
|
|
159
|
+
bottom-right). */
|
|
144
160
|
.tex-raised {
|
|
145
|
-
box-shadow:
|
|
161
|
+
box-shadow: 0 6px 14px 1px rgba(0,0,0,.20), 0 14px 30px 2px rgba(0,0,0,.14);
|
|
146
162
|
}
|
|
147
163
|
:root[data-theme="light"] .tex-raised {
|
|
148
|
-
box-shadow:
|
|
164
|
+
box-shadow: 0 6px 14px 1px rgba(32,32,62,.13), 0 14px 30px 2px rgba(32,32,62,.09);
|
|
149
165
|
}
|
|
150
166
|
|
|
167
|
+
/* ═══ 5 · DRAFTING (v0.28) — the maker's bench ════════════════════════════
|
|
168
|
+
Six textures from the drafting table the compass icon comes off. Same
|
|
169
|
+
bounds as everything above: token ink only, no hue, no motion, never on
|
|
170
|
+
data/status/errors, one per surface.
|
|
171
|
+
.tex-grid engineering paper — tool canvases, layout previews
|
|
172
|
+
.tex-line--arc scribed compass arcs from a corner — empty states
|
|
173
|
+
.tex-line--ray deco sunburst from bottom-centre — ONE launch moment
|
|
174
|
+
.tex-ruled ledger rules locked to the text — notes, journals
|
|
175
|
+
.tex-perf a perforated tear line — receipt / ticket cards
|
|
176
|
+
.tex-deboss pressed-in display type — decorative ONLY */
|
|
177
|
+
|
|
178
|
+
/* drafting grid — minor on the 8px spacing unit, major every 5 minors. */
|
|
179
|
+
.tex-grid { position: relative; isolation: isolate; }
|
|
180
|
+
.tex-grid::after {
|
|
181
|
+
content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
|
|
182
|
+
background-image:
|
|
183
|
+
linear-gradient(to right, color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 1px, transparent 1px),
|
|
184
|
+
linear-gradient(to bottom, color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 1px, transparent 1px),
|
|
185
|
+
linear-gradient(to right, color-mix(in oklab, var(--tex-line-ink) calc(var(--tex-line-a) * .45), transparent) 1px, transparent 1px),
|
|
186
|
+
linear-gradient(to bottom, color-mix(in oklab, var(--tex-line-ink) calc(var(--tex-line-a) * .45), transparent) 1px, transparent 1px);
|
|
187
|
+
background-size:
|
|
188
|
+
var(--tex-grid-major) var(--tex-grid-major), var(--tex-grid-major) var(--tex-grid-major),
|
|
189
|
+
var(--tex-grid-minor) var(--tex-grid-minor), var(--tex-grid-minor) var(--tex-grid-minor);
|
|
190
|
+
background-position: -1px -1px;
|
|
191
|
+
}
|
|
192
|
+
:root[data-theme="light"] .tex-grid::after { opacity: 0.8; }
|
|
193
|
+
|
|
194
|
+
/* scribed arcs — concentric compass arcs swung from the bottom-right corner,
|
|
195
|
+
masked so they fade before reaching the content. Composes with .tex-line. */
|
|
196
|
+
.tex-line--arc::after {
|
|
197
|
+
background-image: repeating-radial-gradient(circle at 100% 100%,
|
|
198
|
+
transparent 0 17px,
|
|
199
|
+
color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 17px 18px);
|
|
200
|
+
-webkit-mask-image: radial-gradient(circle at 100% 100%, #000 30%, transparent 85%);
|
|
201
|
+
mask-image: radial-gradient(circle at 100% 100%, #000 30%, transparent 85%);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* deco sunburst — hairline rays fanned from bottom-centre. A single-moment
|
|
205
|
+
texture (release banner, launch hero): never a repeated surface. */
|
|
206
|
+
.tex-line--ray::after {
|
|
207
|
+
background-image: repeating-conic-gradient(from -90deg at 50% 100%,
|
|
208
|
+
color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 0 .5deg,
|
|
209
|
+
transparent .5deg 7.5deg);
|
|
210
|
+
-webkit-mask-image: radial-gradient(ellipse 70% 95% at 50% 100%, #000 25%, transparent 80%);
|
|
211
|
+
mask-image: radial-gradient(ellipse 70% 95% at 50% 100%, #000 25%, transparent 80%);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* ledger rule — the element owns its line-height, and each rule sits at the
|
|
215
|
+
bottom of the em box: (line-height + 1em) / 2 from the top of every line
|
|
216
|
+
box, just under the baseline (the baseline sits 0.33–0.36em below the
|
|
217
|
+
line box's middle for Bricolage Grotesque, Recursive and JetBrains Mono,
|
|
218
|
+
so the rule at +0.5em clears it). Rules start at the content box, so
|
|
219
|
+
padding never shifts them; local attachment keeps them under the text when
|
|
220
|
+
a <textarea> scrolls. Set the font-size on the element itself. */
|
|
221
|
+
.tex-ruled {
|
|
222
|
+
line-height: var(--tex-ruled-lh);
|
|
223
|
+
background-image: linear-gradient(to bottom,
|
|
224
|
+
transparent 0 calc((var(--tex-ruled-lh) + 1em) / 2 - 1px),
|
|
225
|
+
color-mix(in oklab, var(--tex-line-ink) var(--tex-line-a), transparent) 0 calc((var(--tex-ruled-lh) + 1em) / 2),
|
|
226
|
+
transparent 0);
|
|
227
|
+
background-size: 100% var(--tex-ruled-lh);
|
|
228
|
+
background-origin: content-box;
|
|
229
|
+
background-attachment: local;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* perforation — a tear line between two padded sections of a card. The card
|
|
233
|
+
needs overflow: hidden and no side padding on the line itself; the notches
|
|
234
|
+
punch through to --tex-perf-ground (set it to the card's backdrop). */
|
|
235
|
+
.tex-perf {
|
|
236
|
+
height: 16px; margin: 0 -1px; border: 0;
|
|
237
|
+
background:
|
|
238
|
+
radial-gradient(circle at 0 50%, var(--tex-perf-ground) 7px, var(--border) 7.5px 8.5px, transparent 9px) left / 50% 100% no-repeat,
|
|
239
|
+
radial-gradient(circle at 100% 50%, var(--tex-perf-ground) 7px, var(--border) 7.5px 8.5px, transparent 9px) right / 50% 100% no-repeat,
|
|
240
|
+
repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px) center / calc(100% - 32px) 1px no-repeat;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* letterpress — display type pressed into its surface: the text IS the
|
|
244
|
+
surface color, drawn by a 1px light edge below and a 1px shadow edge above.
|
|
245
|
+
Below text contrast BY DESIGN — decorative only (colophons, empty-page
|
|
246
|
+
watermarks). Always aria-hidden or duplicated in readable text. */
|
|
247
|
+
.tex-deboss {
|
|
248
|
+
color: var(--bg);
|
|
249
|
+
text-shadow: 0 1px 0 rgba(255,255,255,.07), 0 -1px 0 rgba(0,0,0,.55);
|
|
250
|
+
}
|
|
251
|
+
:root[data-theme="light"] .tex-deboss {
|
|
252
|
+
color: var(--bg-overlay);
|
|
253
|
+
text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 -1px 0 rgba(32,32,62,.18);
|
|
254
|
+
}
|
|
255
|
+
@media (forced-colors: active) { .tex-deboss { color: GrayText; text-shadow: none; } }
|
|
256
|
+
|
|
151
257
|
/* ═══ Reduced-motion ══════════════════════════════════════════════════════
|
|
152
258
|
Texture is static by design, so there is nothing to stop. Page-grain travels
|
|
153
259
|
with native scroll only — it has no animation. Documented for completeness. */
|
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.28.0
|
|
3
3
|
─────────────────────────────────────────────────────────────────────────
|
|
4
4
|
Tiny, dependency-free. Pairs with artificer-whimsy.css. Exposes window.Whimsy.
|
|
5
5
|
|