@cameronsjo/artificer 0.29.0 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/reference/SKILL.md +1 -1
- package/src/artificer-tailwind.css +41 -35
- package/src/artificer-whimsy.js +1 -1
- package/src/artificer.css +16 -11
- package/src/primitives.json +1 -1
- package/src/tokens.json +2 -2
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.29.
|
|
4
|
+
**v0.29.1 · 2026** — Tailwind v4-safe `@layer components` cascade scoping and `@cameronsjo/artificer/tailwind.css` `@theme inline` export, primary hover and steel badge contrast fixes, offline `artificer search`/`lookup`/`scan` CLI commands, inline `.alert` / `.btn-group` / `.list-group` primitives, React `Tabs`/`Listbox`/`Menu`/`Tree` wrappers, and modern-web fixes. 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.29.
|
|
3
|
+
"version": "0.29.1",
|
|
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",
|
package/reference/SKILL.md
CHANGED
|
@@ -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.29.
|
|
6
|
+
# Artificer · v0.29.1
|
|
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,17 +1,43 @@
|
|
|
1
1
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
2
2
|
ARTIFICER · Tailwind v4 @theme adapter
|
|
3
|
-
Import AFTER @import "tailwindcss";
|
|
3
|
+
Import AFTER @import "tailwindcss"; (artificer.css may be imported either
|
|
4
|
+
before or after Tailwind — both declare @layer theme, base, components,
|
|
5
|
+
utilities and place Artificer in @layer components).
|
|
4
6
|
|
|
5
7
|
@import "tailwindcss";
|
|
6
8
|
@import "@cameronsjo/artificer/artificer.css";
|
|
7
9
|
@import "@cameronsjo/artificer/tailwind.css";
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
Static tokens live in `@theme`. Runtime CSS custom property references live
|
|
12
|
+
in `@theme inline` so Tailwind inlines `var(--...)` directly into utilities
|
|
13
|
+
without emitting duplicate or self-referential `:root` declarations.
|
|
14
|
+
Spacing tokens use the `s-*` prefix (`p-s-md`, `gap-s-lg`) so they never
|
|
15
|
+
collide with Tailwind v4's container widths (`max-w-xs`..`max-w-3xl`).
|
|
12
16
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
13
17
|
|
|
14
18
|
@theme {
|
|
19
|
+
/* Typography — bound to Artificer's bundled variable faces (ADR 0046) */
|
|
20
|
+
--font-mono: 'JetBrains Mono', 'Berkeley Mono', ui-monospace, 'SF Mono', Menlo, monospace;
|
|
21
|
+
--font-body: 'Bricolage Grotesque', 'Source Sans 3', system-ui, -apple-system, sans-serif;
|
|
22
|
+
--font-interface: 'Recursive', 'Source Sans 3', system-ui, -apple-system, sans-serif;
|
|
23
|
+
--font-sans: 'Bricolage Grotesque', 'Source Sans 3', system-ui, -apple-system, sans-serif;
|
|
24
|
+
|
|
25
|
+
/* Radius */
|
|
26
|
+
--radius-sm: 4px;
|
|
27
|
+
--radius-md: 8px;
|
|
28
|
+
--radius-lg: 12px;
|
|
29
|
+
--radius-pill: 999px;
|
|
30
|
+
|
|
31
|
+
/* Motion */
|
|
32
|
+
--ease-artificer: cubic-bezier(0.2, 0.7, 0.3, 1);
|
|
33
|
+
|
|
34
|
+
/* Breakpoints */
|
|
35
|
+
--breakpoint-mobile: 640px;
|
|
36
|
+
--breakpoint-tablet: 800px;
|
|
37
|
+
--breakpoint-wide: 1200px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@theme inline {
|
|
15
41
|
/* Surfaces */
|
|
16
42
|
--color-bg: var(--bg);
|
|
17
43
|
--color-bg-raised: var(--bg-raised);
|
|
@@ -51,36 +77,16 @@
|
|
|
51
77
|
--color-brand-purple-bright: var(--brand-purple-bright);
|
|
52
78
|
--color-brand-purple-fill: var(--brand-purple-fill);
|
|
53
79
|
|
|
54
|
-
/*
|
|
55
|
-
--
|
|
56
|
-
--
|
|
57
|
-
--
|
|
58
|
-
--
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
--spacing-
|
|
62
|
-
--spacing-sm: var(--s-sm);
|
|
63
|
-
--spacing-md: var(--s-md);
|
|
64
|
-
--spacing-lg: var(--s-lg);
|
|
65
|
-
--spacing-xl: var(--s-xl);
|
|
66
|
-
--spacing-2xl: var(--s-2xl);
|
|
67
|
-
--spacing-3xl: var(--s-3xl);
|
|
68
|
-
|
|
69
|
-
/* Radius */
|
|
70
|
-
--radius-sm: 4px;
|
|
71
|
-
--radius-md: 8px;
|
|
72
|
-
--radius-lg: 12px;
|
|
73
|
-
--radius-pill: 999px;
|
|
74
|
-
|
|
75
|
-
/* Shadows */
|
|
76
|
-
--shadow-overlay: var(--shadow-overlay);
|
|
77
|
-
--shadow-popover: var(--shadow-popover);
|
|
78
|
-
|
|
79
|
-
/* Motion */
|
|
80
|
-
--ease-artificer: cubic-bezier(0.2, 0.7, 0.3, 1);
|
|
80
|
+
/* Spacing (8px grid — s-* prefix avoids clobbering Tailwind's max-w-xs..3xl) */
|
|
81
|
+
--spacing-s-xs: var(--s-xs);
|
|
82
|
+
--spacing-s-sm: var(--s-sm);
|
|
83
|
+
--spacing-s-md: var(--s-md);
|
|
84
|
+
--spacing-s-lg: var(--s-lg);
|
|
85
|
+
--spacing-s-xl: var(--s-xl);
|
|
86
|
+
--spacing-s-2xl: var(--s-2xl);
|
|
87
|
+
--spacing-s-3xl: var(--s-3xl);
|
|
81
88
|
|
|
82
|
-
/*
|
|
83
|
-
--
|
|
84
|
-
--
|
|
85
|
-
--breakpoint-wide: 1200px;
|
|
89
|
+
/* Shadows (art-* prefix avoids self-referential --shadow-overlay cycles) */
|
|
90
|
+
--shadow-art-overlay: var(--shadow-overlay);
|
|
91
|
+
--shadow-art-popover: var(--shadow-popover);
|
|
86
92
|
}
|
package/src/artificer-whimsy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
-
ARTIFICER · Whimsy helper · v0.29.
|
|
2
|
+
ARTIFICER · Whimsy helper · v0.29.1
|
|
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.29.
|
|
2
|
+
ARTIFICER · Design tokens · v0.29.1 (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
|
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
--success: #4a8a5e; /* apothecary green — completed, merged, autoAccept */
|
|
146
146
|
--success-fill: #2d6644; /* deep apothecary fill — badges/dots, ivory-on 5.67 AA */
|
|
147
147
|
--steel: #b8cad4; /* honest middle; meta / secondary UI */
|
|
148
|
-
--steel-fill: #
|
|
148
|
+
--steel-fill: #4a6878; /* deep steel fill — ivory-on 4.96 / bone-on 4.75 AA (#496) */
|
|
149
149
|
|
|
150
150
|
/* Brand — personal signature (gold + purple = Cameron). Not semantic.
|
|
151
151
|
bare = deep, NOT a foreground role (chart series-3, whimsy gradient stop).
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
--z-toast: 3000; /* @kind other */ /* always-on-top notifications */
|
|
226
226
|
|
|
227
227
|
/* Artificer v0.10.1 — baseline contract: see CLAUDE.md § Baseline contract */
|
|
228
|
-
--art-version: "0.29.
|
|
228
|
+
--art-version: "0.29.1"; /* @kind other */
|
|
229
229
|
|
|
230
230
|
color-scheme: dark;
|
|
231
231
|
}
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
--success: #2a5a3a; /* deep apothecary green */
|
|
257
257
|
--success-fill: #2a5a3a; /* fill == bare success in light; ivory-on 6.70 AA */
|
|
258
258
|
--steel: #2e4a5a;
|
|
259
|
-
--steel-fill: #
|
|
259
|
+
--steel-fill: #4a6878;
|
|
260
260
|
|
|
261
261
|
--brand-purple: #4a25a0; /* deep — chart series-3, whimsy gradient stop · 8.51:1 on ivory */
|
|
262
262
|
--brand-purple-bright: #5a35b0; /* lifted — syntax keyword foreground · 6.83:1 on ivory · v0.10.1 */
|
|
@@ -327,11 +327,13 @@
|
|
|
327
327
|
:root { --dur-instant: 0ms; /* @kind other */ --dur-fast: 0ms; /* @kind other */ --dur-max: 0ms; /* @kind other */ }
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
-
/* Cascade layer (#112):
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
outside the layer
|
|
334
|
-
|
|
330
|
+
/* Cascade layer (#112): declare Tailwind's standard layer order so Artificer
|
|
331
|
+
always sits above `@layer base` (Preflight) and below `@layer utilities`
|
|
332
|
+
regardless of whether `artificer.css` is imported before or after Tailwind.
|
|
333
|
+
`@font-face` and `:root` custom properties stay outside the layer, and
|
|
334
|
+
unlayered consumer CSS overrides cleanly without specificity wars. */
|
|
335
|
+
@layer theme, base, components, utilities;
|
|
336
|
+
@layer components {
|
|
335
337
|
|
|
336
338
|
/* ═══ Base ══════════════════════════════════════════════════════════════ */
|
|
337
339
|
*, *::before, *::after { box-sizing: border-box; }
|
|
@@ -501,7 +503,10 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
|
|
|
501
503
|
.btn:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); }
|
|
502
504
|
|
|
503
505
|
.btn--primary { background: var(--accent-fill); color: var(--on-accent); }
|
|
504
|
-
|
|
506
|
+
/* Lift the gold fill rather than swapping to --accent-bright (#866010 in light
|
|
507
|
+
mode dropped ink-on-hover to 2.76:1; brightness lift stays >= 6:1 in both
|
|
508
|
+
modes, matching .btn--destructive:hover — #575). */
|
|
509
|
+
.btn--primary:hover { filter: brightness(1.08); }
|
|
505
510
|
|
|
506
511
|
.btn--secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
|
|
507
512
|
.btn--secondary:hover { background: color-mix(in oklch, var(--accent) 14%, transparent); color: var(--accent-bright); border-color: var(--accent-bright); }
|
|
@@ -2791,4 +2796,4 @@ button.list-group__item:focus-visible {
|
|
|
2791
2796
|
button.list-group__item { min-height: 44px; }
|
|
2792
2797
|
}
|
|
2793
2798
|
|
|
2794
|
-
} /* end @layer
|
|
2799
|
+
} /* end @layer components */
|
package/src/primitives.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schemaVersion": "1",
|
|
3
|
-
"$version": "0.29.
|
|
3
|
+
"$version": "0.29.1",
|
|
4
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": {
|
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.29.
|
|
4
|
+
"$version": "0.29.1",
|
|
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.",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"successFill": { "dark": "#2d6644", "light": "#2a5a3a", "use": "Deep apothecary fill — success badges/dots/chips; deeper than bare success so ivory-on clears AA (5.67:1 dark / 6.70:1 light). Pair with --on-success text." },
|
|
39
39
|
|
|
40
40
|
"steel": { "dark": "#b8cad4", "light": "#2e4a5a", "use": "Steel blue — honest middle / chrome / secondary UI text / paths." },
|
|
41
|
-
"steelFill": { "dark": "#
|
|
41
|
+
"steelFill": { "dark": "#4a6878", "light": "#4a6878", "use": "Steel fill — meta badges." },
|
|
42
42
|
|
|
43
43
|
"diffAddBg": { "dark": "#1f3a28", "light": "#d8e4cc", "use": "Diff +added background. Derived tint of --success: same hue, knocked-down lightness." },
|
|
44
44
|
"diffDelBg": { "dark": "#3a1f1d", "light": "#ecd6d4", "use": "Diff -removed background. Derived tint of --urgent. Dimmer than diffAdd by design — destructive shouldn't out-shout success." }
|