@cameronsjo/artificer 0.21.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 +1 -1
- package/package.json +1 -1
- package/reference/SKILL.md +1 -1
- package/src/artificer-whimsy.js +1 -1
- package/src/artificer.css +75 -3
- package/src/primitives.json +31 -14
- 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.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.
|
|
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",
|
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.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
|
|
package/src/artificer-whimsy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
-
ARTIFICER · Whimsy helper · v0.
|
|
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.
|
|
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.
|
|
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);
|
|
@@ -705,6 +727,42 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
705
727
|
color: var(--fg-secondary); /* NOT --fg-muted — 3.05:1, below AA floor */
|
|
706
728
|
font-size: var(--t-label-xs-size); line-height: 1.5;
|
|
707
729
|
}
|
|
730
|
+
/* The spine — the colophon's one row: identity · sign-off · links. Three slots,
|
|
731
|
+
and the middle one is centred ON THE PAGE, not in whatever space the outer
|
|
732
|
+
two leave over. That is why this is a grid and not `space-between`: equal
|
|
733
|
+
`1fr` side columns mean a long copyright can't shove the sign-off sideways.
|
|
734
|
+
Slots are positional, not classed — first child starts, last child ends. Any
|
|
735
|
+
slot may be empty; leave the element in place to hold its column.
|
|
736
|
+
(Minting provenance — two consumers derived this independently — in
|
|
737
|
+
CHANGELOG v0.22.0. The touch floor lives with the other nav targets in
|
|
738
|
+
§ Touch escalation, not here.) */
|
|
739
|
+
.colophon__spine {
|
|
740
|
+
display: grid;
|
|
741
|
+
grid-template-columns: 1fr auto 1fr;
|
|
742
|
+
align-items: center;
|
|
743
|
+
gap: var(--gap, var(--s-md)); /* --gap: the same knob .stack/.cluster expose */
|
|
744
|
+
}
|
|
745
|
+
/* Above the stack breakpoint only: below it the container centres every slot,
|
|
746
|
+
and an `end` here would have to be countermanded. Declaring it in min-width
|
|
747
|
+
keeps the alignment rule in one place instead of two. */
|
|
748
|
+
@media (min-width: 641px) {
|
|
749
|
+
.colophon__spine > :last-child { justify-self: end; }
|
|
750
|
+
}
|
|
751
|
+
/* Zone spacing: the spine only needs a gap above it when it follows sibling
|
|
752
|
+
colophon content (a .grid-auto of labeled sections). A spine-only colophon
|
|
753
|
+
gets its space from .colophon's own padding. */
|
|
754
|
+
.colophon__spine:not(:first-child) { margin-top: var(--s-lg); }
|
|
755
|
+
@media (max-width: 640px) {
|
|
756
|
+
/* Stack, and centre every slot — a left-aligned copyright above a centred
|
|
757
|
+
sign-off reads as a mistake at this width. text-align carries the wrapped
|
|
758
|
+
second line, which justify-items alone does not. */
|
|
759
|
+
.colophon__spine {
|
|
760
|
+
grid-template-columns: 1fr;
|
|
761
|
+
justify-items: center;
|
|
762
|
+
text-align: center;
|
|
763
|
+
gap: var(--gap, var(--s-sm));
|
|
764
|
+
}
|
|
765
|
+
}
|
|
708
766
|
|
|
709
767
|
/* ═══ Overlays · modal & popover ═══════════════════════════════════════ */
|
|
710
768
|
.scrim {
|
|
@@ -1570,6 +1628,20 @@ select:focus-visible,
|
|
|
1570
1628
|
full-height touch area without changing their visual size. */
|
|
1571
1629
|
.appbar__brand { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
|
|
1572
1630
|
.crumb a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
|
|
1631
|
+
/* Colophon spine links. Scoped to the spine, NOT to a <nav> inside it: the
|
|
1632
|
+
spine's contract is that slots are positional and their content is the
|
|
1633
|
+
consumer's choice, so a links slot written as <div class="cluster">, a
|
|
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
|
|
1637
|
+
in .colophon__fine are deliberately NOT covered: those are inline text
|
|
1638
|
+
links, exempt under WCAG 2.5.8.
|
|
1639
|
+
`justify-content` (not needed by the two rules above, whose content fills
|
|
1640
|
+
the box) centres a short label like "RSS" inside its square minimum. */
|
|
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; }
|
|
1573
1645
|
}
|
|
1574
1646
|
|
|
1575
1647
|
/* Table -> cards reflow. Below --bp-mobile (640px) a wide data table
|
package/src/primitives.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schemaVersion": "1",
|
|
3
|
-
"$version": "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 /
|
|
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": "[
|
|
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()
|
|
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 /
|
|
587
|
+
"recipe": "Command palette / \u2318K",
|
|
588
588
|
"demo": "live-spec/components-extended.html"
|
|
589
589
|
},
|
|
590
590
|
"popover": {
|
|
@@ -732,7 +732,8 @@
|
|
|
732
732
|
"classes": [
|
|
733
733
|
"colophon",
|
|
734
734
|
"colophon__fine",
|
|
735
|
-
"colophon__label"
|
|
735
|
+
"colophon__label",
|
|
736
|
+
"colophon__spine"
|
|
736
737
|
],
|
|
737
738
|
"recipe": "Footer / colophon / fine print / attribution"
|
|
738
739
|
},
|
|
@@ -896,7 +897,7 @@
|
|
|
896
897
|
},
|
|
897
898
|
"versions": {
|
|
898
899
|
"0.10.1": {
|
|
899
|
-
"title": "v0.10.0 + v0.10.1
|
|
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)",
|
|
900
901
|
"minted": [
|
|
901
902
|
"appbar",
|
|
902
903
|
"sidenav",
|
|
@@ -966,7 +967,7 @@
|
|
|
966
967
|
]
|
|
967
968
|
},
|
|
968
969
|
"0.13.0": {
|
|
969
|
-
"title": "trust layer
|
|
970
|
+
"title": "trust layer \u00b7 texture carve \u00b7 whimsy attention \u00b7 greeting \u00b7 brand refresh",
|
|
970
971
|
"minted": [
|
|
971
972
|
"figure",
|
|
972
973
|
"note",
|
|
@@ -980,7 +981,7 @@
|
|
|
980
981
|
]
|
|
981
982
|
},
|
|
982
983
|
"0.14.0": {
|
|
983
|
-
"title": ".notif primitive
|
|
984
|
+
"title": ".notif primitive \u00b7 trust-layer follow-through \u00b7 gradients \u00b7 encapsulation doctrine",
|
|
984
985
|
"minted": [
|
|
985
986
|
"notif"
|
|
986
987
|
],
|
|
@@ -990,7 +991,7 @@
|
|
|
990
991
|
]
|
|
991
992
|
},
|
|
992
993
|
"0.15.0": {
|
|
993
|
-
"title": "A1 conformance gate
|
|
994
|
+
"title": "A1 conformance gate \u00b7 the component mints (option-popover keystone + what it unlocks) \u00b7 loading-feedback",
|
|
994
995
|
"minted": [
|
|
995
996
|
"banner",
|
|
996
997
|
"listbox",
|
|
@@ -1014,7 +1015,7 @@
|
|
|
1014
1015
|
]
|
|
1015
1016
|
},
|
|
1016
1017
|
"0.16.0": {
|
|
1017
|
-
"title": "behavior modules (ArtificerOptions / ArtificerTree)
|
|
1018
|
+
"title": "behavior modules (ArtificerOptions / ArtificerTree) \u00b7 a11y floor \u00b7 export gate",
|
|
1018
1019
|
"minted": [],
|
|
1019
1020
|
"breaking": [],
|
|
1020
1021
|
"adoption": [
|
|
@@ -1025,7 +1026,7 @@
|
|
|
1025
1026
|
]
|
|
1026
1027
|
},
|
|
1027
1028
|
"0.17.0": {
|
|
1028
|
-
"title": "the fix wave: gates grow contracts
|
|
1029
|
+
"title": "the fix wave: gates grow contracts \u00b7 --radius-pill \u00b7 canonical chrome",
|
|
1029
1030
|
"minted": [],
|
|
1030
1031
|
"breaking": [],
|
|
1031
1032
|
"adoption": []
|
|
@@ -1038,7 +1039,7 @@
|
|
|
1038
1039
|
"kind": "repurpose",
|
|
1039
1040
|
"what": "root font-size + every --t-*-size binding",
|
|
1040
1041
|
"from": "root silently 87.5% (labels rendered at ~0.875x)",
|
|
1041
|
-
"to": "html { font-size: 100% }
|
|
1042
|
+
"to": "html { font-size: 100% } \u2014 labels true",
|
|
1042
1043
|
"why": "everything token-bound grows ~14.3% (body 12.25 -> 14px); re-check dense layouts and any px assumptions",
|
|
1043
1044
|
"ref": "#211"
|
|
1044
1045
|
}
|
|
@@ -1052,7 +1053,7 @@
|
|
|
1052
1053
|
"adoption": []
|
|
1053
1054
|
},
|
|
1054
1055
|
"0.19.0": {
|
|
1055
|
-
"title": "Lane 2 unification (one version, one rhythm)
|
|
1056
|
+
"title": "Lane 2 unification (one version, one rhythm) \u00b7 .glyph anti-emoji mint \u00b7 terminalBg elevation (ADR 0036, terminal themes)",
|
|
1056
1057
|
"minted": [
|
|
1057
1058
|
"glyph"
|
|
1058
1059
|
],
|
|
@@ -1078,6 +1079,22 @@
|
|
|
1078
1079
|
"minted": [],
|
|
1079
1080
|
"breaking": [],
|
|
1080
1081
|
"adoption": []
|
|
1082
|
+
},
|
|
1083
|
+
"0.22.0": {
|
|
1084
|
+
"title": "the spine: .colophon__spine extends the colophon primitive with the identity/sign-off/links row two consumer sites had each built themselves",
|
|
1085
|
+
"minted": [],
|
|
1086
|
+
"breaking": [],
|
|
1087
|
+
"adoption": [
|
|
1088
|
+
"colophon"
|
|
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
|
+
]
|
|
1081
1098
|
}
|
|
1082
1099
|
},
|
|
1083
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.
|
|
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.",
|