@cameronsjo/artificer 0.23.0 → 0.24.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  # Artificer · Design System Handoff
2
2
 
3
3
  Cameron's personal design system, packaged for use in real codebases.
4
- **v0.23.0 · 2026** — the phone check: a real-device pass across three consumer sites drove the mobile chrome's seams closed. The appbar brand truncates with an ellipsis instead of a mid-glyph clip (and claims its content width before the spacer takes the surplus); the nav drawer's safe-area inset moves inside the scroll content so the last row clears the iOS home indicator; sidenav hover is gated to devices that have hover. Two primitives mint: `.sidenav__section` (details-based collapsible drawer groups) and `.sidenav__footer` (the theme toggle's bottom-anchored drawer seat, pill intact against the nav-row reset). The coarse-pointer touch floor documents its indicator escape hatch — an 8px pagination pip overrides the 44px floor and carries its hit area on a `::before` overlay. See `CHANGELOG.md` for what changed.
4
+ **v0.24.0 · 2026** — the chrome ships once: a compiled React adapter lands at `@cameronsjo/artificer/react` (ESM + `d.ts`, `react >=18` peer) with the whole app shell as components — `AppShell`, `Appbar`, `NavDrawer`, `SideNav` (flat or collapsible sections), `SideNavFooter`, and the canonical `ThemeToggle` — so consumers import the chrome instead of hand-assembling recipes that drift. Ambient TypeScript types ship for all seven vanilla behavior modules. `.app-shell` gains knobs (`--shell-rail`, `--shell-gap`) and `.sidenav--sticky` mints the pinned rail, replacing per-app grid overrides. Nav `href`s pass a scheme guard; the export pipeline rebuilds `dist/` from reviewed sources and hard-fails on missing package exports. See `CHANGELOG.md` for what changed.
5
5
 
6
6
  ---
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cameronsjo/artificer",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "Cameron's personal design system — AuDHD-friendly, dark-first, for tools and dashboards. Apache-2.0 but Cameron-first: published for my own reuse, unsupported, no stability guarantees implied.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Cameron Sjo",
@@ -23,21 +23,56 @@
23
23
  "./texture.css": "./src/artificer-texture.css",
24
24
  "./editorial.css": "./src/artificer-editorial.css",
25
25
  "./print.css": "./src/print.css",
26
- "./theme.js": "./src/artificer-theme.js",
27
- "./focus.js": "./src/artificer-focus.js",
28
- "./tabs.js": "./src/artificer-tabs.js",
29
- "./options.js": "./src/artificer-options.js",
30
- "./tree.js": "./src/artificer-tree.js",
31
- "./icons.js": "./src/artificer-icons.js",
32
- "./whimsy.js": "./src/artificer-whimsy.js",
26
+ "./theme.js": {
27
+ "types": "./types/theme.d.ts",
28
+ "default": "./src/artificer-theme.js"
29
+ },
30
+ "./focus.js": {
31
+ "types": "./types/focus.d.ts",
32
+ "default": "./src/artificer-focus.js"
33
+ },
34
+ "./tabs.js": {
35
+ "types": "./types/tabs.d.ts",
36
+ "default": "./src/artificer-tabs.js"
37
+ },
38
+ "./options.js": {
39
+ "types": "./types/options.d.ts",
40
+ "default": "./src/artificer-options.js"
41
+ },
42
+ "./tree.js": {
43
+ "types": "./types/tree.d.ts",
44
+ "default": "./src/artificer-tree.js"
45
+ },
46
+ "./icons.js": {
47
+ "types": "./types/icons.d.ts",
48
+ "default": "./src/artificer-icons.js"
49
+ },
50
+ "./whimsy.js": {
51
+ "types": "./types/whimsy.d.ts",
52
+ "default": "./src/artificer-whimsy.js"
53
+ },
54
+ "./react": {
55
+ "types": "./dist/react/index.d.ts",
56
+ "default": "./dist/react/index.js"
57
+ },
33
58
  "./tokens.json": "./src/tokens.json",
34
59
  "./package.json": "./package.json"
35
60
  },
36
61
  "files": [
37
62
  "src",
38
63
  "bin",
64
+ "types",
65
+ "dist",
39
66
  "reference/SKILL.md"
40
67
  ],
