@cameronsjo/artificer 0.24.1 → 0.25.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 -2
- package/dist/react/primitives.d.ts +0 -11
- package/dist/react/primitives.d.ts.map +1 -1
- package/dist/react/primitives.js +9 -3
- package/package.json +3 -1
- package/reference/SKILL.md +6 -2
- package/src/artificer-whimsy.js +1 -1
- package/src/artificer.css +55 -5
- package/src/primitives.json +1 -1
- package/src/tokens.json +1 -1
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.
|
|
4
|
+
**v0.25.0 · 2026** — the browser wears it too: generated Chrome/Edge (`themes/chromium/`) and Firefox (`themes/firefox/`) themes, sideloadable today, packed by `npm run pack:browser`. The comparison-matrix pass hardens the wide-table story — `.tabs` loses its phantom vertical scrollbar, `.table--sticky-col` covers `<th scope="row">` row headers, `.table--responsive` promotes row headers to card titles and guards unlabeled cells, `.scroll-x--fade` mints the edge-fade scroll affordance, and `.badge--steel` lands the meta badge tier as a rated whisper tint. Plus the JetBrains theme plugin (twentieth generator), light-mode `onAccent` ink parity for Claude Code / VS Code, and herdr's focused-row colors. See `CHANGELOG.md` for what changed.
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -289,7 +289,7 @@ The CSS uses `color-scheme: dark` / `light` so form controls and scrollbars matc
|
|
|
289
289
|
|
|
290
290
|
---
|
|
291
291
|
|
|
292
|
-
## Editor &
|
|
292
|
+
## Editor, terminal & browser themes
|
|
293
293
|
|
|
294
294
|
Artificer also ships as themes for the surfaces where Cameron actually
|
|
295
295
|
lives — same palette, every surface. The editors and agent CLIs:
|
|
@@ -298,9 +298,18 @@ lives — same palette, every surface. The editors and agent CLIs:
|
|
|
298
298
|
- **VS Code / Cursor** — `themes/vscode/` (sideload or `vsce package`)
|
|
299
299
|
- **Helix** — `themes/helix/artificer-{dark,light}.toml` (+ `-opaque` twins)
|
|
300
300
|
- **Neovim** — `themes/neovim/colors/artificer.lua` (one file, both modes)
|
|
301
|
+
- **JetBrains IDEs** — `themes/jetbrains/` (IntelliJ Platform theme plugin; `npm run pack:jetbrains` → install the jar from disk)
|
|
301
302
|
- **Codex CLI** — `themes/codex/artificer-{dark,light}.tmTheme`
|
|
302
303
|
- **Obsidian** — `themes/obsidian/Artificer/` (drop-in theme folder, hand-authored sister)
|
|
303
304
|
|
|
305
|
+
And the browser:
|
|
306
|
+
|
|
307
|
+
- **Chrome / Edge** — `themes/chromium/artificer-{dark,light}/` (one extension package per mode; Chromium's manifest takes only RGB arrays and has no dark/light switch)
|
|
308
|
+
- **Firefox** — `themes/firefox/artificer/` (one package, both modes — the sibling `dark_theme` key follows the OS)
|
|
309
|
+
|
|
310
|
+
`npm run pack:browser` builds the store zips; sideload straight from the
|
|
311
|
+
directory without packing at all.
|
|
312
|
+
|
|
304
313
|
Plus the terminal and TUI surfaces around them — Ghostty, tmux, gitmux, cmux,
|
|
305
314
|
bat/delta, glamour, gum, fzf, eza, starship, yazi, lazygit, gh-dash, herdr, and
|
|
306
315
|
flux. **`themes/README.md` carries the full list**; it is the one place that
|
|
@@ -70,17 +70,6 @@ export declare function Notification({ tier, title, children, action, }: {
|
|
|
70
70
|
onClick: () => void;
|
|
71
71
|
};
|
|
72
72
|
}): React.JSX.Element;
|
|
73
|
-
declare global {
|
|
74
|
-
interface Window {
|
|
75
|
-
ArtificerFocus?: {
|
|
76
|
-
trap: (el: HTMLElement, opts?: {
|
|
77
|
-
onEscape?: (e: Event) => void;
|
|
78
|
-
}) => {
|
|
79
|
-
release: () => void;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
73
|
export declare function Modal({ open, onClose, title, children, footer, labelledBy, }: {
|
|
85
74
|
open: boolean;
|
|
86
75
|
onClose: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../framework-adapters/react/src/primitives.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,iDAAiD;AACjD,wBAAgB,EAAE,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,MAAM,CAE7E;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../framework-adapters/react/src/primitives.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,iDAAiD;AACjD,wBAAgB,EAAE,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,MAAM,CAE7E;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAarE;AAID,KAAK,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AACzD,wBAAgB,KAAK,CAAC,EACpB,GAAU,EACV,EAAE,EAAE,EAAU,EACd,SAAc,EACd,GAAG,IAAI,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,QAAQ,CAAC;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAE,qBAEhF;AAED,wBAAgB,OAAO,CAAC,EACtB,GAAU,EACV,OAAO,EACP,GAAG,EACH,EAAE,EAAE,EAAU,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C;CACrB,4BA+BA;AAQD,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,qBAQ3F;AAID,wBAAgB,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,QAMjE;AAED,wBAAgB,SAAS,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,QASlE"}
|
package/dist/react/primitives.js
CHANGED
|
@@ -26,9 +26,15 @@ export function cx(...parts) {
|
|
|
26
26
|
export function safeHref(href) {
|
|
27
27
|
if (href == null)
|
|
28
28
|
return undefined;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
// Scheme-detect on what the BROWSER will parse, not the raw string: URL
|
|
30
|
+
// parsers strip ASCII tab/LF/CR anywhere and C0 controls at the edges, so
|
|
31
|
+
// `java\tscript:` is javascript: to the browser while a naive regex sees no
|
|
32
|
+
// scheme at all (verified live — the bypass a consumer's security review
|
|
33
|
+
// caught). The original href is what gets rendered; only the DECISION uses
|
|
34
|
+
// the control-stripped view.
|
|
35
|
+
const parsed = href.replace(/[\u0000-\u001f\u007f]/g, '').trimStart();
|
|
36
|
+
if (/^(?:[a-z][a-z0-9+.-]*):/i.test(parsed)) {
|
|
37
|
+
return /^(?:https?|mailto|tel):/i.test(parsed) ? href : undefined;
|
|
32
38
|
}
|
|
33
39
|
return href; // relative / fragment / query — no scheme to abuse
|
|
34
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cameronsjo/artificer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.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",
|
|
@@ -86,6 +86,8 @@
|
|
|
86
86
|
"sync:version": "node scripts/sync-version.mjs",
|
|
87
87
|
"check:tokens": "node scripts/sync-tokens.mjs --check",
|
|
88
88
|
"sync:tokens": "node scripts/sync-tokens.mjs",
|
|
89
|
+
"pack:jetbrains": "node scripts/pack-jetbrains.mjs",
|
|
90
|
+
"pack:browser": "node scripts/pack-browser.mjs",
|
|
89
91
|
"sri": "node scripts/gen-sri.mjs",
|
|
90
92
|
"test": "node --test scripts/*.test.mjs"
|
|
91
93
|
}
|
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.
|
|
6
|
+
# Artificer · v0.25.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
|
|
|
@@ -133,7 +133,9 @@ If you have **no file system** (chat-only artifact), inline the contents of `art
|
|
|
133
133
|
| File upload / dropzone | `.file-field` (click-to-browse) → add `.file-field--drop` for a drag well; toggle `.is-dragover` on drag events — `components.html` |
|
|
134
134
|
| Dense table status / ✓✗~– cells | `.glyph--{success\|muted\|attention\|na}` tints ✓✗~– with a theme token; graphical (SC 1.4.11) so each pairs with `aria-label` — sparse/labeled status stays `.badge`+`.dot` — `data-display.html` |
|
|
135
135
|
| Icon inside button/link | `<i data-icon="search"></i>` — see `icons.html` for full set |
|
|
136
|
-
| Table of data | `data-display.html` — `.table`, right-align numerics, `font-variant-numeric: tabular-nums` |
|
|
136
|
+
| Table of data | `data-display.html` — `.table`, right-align numerics, `font-variant-numeric: tabular-nums`; `.table--responsive` + `data-label` reflows to cards <640px (a `<th scope="row">` becomes the card header) |
|
|
137
|
+
| Wide table / diff / wider-than-phone block | `<div class="scroll-x" tabindex="0">…</div>` — content scrolls inside, never the page; `tabindex="0"` is load-bearing (axe scrollable-region-focusable). `.scroll-x--fade` adds self-hiding edge shadows — `keyboard.html` |
|
|
138
|
+
| Wide comparison matrix (tools × features) | Row-per-item + glyph/text cells → `.table--responsive` cards; interactive/score grids (cell buttons, heatmaps) → stay a table in `.scroll-x.scroll-x--fade` + `.table--sticky-col` (pins `tbody th:first-child` too). Never both below 640px — `data-display.html` |
|
|
137
139
|
| Key-value list | `.kv`; mono `<dl>` grid for metadata pairs, `.table` for real data — `data-display.html` |
|
|
138
140
|
| Live data indicator | `.live-tick` (pulsing dot) + `.last-updated` (timestamp); auto-updating regions still need an in-UI pause — `composition.html` |
|
|
139
141
|
| Stat card / KPI strip / headline numbers (KPIs) | `.stat` — `.stat__label` + `.stat__value` (mono, tabular) + `.stat__row` + `.stat__delta`(`.down`); the cell of a `.kpi-strip`, max 4 per row — `data-display.html` |
|
|
@@ -292,6 +294,8 @@ CARDS .card + .card--active | --attention | --urgent
|
|
|
292
294
|
FORMS .field > label + .input | .select | .textarea + .hint | .error
|
|
293
295
|
|
|
294
296
|
BADGES .badge + .badge--accent | --attention | --urgent | --success | --ghost
|
|
297
|
+
.badge--steel (meta tier: versions, languages, maturity — whisper
|
|
298
|
+
tint, never a solid steel fill; no text clears AA on solid steel)
|
|
295
299
|
DOTS .dot + .dot--accent | --attention | --urgent | --success
|
|
296
300
|
|
|
297
301
|
PANES .pane--active (gold left border) · .pane--inactive (55% opacity, desaturated)
|
package/src/artificer-whimsy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
-
ARTIFICER · Whimsy helper · v0.
|
|
2
|
+
ARTIFICER · Whimsy helper · v0.25.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.
|
|
2
|
+
ARTIFICER · Design tokens · v0.25.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.
|
|
216
|
+
--art-version: "0.25.0";
|
|
217
217
|
|
|
218
218
|
color-scheme: dark;
|
|
219
219
|
}
|
|
@@ -542,6 +542,11 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
|
|
|
542
542
|
.badge--urgent { background: var(--urgent-fill); color: var(--on-urgent); }
|
|
543
543
|
.badge--success { background: var(--success-fill); color: var(--on-success); }
|
|
544
544
|
.badge--ghost { background: transparent; color: var(--fg-secondary); border: 1px solid var(--border); }
|
|
545
|
+
/* Steel — the meta/info tier tokens.json always promised. A whisper tint,
|
|
546
|
+
not a fill: no text color clears AA on solid --steel-fill (best 4.23:1),
|
|
547
|
+
so the fill stays 15% and --steel carries the text (>=5.9:1 on every
|
|
548
|
+
surface, both themes — measured with scripts/contrast.mjs). */
|
|
549
|
+
.badge--steel { background: color-mix(in oklch, var(--steel-fill) 15%, transparent); color: var(--steel); border: 1px solid var(--steel-fill); }
|
|
545
550
|
|
|
546
551
|
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
|
|
547
552
|
.dot--accent { background: var(--accent-fill); }
|
|
@@ -934,6 +939,21 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
934
939
|
.scroll-x:focus-visible, .code-block:focus-visible {
|
|
935
940
|
outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset);
|
|
936
941
|
}
|
|
942
|
+
/* Edge-fade scroll affordance — "there's more" shadows that appear only when
|
|
943
|
+
content extends past an edge and self-hide at scroll end. Pure CSS scrolling
|
|
944
|
+
shadows: two cover gradients travel with the content (attachment: local) and
|
|
945
|
+
slide over two fixed edge shadows (attachment: scroll). Tokens only; the
|
|
946
|
+
shadow is a hint, not chrome — an opaque cell fill may paint over it.
|
|
947
|
+
Compose: <div class="scroll-x scroll-x--fade" tabindex="0">…</div> */
|
|
948
|
+
.scroll-x--fade {
|
|
949
|
+
background:
|
|
950
|
+
linear-gradient(to right, var(--bg) 30%, transparent) left / 40px 100%,
|
|
951
|
+
linear-gradient(to left, var(--bg) 30%, transparent) right / 40px 100%,
|
|
952
|
+
linear-gradient(to right, color-mix(in oklch, var(--fg) 14%, transparent), transparent) left / 14px 100%,
|
|
953
|
+
linear-gradient(to left, color-mix(in oklch, var(--fg) 14%, transparent), transparent) right / 14px 100%;
|
|
954
|
+
background-repeat: no-repeat;
|
|
955
|
+
background-attachment: local, local, scroll, scroll;
|
|
956
|
+
}
|
|
937
957
|
|
|
938
958
|
.code-block {
|
|
939
959
|
font-family: var(--font-mono); font-size: var(--t-label-md-size); line-height: 1.6;
|
|
@@ -1109,7 +1129,15 @@ select:focus-visible,
|
|
|
1109
1129
|
background: var(--bg);
|
|
1110
1130
|
box-shadow: 0 1px 0 var(--border);
|
|
1111
1131
|
}
|
|
1132
|
+
/* Body cells pin at --z-base: above their in-flow row siblings, below the
|
|
1133
|
+
sticky header (--z-raised) — at equal z the later-in-DOM body cells would
|
|
1134
|
+
paint over the header row in the sticky-head + sticky-col combo. Covers
|
|
1135
|
+
<th scope="row"> row headers, not only td:first-child. */
|
|
1112
1136
|
.table--sticky-col tbody td:first-child,
|
|
1137
|
+
.table--sticky-col tbody th:first-child {
|
|
1138
|
+
position: sticky; left: 0; z-index: var(--z-base);
|
|
1139
|
+
background: var(--bg);
|
|
1140
|
+
}
|
|
1113
1141
|
.table--sticky-col thead th:first-child {
|
|
1114
1142
|
position: sticky; left: 0; z-index: var(--z-raised);
|
|
1115
1143
|
background: var(--bg);
|
|
@@ -1800,6 +1828,10 @@ select:focus-visible,
|
|
|
1800
1828
|
.tabs {
|
|
1801
1829
|
display: flex; flex-wrap: nowrap; gap: var(--s-md); align-items: stretch;
|
|
1802
1830
|
overflow-x: auto;
|
|
1831
|
+
/* overflow-y must be pinned: with overflow-x alone it computes to auto, and
|
|
1832
|
+
the buttons' -1px underline pull-down makes the strip 1px "scrollable" —
|
|
1833
|
+
a permanent vertical scrollbar next to the horizontal one. */
|
|
1834
|
+
overflow-y: hidden;
|
|
1803
1835
|
/* Thin, token-colored scrollbar — hidden until tabs overflow the container. */
|
|
1804
1836
|
scrollbar-width: thin; scrollbar-color: var(--border) transparent;
|
|
1805
1837
|
border-bottom: 1px solid var(--border);
|
|
@@ -1934,7 +1966,14 @@ select:focus-visible,
|
|
|
1934
1966
|
|
|
1935
1967
|
/* Table -> cards reflow. Below --bp-mobile (640px) a wide data table
|
|
1936
1968
|
restacks: each row becomes a card, each cell labelled by its column.
|
|
1937
|
-
Opt-in: add .table--responsive and a data-label on every <td>.
|
|
1969
|
+
Opt-in: add .table--responsive and a data-label on every <td>.
|
|
1970
|
+
A <th scope="row"> becomes the card's header (no data-label needed);
|
|
1971
|
+
a <td> WITHOUT data-label spans the card as a plain block (also the
|
|
1972
|
+
colspan story) instead of rendering a phantom empty label slot.
|
|
1973
|
+
Cells holding .glyph (role="img" + aria-label) are the sanctioned
|
|
1974
|
+
non-text content; interactive-control grids (cell buttons) should stay
|
|
1975
|
+
tables inside .scroll-x rather than reflow. tfoot and tr.group-row are
|
|
1976
|
+
not reflowed — omit them from responsive tables. */
|
|
1938
1977
|
@media (max-width: 640px) {
|
|
1939
1978
|
.table--responsive thead {
|
|
1940
1979
|
position: absolute; width: 1px; height: 1px;
|
|
@@ -1946,14 +1985,25 @@ select:focus-visible,
|
|
|
1946
1985
|
padding: var(--s-sm) var(--s-md);
|
|
1947
1986
|
}
|
|
1948
1987
|
.table--responsive tbody td {
|
|
1988
|
+
display: block; border: none; padding: 6px 0; text-align: left;
|
|
1989
|
+
}
|
|
1990
|
+
.table--responsive tbody td[data-label] {
|
|
1949
1991
|
display: flex; align-items: center; justify-content: space-between;
|
|
1950
|
-
gap: var(--s-md);
|
|
1992
|
+
gap: var(--s-md); text-align: right;
|
|
1951
1993
|
}
|
|
1952
|
-
.table--responsive tbody td::before {
|
|
1994
|
+
.table--responsive tbody td[data-label]::before {
|
|
1953
1995
|
content: attr(data-label); text-align: left;
|
|
1954
1996
|
font-family: var(--font-interface); font-size: var(--t-label-sm-size);
|
|
1955
1997
|
letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-secondary);
|
|
1956
1998
|
}
|
|
1999
|
+
.table--responsive tbody th[scope="row"] {
|
|
2000
|
+
display: block; text-align: left;
|
|
2001
|
+
padding: 6px 0 var(--s-sm); border-bottom: 1px solid var(--border);
|
|
2002
|
+
}
|
|
2003
|
+
/* Sticky-col is meaningless once rows are cards — neutralize the combo so
|
|
2004
|
+
the pinned cell doesn't carry position:sticky into block layout. */
|
|
2005
|
+
.table--responsive.table--sticky-col tbody td:first-child,
|
|
2006
|
+
.table--responsive.table--sticky-col tbody th:first-child { position: static; }
|
|
1957
2007
|
}
|
|
1958
2008
|
|
|
1959
2009
|
|
package/src/primitives.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schemaVersion": "1",
|
|
3
|
-
"$version": "0.
|
|
3
|
+
"$version": "0.25.0",
|
|
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.
|
|
4
|
+
"$version": "0.25.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.",
|