@cameronsjo/artificer 0.22.0 → 0.22.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 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.22.0 · 2026** — the mint ledger: every shipped primitive now carries machine-readable provenance in `src/primitives.json` (vintage, classes, behavior module, recipe pointer, adoption signals), gated in CI by `check:primitives` — a mint can no longer ship invisible (#190) or unreachable (#191). The `artificer-upgrade` skill v0.3 walks the ledger instead of a hand-maintained matrix and sweeps consumers for hand-rolled equivalents of newer primitives; the vendor bin transports the ledger (`ARTIFICER-CHEATSHEET.md` ride-along retired); `docs/UPGRADE.md` gains the 0.11→0.20 migration rows under an existence-lockstep gate; `.masthead` and `.colophon` mint. See `CHANGELOG.md` for what changed.
4
+ **v0.22.1 · 2026** — the mint ledger: every shipped primitive now carries machine-readable provenance in `src/primitives.json` (vintage, classes, behavior module, recipe pointer, adoption signals), gated in CI by `check:primitives` — a mint can no longer ship invisible (#190) or unreachable (#191). The `artificer-upgrade` skill v0.3 walks the ledger instead of a hand-maintained matrix and sweeps consumers for hand-rolled equivalents of newer primitives; the vendor bin transports the ledger (`ARTIFICER-CHEATSHEET.md` ride-along retired); `docs/UPGRADE.md` gains the 0.11→0.20 migration rows under an existence-lockstep gate; `.masthead` and `.colophon` mint. 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.22.0",
3
+ "version": "0.22.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",
@@ -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.22.0
6
+ # Artificer · v0.22.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,5 +1,5 @@
1
1
  /* ═══════════════════════════════════════════════════════════════════════════
2
- ARTIFICER · Whimsy helper · v0.22.0
2
+ ARTIFICER · Whimsy helper · v0.22.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.22.0 (apothecary × deco × speakeasy)
2
+ ARTIFICER · Design tokens · v0.22.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
 
@@ -223,7 +223,7 @@
223
223
  --z-toast: 3000; /* always-on-top notifications */
224
224
 
225
225
  /* Artificer v0.10.1 — baseline contract: see CLAUDE.md § Baseline contract */
226
- --art-version: "0.22.0";
226
+ --art-version: "0.22.1";
227
227
 
228
228
  color-scheme: dark;
229
229
  }
@@ -424,6 +424,10 @@ a {
424
424
  a:hover, a:focus-visible { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
425
425
  /* Tool surfaces read links by position — underline only on hover/focus (the rule above). */
426
426
  .surface-tool a { text-decoration: none; }
427
+ /* .btn--link follows `a` here rather than joining its selector: widening that
428
+ one to :is(a, .btn--link) would lift it from (0,1,1) to (0,2,0) and could
429
+ out-order a rule that deliberately re-underlines an anchor. */
430
+ .surface-tool .btn--link { text-decoration: none; }
427
431
  a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); border-radius: 2px; }
428
432
 
429
433
  /* ═══ Buttons ═══════════════════════════════════════════════════════════ */
@@ -445,6 +449,24 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
445
449
  .btn--ghost { background: transparent; color: var(--fg-secondary); }
446
450
  .btn--ghost:hover { background: var(--bg-raised); color: var(--fg); }
447
451
 
452
+ /* An action that READS as text. <button> is the correct element when a control
453
+ acts rather than navigates — an SPA switching views, a disclosure toggle,
454
+ "show more" — and this renders it as the link it reads as, instead of
455
+ dressing an <a> in a click handler and lying to the accessibility tree.
456
+ Parity with <a> is by CONSTRUCTION where it matters: this class joins `a` in
457
+ the two context rules (the tool-surface underline strip, the colophon's sans
458
+ escape), so a later retune of either carries here instead of drifting.
459
+ Sits after the .btn variants deliberately — it is (0,1,0) like .btn, so it
460
+ wins on source order alone. v0.22.1. */
461
+ .btn--link {
462
+ padding: 0; border: 0; border-radius: 0; background: none;
463
+ font: inherit; /* undo .btn's face, size and weight */
464
+ color: var(--accent);
465
+ text-decoration: underline; text-underline-offset: 2px;
466
+ white-space: normal; /* .btn's nowrap is wrong for inline text */
467
+ }
468
+ .btn--link:hover { color: var(--accent-bright); }
469
+
448
470
  /* Icon-only button — square, meets the 44px nav touch floor (a11y #8).
449
471
  Compose with any variant (.btn.btn--icon.btn--ghost). Always needs an
450
472
  aria-label, since there's no text. v0.10.0. */
@@ -692,7 +714,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
692
714
  font-size: var(--t-label-sm-size);
693
715
  line-height: 1.6;
694
716
  }