68
+ "peerDependencies": {
69
+ "react": ">=18"
70
+ },
71
+ "peerDependenciesMeta": {
72
+ "react": {
73
+ "optional": true
74
+ }
75
+ },
41
76
  "publishConfig": {
42
77
  "access": "public"
43
78
  },
@@ -3,7 +3,7 @@ name: Artificer
3
3
  description: Cameron's personal design system. AuDHD-optimized, Ghostty-rooted, dark-first with a paper-stock light mode and a Jazz Age Deco palette (burnished gold + royal purple). Use for tools, dashboards, agent UIs, terminals, settings panels — anything that must stay calm until something demands action. Do NOT use for marketing sites, kid-facing UI, or anywhere the goal is delight-via-stimulation.
4
4
  ---
5
5
 
6
- # Artificer · v0.23.0
6
+ # Artificer · v0.24.0
7
7
 
8
8
  A neurodivergent-first design system for Cameron. Every token and rule here exists to reduce cognitive load for an AuDHD brain that **scans instead of reads** and holds **3–4 items** in working memory.
9
9
 
@@ -1,5 +1,5 @@
1
1
  /* ═══════════════════════════════════════════════════════════════════════════
2
- ARTIFICER · Whimsy helper · v0.23.0
2
+ ARTIFICER · Whimsy helper · v0.24.0
3
3
  ─────────────────────────────────────────────────────────────────────────
4
4
  Tiny, dependency-free. Pairs with artificer-whimsy.css. Exposes window.Whimsy.
5
5
 
package/src/artificer.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /* ═══════════════════════════════════════════════════════════════════════════
2
- ARTIFICER · Design tokens · v0.23.0 (apothecary × deco × speakeasy)
2
+ ARTIFICER · Design tokens · v0.24.0 (apothecary × deco × speakeasy)
3
3
  AuDHD-optimized, Ghostty-rooted, with warm Jazz-Age accents.
4
4
  Default theme = dark. Add data-theme="light" on <html> for ivory paper mode.
5
5
 
@@ -213,7 +213,7 @@
213
213
  --z-toast: 3000; /* always-on-top notifications */
214
214
 
215
215
  /* Artificer v0.10.1 — baseline contract: see CLAUDE.md § Baseline contract */
216
- --art-version: "0.23.0";
216
+ --art-version: "0.24.0";
217
217
 
218
218
  color-scheme: dark;
219
219
  }
@@ -2025,9 +2025,21 @@ select:focus-visible,
2025
2025
  min-height: 100dvh;
2026
2026
  grid-template-rows: [bar] auto [body] 1fr;
2027
2027
  grid-template-columns: [rail] var(--shell-rail, 240px) [main-start] minmax(0, 1fr) [main-end];
2028
+ column-gap: var(--shell-gap, 0px); /* rail↔content breathing room; 0 keeps the
2029
+ classic flush shell — consumers set --shell-gap instead of redefining the grid */
2028
2030
  }
2029
2031
  .app-shell > .appbar { grid-row: bar; grid-column: 1 / -1; }
2030
2032
  .app-shell > .sidenav { grid-row: body; grid-column: rail; }
2033
+ /* Sticky rail — the sidenav pins while the content scrolls. align-self: start
2034
+ is load-bearing: a default-stretch grid child is as tall as the body row and
2035
+ has nowhere to stick. --sidenav-sticky-top clears any sticky chrome above
2036
+ (e.g. calc(56px + var(--s-md)) under a sticky .appbar). Replaces the
2037
+ consumer-invented sticky wrapper aside. */
2038
+ .sidenav--sticky {
2039
+ position: sticky;
2040
+ top: var(--sidenav-sticky-top, var(--s-md));
2041
+ align-self: start;
2042
+ }
2031
2043
  .app-shell__content {
2032
2044
  grid-row: body; grid-column: main-start / main-end;
2033
2045
  min-width: 0; /* belt-and-suspenders with the minmax(0,1fr) main track */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schemaVersion": "1",
3
- "$version": "0.23.0",
4
- "$doc": "Primitive mint ledger (ADR 0037, #199). Provenance + adoption semantics for every shipped primitive. tokens.json owns token VALUES; scripts/css-token-set.baseline.json owns the token SET; this file owns grouping, vintage, recipes, and adoption signals. Gated by scripts/check-primitives.mjs (check:primitives). minted 'pending-backfill' marks an entry awaiting mechanical dating (all dated by #199 PR-3's backfill; the sentinel remains legal for future re-derivations); 'unreleased' marks a mint on a feature branch, swept to the release version by sync:primitives-vintage.",
3
+ "$version": "0.24.0",
4
+ "$doc": "Primitive mint ledger (ADR 0037, #199). Provenance + adoption semantics for every shipped primitive. tokens.json owns token VALUES; scripts/css-token-set.baseline.json owns the token SET; this file owns grouping, vintage, recipes, and adoption signals. Gated by scripts/check-primitives.mjs (check:primitives). minted 'pending-backfill' marks an entry awaiting mechanical dating (all dated by #199 PR-3's backfill; the sentinel remains legal for future re-derivations); 'unreleased' marks a mint on a feature branch, swept to the release version by sync:primitives-vintage. The 'js' field names a VANILLA src/ behavior module (data- hook + window API); the 'react' field names the compiled React adapter component(s) for the primitive (@cameronsjo/artificer/react) — distinct fields because they are distinct consumption models.",
5
5
  "primitives": {
6
6
  "stack": {
7
7
  "kind": "utility",
@@ -180,7 +180,15 @@
180
180
  "app-shell",
181
181
  "app-shell__content"
182
182
  ],
183
- "recipe": "App shell / full-viewport layout"
183
+ "recipe": "App shell / full-viewport layout",
184
+ "variants": [
185
+ {
186
+ "class": "app-shell",
187
+ "minted": "0.24.0",
188
+ "note": "knobs, not overrides: --shell-rail (rail width, 240px default) and --shell-gap (rail-to-content column gap, 0 default) — consumers tune the grid via custom properties instead of redefining grid-template-columns"
189
+ }
190
+ ],
191
+ "react": "AppShell + AppShellContent"
184
192
  },
185
193
  "appbar": {
186
194
  "kind": "component",
@@ -193,7 +201,8 @@
193
201
  "appbar__search",
194
202
  "appbar__spacer"
195
203
  ],
196
- "recipe": "Top app bar"
204
+ "recipe": "Top app bar",
205
+ "react": "Appbar"
197
206
  },
198
207
  "sidenav": {
199
208
  "kind": "component",
@@ -203,22 +212,29 @@
203
212
  "sidenav__group",
204
213
  "sidenav__section",
205
214
  "sidenav__footer",
215
+ "sidenav--sticky",
206
216
  "label",
207
217
  "count"
208
218
  ],
209
219
  "recipe": "Side navigation",
210
220
  "variants": [
221
+ {
222
+ "class": "sidenav--sticky",
223
+ "minted": "0.24.0",
224
+ "note": "sticky rail — pins the sidenav while .app-shell__content scrolls; align-self:start is load-bearing (a stretch child has nowhere to stick); --sidenav-sticky-top clears sticky chrome above. Replaces consumer-invented sticky wrapper asides"
225
+ },
211
226
  {
212
227
  "class": "sidenav__section",
213
- "minted": "unreleased",
228
+ "minted": "0.23.0",
214
229
  "note": "collapsible group — <details class=\"sidenav__section\"> whose <summary> carries the group-label treatment + twisty; rows keep full sidenav styling. The section holding [aria-current=\"page\"] must be rendered open (consumer JS owns the open attribute); sticky group labels deliberately don't apply inside <details>"
215
230
  },
216
231
  {
217
232
  "class": "sidenav__footer",
218
- "minted": "unreleased",
233
+ "minted": "0.23.0",
219
234
  "note": "bottom-anchored settings row (margin-top:auto in the min-height:100% drawer sidenav) — the theme toggle's drawer seat; pairs a text label with a canonical .theme-toggle--inline [data-theme-toggle] button"
220
235
  }
221
- ]
236
+ ],
237
+ "react": "SideNav + SideNavFooter"
222
238
  },