695
- .colophon :where(p, ul, ol, li, a, small, dd, dt) { font-family: var(--font-sans); }
717
+ .colophon :where(p, ul, ol, li, a, small, dd, dt, .btn--link) { font-family: var(--font-sans); }
696
718
  .colophon__label {
697
719
  display: block; margin-bottom: var(--s-xs);
698
720
  font-family: var(--font-mono); font-size: var(--t-label-xs-size);
@@ -1609,13 +1631,17 @@ select:focus-visible,
1609
1631
  /* Colophon spine links. Scoped to the spine, NOT to a <nav> inside it: the
1610
1632
  spine's contract is that slots are positional and their content is the
1611
1633
  consumer's choice, so a links slot written as <div class="cluster">, a
1612
- <nav>, or two bare <a>s are all conforming — and a floor that only fired
1613
- for one of them would advertise a guarantee it doesn't keep. Prose links
1634
+ <nav>, bare <a>s, or an SPA's view-switching <button>s are all conforming
1635
+ — and a floor that only fired for some of them would advertise a
1636
+ guarantee it doesn't keep. Prose links
1614
1637
  in .colophon__fine are deliberately NOT covered: those are inline text
1615
1638
  links, exempt under WCAG 2.5.8.
1616
1639
  `justify-content` (not needed by the two rules above, whose content fills
1617
1640
  the box) centres a short label like "RSS" inside its square minimum. */
1618
1641
  .colophon__spine a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
1642
+ /* .btn--link strips .btn's padding, so it needs the floor in its own right
1643
+ — anywhere it is used, not only in a colophon. */
1644
+ .btn--link { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
1619
1645
  }
1620
1646
 
1621
1647
  /* Table -> cards reflow. Below --bp-mobile (640px) a wide data table
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schemaVersion": "1",
3
- "$version": "0.22.0",
3
+ "$version": "0.22.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.",
5
5
  "primitives": {
6
6
  "stack": {
@@ -262,12 +262,12 @@
262
262
  "classes": [
263
263
  "glyph"
264
264
  ],
265
- "recipe": "Dense table status / ✓✗~– cells",
265
+ "recipe": "Dense table status / \u2713\u2717~\u2013 cells",
266
266
  "adoption": {
267
267
  "supersedes": "raw emoji / hand-tinted spans in comparison grids",
268
268
  "signals": [
269
269
  {
270
- "grep": "[✓✗~]</(td|span)",
270
+ "grep": "[\u2713\u2717~]</(td|span)",
271
271
  "note": "bare status marks without .glyph tinting or role=img"
272
272
  }
273
273
  ]
@@ -470,7 +470,7 @@
470
470
  "signals": [
471
471
  {
472
472
  "grep": "role=\"tablist\"",
473
- "note": "ARIA tablist without ArtificerTabs.enhance() — the CSS alone is style-only"
473
+ "note": "ARIA tablist without ArtificerTabs.enhance() \u2014 the CSS alone is style-only"
474
474
  }
475
475
  ]
476
476
  }
@@ -584,7 +584,7 @@
584
584
  "api": "ArtificerOptions.combobox()",
585
585
  "hook": "input[data-combobox]"
586
586
  },
587
- "recipe": "Command palette / ⌘K",
587
+ "recipe": "Command palette / \u2318K",
588
588
  "demo": "live-spec/components-extended.html"
589
589
  },
590
590
  "popover": {
@@ -897,7 +897,7 @@
897
897
  },
898
898
  "versions": {
899
899
  "0.10.1": {
900
- "title": "v0.10.0 + v0.10.1 — navigation wave, SPA lifecycle, brandPurple ramp split (shipped as ONE commit; no consumer was ever on 0.10.0)",
900
+ "title": "v0.10.0 + v0.10.1 \u2014 navigation wave, SPA lifecycle, brandPurple ramp split (shipped as ONE commit; no consumer was ever on 0.10.0)",
901
901
  "minted": [
902
902
  "appbar",
903
903
  "sidenav",
@@ -967,7 +967,7 @@
967
967
  ]
968
968
  },
969
969
  "0.13.0": {
970
- "title": "trust layer · texture carve · whimsy attention · greeting · brand refresh",
970
+ "title": "trust layer \u00b7 texture carve \u00b7 whimsy attention \u00b7 greeting \u00b7 brand refresh",
971
971
  "minted": [
972
972
  "figure",
973
973
  "note",
@@ -981,7 +981,7 @@
981
981
  ]
982
982
  },
983
983
  "0.14.0": {
984
- "title": ".notif primitive · trust-layer follow-through · gradients · encapsulation doctrine",
984
+ "title": ".notif primitive \u00b7 trust-layer follow-through \u00b7 gradients \u00b7 encapsulation doctrine",
985
985
  "minted": [
986
986
  "notif"
987
987
  ],
@@ -991,7 +991,7 @@
991
991
  ]
992
992
  },
993
993
  "0.15.0": {
994
- "title": "A1 conformance gate · the component mints (option-popover keystone + what it unlocks) · loading-feedback",
994
+ "title": "A1 conformance gate \u00b7 the component mints (option-popover keystone + what it unlocks) \u00b7 loading-feedback",
995
995
  "minted": [
996
996
  "banner",
997
997
  "listbox",
@@ -1015,7 +1015,7 @@
1015
1015
  ]
1016
1016
  },
1017
1017
  "0.16.0": {
1018
- "title": "behavior modules (ArtificerOptions / ArtificerTree) · a11y floor · export gate",
1018
+ "title": "behavior modules (ArtificerOptions / ArtificerTree) \u00b7 a11y floor \u00b7 export gate",
1019
1019
  "minted": [],
1020
1020
  "breaking": [],
1021
1021
  "adoption": [
@@ -1026,7 +1026,7 @@
1026
1026
  ]
1027
1027
  },
1028
1028
  "0.17.0": {
1029
- "title": "the fix wave: gates grow contracts · --radius-pill · canonical chrome",
1029
+ "title": "the fix wave: gates grow contracts \u00b7 --radius-pill \u00b7 canonical chrome",
1030
1030
  "minted": [],
1031
1031
  "breaking": [],
1032
1032
  "adoption": []
@@ -1039,7 +1039,7 @@
1039
1039
  "kind": "repurpose",
1040
1040
  "what": "root font-size + every --t-*-size binding",
1041
1041
  "from": "root silently 87.5% (labels rendered at ~0.875x)",
1042
- "to": "html { font-size: 100% } — labels true",
1042
+ "to": "html { font-size: 100% } \u2014 labels true",
1043
1043
  "why": "everything token-bound grows ~14.3% (body 12.25 -> 14px); re-check dense layouts and any px assumptions",
1044
1044
  "ref": "#211"
1045
1045
  }
@@ -1053,7 +1053,7 @@
1053
1053
  "adoption": []
1054
1054
  },
1055
1055
  "0.19.0": {
1056
- "title": "Lane 2 unification (one version, one rhythm) · .glyph anti-emoji mint · terminalBg elevation (ADR 0036, terminal themes)",
1056
+ "title": "Lane 2 unification (one version, one rhythm) \u00b7 .glyph anti-emoji mint \u00b7 terminalBg elevation (ADR 0036, terminal themes)",
1057
1057
  "minted": [
1058
1058
  "glyph"
1059
1059
  ],
@@ -1087,6 +1087,14 @@
1087
1087
  "adoption": [
1088
1088
  "colophon"
1089
1089
  ]
1090
+ },
1091
+ "0.22.1": {
1092
+ "title": "btn--link: an action that reads as text \u2014 the missing way to render a <button> as a link, and the reason the colophon spine had to special-case buttons",
1093
+ "minted": [],
1094
+ "breaking": [],
1095
+ "adoption": [
1096
+ "btn"
1097
+ ]
1090
1098
  }
1091
1099
  },
1092
1100
  "$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.22.0",
4
+ "$version": "0.22.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.",