223
239
  "nav-drawer": {
224
240
  "kind": "component",
@@ -227,7 +243,8 @@
227
243
  "nav-drawer",
228
244
  "nav-scrim"
229
245
  ],
230
- "recipe": "Mobile nav drawer"
246
+ "recipe": "Mobile nav drawer",
247
+ "react": "NavDrawer"
231
248
  },
232
249
  "crumb": {
233
250
  "kind": "component",
@@ -1173,6 +1190,25 @@
1173
1190
  "adoption": [
1174
1191
  "btn"
1175
1192
  ]
1193
+ },
1194
+ "0.24.0": {
1195
+ "title": "chrome components: the compiled React adapter (@cameronsjo/artificer/react) single-sources the app shell; ambient d.ts for the vanilla modules; app-shell knobs + sticky rail",
1196
+ "minted": [],
1197
+ "breaking": [
1198
+ {
1199
+ "kind": "remove",
1200
+ "what": "useTheme React hook (framework-adapters/react-components.tsx, copy-consumed only — never npm-imported)",
1201
+ "from": "2-state dark/light hook duplicating the module's persistence",
1202
+ "to": "canonical <ThemeToggle /> (artificer-theme.js owns state) + useThemeMode() for reactive reads",
1203
+ "why": "the hook predated the 3-state canonical cycle and desynced from module-owned toggles"
1204
+ }
1205
+ ],
1206
+ "adoption": [
1207
+ "appbar",
1208
+ "sidenav",
1209
+ "nav-drawer",
1210
+ "app-shell"
1211
+ ]
1176
1212
  }
1177
1213
  },
1178
1214
  "$exempt": []
package/src/tokens.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://design-tokens.org/schema.json",
3
3
  "$description": "Artificer · Cameron's personal design system. Machine-readable token export. Mirrors artificer.css. Source of truth lives in the CSS — regenerate this file if tokens change there.",
4
- "$version": "0.23.0",
4
+ "$version": "0.24.0",
5
5
 
6
6
  "color": {
7
7
  "$description": "All colors paired with their dark/light values. AAA-tuned where indicated. v0.6 palette: apothecary × deco × speakeasy.",
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Types for artificer-focus.js — the modal/drawer focus trap. Import for
3
+ * effect: `import '@cameronsjo/artificer/focus.js';`
4
+ */
5
+ export interface ArtificerFocusApi {
6
+ /** Trap focus inside `el` (Tab cycles; focusables recomputed every Tab).
7
+ * `onEscape` fires on Esc; `release()` untraps and restores focus to the
8
+ * previously-focused element. */
9
+ trap(el: Element | null, opts?: { onEscape?: (e: KeyboardEvent) => void }): { release(): void };
10
+ }
11
+
12
+ declare global {
13
+ interface Window {
14
+ ArtificerFocus?: ArtificerFocusApi;
15
+ }
16
+ }
17
+ export {};
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Types for artificer-icons.js — Lucide-rooted icon hydration for
3
+ * `<i data-icon="name">` placeholders (unknown names render a dashed
4
+ * placeholder, never a silent blank). Import for effect:
5
+ * `import '@cameronsjo/artificer/icons.js';`
6
+ */
7
+ export interface ArtificerIconsApi {
8
+ /** Build one icon SVG element for `name`, or null for an unknown name. */
9
+ build(name: string): SVGSVGElement | null;
10
+ /** One-shot hydrate of `root` (default document). */
11
+ hydrate(root?: ParentNode | null): void;
12
+ /** Hydrate `root` now and watch for inserted icons (SPA). Returns a disconnect fn. */
13
+ observe(root?: Element | null): () => void;
14
+ /** Canonical icon names. */
15
+ list(): string[];
16
+ }
17
+
18
+ declare global {
19
+ interface Window {
20
+ ArtificerIcons?: ArtificerIconsApi;
21
+ }
22
+ }
23
+ export {};
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Types for artificer-options.js — option-navigation behavior for the
3
+ * `.menu`/`.listbox` primitive (roving tabindex or aria-activedescendant).
4
+ * Import for effect: `import '@cameronsjo/artificer/options.js';`
5
+ */
6
+ export interface ArtificerOptionsApi {
7
+ /** Roving-tabindex keyboard model on a standalone listbox/menu. Returns a teardown fn. */
8
+ enhance(
9
+ el: Element | null,
10
+ opts?: { onSelect?: (index: number, option: Element) => void; wrap?: boolean },
11
+ ): () => void;
12
+ /** aria-activedescendant cursor for the palette/combobox recipe; focus stays
13
+ * on the input; printable keys and Escape are never consumed. The handle's
14
+ * refresh() re-reads options after the consumer filters the list. */
15
+ combobox(
16
+ input: HTMLInputElement | null,
17
+ list: Element | null,
18
+ opts?: { onSelect?: (index: number, option: Element) => void },
19
+ ): { refresh(): void; teardown(): void };
20
+ /** enhance() every [data-options] / [data-combobox] under `root` (SPA). Returns a disconnect fn. */
21
+ observe(root?: Element | null): () => void;
22
+ /** Pure: next option index for `key` (clamped for listboxes, wrapping for menus), or null. */
23
+ nextOption(key: string, current: number, count: number, opts?: { wrap?: boolean }): number | null;
24
+ /** Pure: type-to-select match — index of the option matching `buffer`, or null. */
25
+ matchOption(labels: string[], buffer: string, current: number): number | null;
26
+ }
27
+
28
+ declare global {
29
+ interface Window {
30
+ ArtificerOptions?: ArtificerOptionsApi;
31
+ }
32
+ }
33
+ export {};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Types for artificer-tabs.js — the WAI-ARIA tabs behavior for the `.tabs`
3
+ * primitive. Frameworks that own selection state use the pure `nextIndex`
4
+ * only (enhance/observe toggle panels via `hidden`, which fights conditional
5
+ * rendering). Import for effect: `import '@cameronsjo/artificer/tabs.js';`
6
+ */
7
+ export interface ArtificerTabsApi {
8
+ /** Wire the APG keyboard model onto a tablist element. Returns a teardown fn. */
9
+ enhance(el: Element | null, opts?: { onSelect?: (index: number, tab: Element) => void }): () => void;
10
+ /** enhance() every [data-tabs] under `root` now and as inserted (SPA). Returns a disconnect fn. */
11
+ observe(root?: Element | null): () => void;
12
+ /** Pure state machine: the index focus/selection moves to for `key`, or null when not a tab-nav key. */
13
+ nextIndex(
14
+ key: string,
15
+ current: number,
16
+ count: number,
17
+ opts?: { orientation?: 'horizontal' | 'vertical' },
18
+ ): number | null;
19
+ }
20
+
21
+ declare global {
22
+ interface Window {
23
+ ArtificerTabs?: ArtificerTabsApi;
24
+ }
25
+ }
26
+ export {};
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Types for artificer-theme.js — a side-effect script that owns theme state:
3
+ * three modes (dark / light / auto), persistence under `ArtificerTheme.KEY`,
4
+ * canonical empty `[data-theme-toggle]` buttons hydrated with the half-circle
5
+ * glyph, all instances kept in sync. Import for effect:
6
+ * import '@cameronsjo/artificer/theme.js';
7
+ */
8
+ export type ArtificerThemeMode = 'dark' | 'light' | 'auto';
9
+
10
+ export interface ArtificerThemeApi {
11
+ /** Apply + persist a mode ('auto' follows prefers-color-scheme live). */
12
+ apply(mode: ArtificerThemeMode): void;
13
+ /** Cycle dark → light → auto. */
14
+ toggle(): void;
15
+ /** Bind any unbound [data-theme-toggle] buttons now (idempotent). */
16
+ bind(): void;
17
+ /** bind() now, then watch `root` (default body) for inserted toggles. Returns a disconnect fn. */
18
+ observe(root?: Element | null): () => void;
19
+ /** The localStorage key ('artificer.theme') — the ONE source of truth; never re-hardcode it. */
20
+ readonly KEY: string;
21
+ }
22
+
23
+ declare global {
24
+ interface Window {
25
+ ArtificerTheme?: ArtificerThemeApi;
26
+ }
27
+ }
28
+ export {};
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Types for artificer-tree.js — the APG tree behavior for the `.tree`
3
+ * primitive (inert on `.tree--static` by design). Import for effect:
4
+ * `import '@cameronsjo/artificer/tree.js';`
5
+ */
6
+ export interface ArtificerTreeApi {
7
+ /** Wire roving tabindex + arrow-key model onto a [role=tree] element. Returns a teardown fn. */
8
+ enhance(
9
+ treeEl: Element | null,
10
+ opts?: {
11
+ onSelect?: (item: Element) => void;
12
+ onToggle?: (item: Element, expanded: boolean) => void;
13
+ },
14
+ ): () => void;
15
+ /** enhance() every [data-tree] under `root` (SPA). Returns a disconnect fn. */
16
+ observe(root?: Element | null): () => void;
17
+ /** Pure: next visible item index for `key` (a tree never wraps), or null. */
18
+ nextVisible(key: string, current: number, count: number): number | null;
19
+ /** Pure: the action for `key` given item state — expand / collapse / activate / move, or null. */
20
+ treeAction(
21
+ key: string,
22
+ state: { expanded?: boolean; isParent?: boolean },
23
+ ): string | null;
24
+ }
25
+
26
+ declare global {
27
+ interface Window {
28
+ ArtificerTree?: ArtificerTreeApi;
29
+ }
30
+ }
31
+ export {};
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Types for artificer-whimsy.js — the sanctioned whimsy layer (burnished
3
+ * sine-wave rainbow; opt-in, settles, reduced-motion-safe). Import for
4
+ * effect: `import '@cameronsjo/artificer/whimsy.js';`
5
+ */
6
+ export interface WhimsyApi {
7
+ /** Split [data-whimsy~="wave"] elements under `root` into bobbing chars. */
8
+ hydrate(root?: ParentNode | null): void;
9
+ /** hydrate() now and watch `root` for inserted whimsy nodes (SPA). Returns a disconnect fn. */
10
+ observe(root?: Element | null): () => void;
11
+ /** Ignite a target when a trigger word is typed into `input`. Returns a teardown fn. */
12
+ watch(
13
+ input: HTMLElement | null,
14
+ opts?: { triggers?: string[]; target?: Element | null; loops?: number; settle?: 'static' | 'glacial' },
15
+ ): () => void;
16
+ /** One-shot celebration — auto-clears. */
17
+ celebrate(el: Element | null, opts?: number | { ms?: number }): void;
18
+ /** Dissolve treatment (fade-through-whimsy) for a leaving element. */
19
+ dissolve(el: Element | null, opts?: Record<string, unknown>): void;
20
+ /** Pure: the dissolve keyframe timeline for `opts` under a reduced-motion flag. */
21
+ dissolveTimeline(opts?: Record<string, unknown>, reducedMotion?: boolean): unknown;
22
+ /** Pure: parse a CSS duration string to milliseconds (NaN for invalid input). */
23
+ parseMs(value: string | null | undefined): number;
24
+ /** Swap [data-whimsy-greeting] elements under `root` to their seasonal line (idempotent). */
25
+ greeting(root?: ParentNode): void;
26
+ /** Pure: the greeting line + class set for a date. */
27
+ greetingFor(date?: Date | null, opts?: { default?: string; defaultClass?: string }): unknown;
28
+ /** Ignite, then settle after N hue-cycles. Returns a cancel fn. */
29
+ run(el: Element | null, opts?: { loops?: number; settle?: 'static' | 'glacial' }): () => void;
30
+ /** Freeze long-lived whimsy: 'static' (motion off) or 'glacial' (one slow drift). */
31
+ settle(el: Element | null, mode?: 'static' | 'glacial'): void;
32
+ /** Undo a settle. */
33
+ unsettle(el: Element | null): void;
34
+ /** Arrange a settle after `loops` hue-cycles. */
35
+ scheduleSettle(el: Element | null, loops?: number, mode?: 'static' | 'glacial'): void;
36
+ /** Manually add the flowing-gradient state. */
37
+ ignite(el: Element | null): void;
38
+ /** Manually remove the flowing-gradient state. */
39
+ clear(el: Element | null): void;
40
+ }
41
+
42
+ declare global {
43
+ interface Window {
44
+ Whimsy?: WhimsyApi;
45
+ }
46
+ }
47
+ export {};