@cameronsjo/artificer 0.18.1 → 0.22.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/src/artificer.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /* ═══════════════════════════════════════════════════════════════════════════
2
- ARTIFICER · Design tokens · v0.18.1 (apothecary × deco × speakeasy)
2
+ ARTIFICER · Design tokens · v0.22.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
 
@@ -144,6 +144,7 @@
144
144
  --attention-fill: #c4808a; /* rose, fill-only */
145
145
  --urgent: #a04540; /* brick — destructive, errors */
146
146
  --urgent-fill: #a04540; /* brick fill, buttons */
147
+ --urgent-text: #e6a8a2; /* lifted error TEXT (.field>.error) — bg 6.98 AA · v0.19.0 #122-B */
147
148
  --success: #4a8a5e; /* apothecary green — completed, merged, autoAccept */
148
149
  --success-fill: #2d6644; /* deep apothecary fill — badges/dots, ivory-on 5.67 AA */
149
150
  --steel: #b8cad4; /* honest middle; meta / secondary UI */
@@ -222,7 +223,7 @@
222
223
  --z-toast: 3000; /* always-on-top notifications */
223
224
 
224
225
  /* Artificer v0.10.1 — baseline contract: see CLAUDE.md § Baseline contract */
225
- --art-version: "0.18.1";
226
+ --art-version: "0.22.0";
226
227
 
227
228
  color-scheme: dark;
228
229
  }
@@ -249,6 +250,7 @@
249
250
  --attention-fill: #dbbb6f;
250
251
  --urgent: #8a2418; /* deep brick, AAA on ivory */
251
252
  --urgent-fill: #a04540; /* brick fill */
253
+ --urgent-text: #8a2418; /* = urgent · ivory 7.49 AAA · v0.19.0 #122-B */
252
254
  --success: #2a5a3a; /* deep apothecary green */
253
255
  --success-fill: #2a5a3a; /* fill == bare success in light; ivory-on 6.70 AA */
254
256
  --steel: #2e4a5a;
@@ -266,7 +268,7 @@
266
268
  --ink: #20203e;
267
269
  --navy: #20203e; /* alias */
268
270
 
269
- --on-accent: #f5ead0; /* ivory on gold-fill button */
271
+ --on-accent: #20203e; /* ink on gold-fill button — ivory→ink v0.19.0 #122-A · 5.65 AA */
270
272
  --on-attention: #20203e;
271
273
  --on-urgent: #f5ead0;
272
274
  --on-success: #f5ead0;
@@ -297,6 +299,7 @@
297
299
  --attention-fill: #dbbb6f;
298
300
  --urgent: #8a2418;
299
301
  --urgent-fill: #a04540;
302
+ --urgent-text: #8a2418;
300
303
  --success: #2a5a3a;
301
304
  --success-fill: #2a5a3a;
302
305
  --steel: #2e4a5a;
@@ -308,7 +311,7 @@
308
311
  --diff-del-bg: #ecd6d4;
309
312
  --ivory-raised: #eddcc0;
310
313
  --ink: #20203e;
311
- --on-accent: #f5ead0;
314
+ --on-accent: #20203e; /* ivory→ink v0.19.0 #122-A */
312
315
  --on-attention: #20203e;
313
316
  --on-urgent: #f5ead0;
314
317
  --on-success: #f5ead0;
@@ -359,6 +362,18 @@ body { font-size: var(--t-body-md-size); }
359
362
  font-family: var(--font-sans);
360
363
  }
361
364
 
365
+ /* Document island — inverse of .surface-tool. Marks a prose region inside a
366
+ tool surface that opts its body face back to --font-sans (colophons, legal
367
+ disclaimers, help prose). Sits after .surface-tool, so it wins at equal
368
+ specificity on source order; class-based components (.stat, .table cells)
369
+ self-declare mono and win there too. Bare-tag mono declarers (code, kbd)
370
+ sit at lower specificity than the universal-descendant rule above and lose
371
+ to it, so they're re-declared explicitly below. */
372
+ .surface-document, .surface-document * { font-family: var(--font-sans); }
373
+ /* code/kbd are bare-tag selectors ((0,0,1)) and lose to .surface-document *
374
+ ((0,1,0)) on specificity, not source order — re-declared here to hold mono. */
375
+ .surface-document code, .surface-document kbd { font-family: var(--font-mono); }
376
+
362
377
  /* ═══ Type utilities ════════════════════════════════════════════════════
363
378
  Headlines and body run on --font-sans (Quattro) by default — document mode.
364
379
  On tool surfaces, wrap the surface in <… class="surface-tool"> to flip to mono.
@@ -399,10 +414,16 @@ code, .code {
399
414
 
400
415
  a {
401
416
  color: var(--accent);
402
- text-decoration: none;
417
+ /* #122-E — document surface (default): prose links carry a persistent underline so
418
+ a link in a text block is distinguished by more than color (WCAG 1.4.1). Chrome
419
+ and components opt out below / via their own text-decoration:none. */
420
+ text-decoration: underline;
421
+ text-underline-offset: 2px;
403
422
  transition: color var(--dur-fast) var(--ease);
404
423
  }
405
424
  a:hover, a:focus-visible { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
425
+ /* Tool surfaces read links by position — underline only on hover/focus (the rule above). */
426
+ .surface-tool a { text-decoration: none; }
406
427
  a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); border-radius: 2px; }
407
428
 
408
429
  /* ═══ Buttons ═══════════════════════════════════════════════════════════ */
@@ -410,7 +431,7 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
410
431
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm);
411
432
  font-family: var(--font-sans); font-size: var(--t-label-md-size); font-weight: 500; line-height: 1;
412
433
  padding: 10px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
413
- cursor: pointer; white-space: nowrap;
434
+ cursor: pointer; white-space: nowrap; text-decoration: none;
414
435
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
415
436
  }
416
437
  .btn:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); }
@@ -428,6 +449,11 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
428
449
  Compose with any variant (.btn.btn--icon.btn--ghost). Always needs an
429
450
  aria-label, since there's no text. v0.10.0. */
430
451
  .btn--icon { width: 44px; height: 44px; min-width: 44px; padding: 0; }
452
+ /* A LONE primary icon control — mobile nav trigger, modal close — has no
453
+ row of neighbors to borrow prominence from, so the ghost resting color
454
+ (--fg-secondary) under-serves it (#114, two consumers independently).
455
+ Rests at full --fg; in a cluster of controls, stay on the ghost default. */
456
+ .btn--icon-prominent { color: var(--fg); }
431
457
 
432
458
  .btn--destructive { background: var(--urgent-fill); color: var(--on-urgent); }
433
459
  .btn--destructive:hover { filter: brightness(1.08); }
@@ -489,7 +515,7 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
489
515
  .field { display: flex; flex-direction: column; gap: var(--s-sm); }
490
516
  .field > label { font-family: var(--font-sans); font-size: var(--t-label-md-size); font-weight: 500; color: var(--fg); }
491
517
  .field > .hint { font-family: var(--font-sans); font-size: var(--t-label-sm-size); color: var(--fg-secondary); }
492
- .field > .error { font-family: var(--font-sans); font-size: var(--t-label-sm-size); color: var(--urgent); }
518
+ .field > .error { font-family: var(--font-sans); font-size: var(--t-label-sm-size); color: var(--urgent-text); }
493
519
 
494
520
  /* ═══ Badges ════════════════════════════════════════════════════════════ */
495
521
  .badge {
@@ -510,6 +536,23 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
510
536
  .dot--urgent { background: var(--urgent-fill); }
511
537
  .dot--success { background: var(--success-fill); }
512
538
 
539
+ /* ═══ Cell glyphs ════════════════════════════════════════════════════════ */
540
+ /*
541
+ * Themeable status marks for dense data cells — the anti-emoji. Emoji are
542
+ * OS-rendered: they ignore the theme and read loud in a grid. A .glyph is real
543
+ * text the author types (✓ ✗ ~ –), tinted by a semantic token so it tracks the
544
+ * theme. These are GRAPHICAL status objects (WCAG 2.2 SC 1.4.11, 3:1 floor) —
545
+ * each MUST carry an accessible name so meaning never rests on the mark alone:
546
+ * <span class="glyph glyph--success" role="img" aria-label="Yes">✓</span>
547
+ * Reach for glyphs in dense comparison grids; keep .badge + .dot for sparse,
548
+ * labeled status. (✗ uses --fg-muted, not --fg-disabled, which fails 3:1 dark.)
549
+ */
550
+ .glyph { display: inline-block; min-width: 1.25ch; text-align: center; font-style: normal; line-height: 1; }
551
+ .glyph--success { color: var(--success); } /* ✓ */
552
+ .glyph--muted { color: var(--fg-muted); } /* ✗ — recedes, clears 3:1 */
553
+ .glyph--attention { color: var(--attention); } /* ~ */
554
+ .glyph--na { color: var(--fg-secondary); } /* – */
555
+
513
556
  /* ═══ Notification ══════════════════════════════════════════════════════ */
514
557
  /*
515
558
  * Tier by ACTION REQUIRED, not severity.
@@ -587,6 +630,13 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
587
630
  }
588
631
  .theme-toggle:hover { color: var(--fg); border-color: var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,.22); }
589
632
  .theme-toggle .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-fill); }
633
+ /* Canonical icon form — artificer-theme.js injects the half-circle glyph
634
+ into an empty [data-theme-toggle] button and adds this class. A pinned
635
+ mode (dark/light) renders the glyph in accent; auto stays quiet — the
636
+ gold is the "you overrode the OS" signal. */
637
+ .theme-toggle--icon { padding: 6px; }
638
+ .theme-toggle--icon .icon { display: block; }
639
+ .theme-toggle--icon:not([data-theme-mode="auto"]) { color: var(--accent); }
590
640
  .theme-toggle--inline { position: static; top: auto; right: auto; z-index: auto; box-shadow: none; }
591
641
  @media (max-width: 640px) {
592
642
  .theme-toggle { top: var(--s-sm); right: var(--s-sm); }
@@ -629,6 +679,69 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
629
679
  .page-shell { display: grid; grid-template-rows: auto 1fr; min-height: 100vh; }
630
680
  .page-shell > header { position: sticky; top: 0; z-index: var(--z-overlay); background: var(--bg); border-bottom: 1px solid var(--border); }
631
681
 
682
+ /* Colophon — page-foot document seam (#97). The band at a page's bottom for
683
+ attribution, links, and fine print — the one place a tool surface routinely
684
+ speaks in sentences, so its prose opts back into --font-sans even inside
685
+ .surface-tool (this rule sits after .surface-tool, winning on source order).
686
+ Columns compose from .grid-auto / .stack; wrap inner content in a .container. */
687
+ .colophon {
688
+ border-top: 1px solid var(--border);
689
+ padding: var(--s-xl) 0;
690
+ color: var(--fg-secondary);
691
+ font-family: var(--font-sans);
692
+ font-size: var(--t-label-sm-size);
693
+ line-height: 1.6;
694
+ }
695
+ .colophon :where(p, ul, ol, li, a, small, dd, dt) { font-family: var(--font-sans); }
696
+ .colophon__label {
697
+ display: block; margin-bottom: var(--s-xs);
698
+ font-family: var(--font-mono); font-size: var(--t-label-xs-size);
699
+ font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
700
+ color: var(--fg-secondary);
701
+ }
702
+ .colophon__fine {
703
+ margin-top: var(--s-lg); padding-top: var(--s-md);
704
+ border-top: 1px solid var(--border);
705
+ color: var(--fg-secondary); /* NOT --fg-muted — 3.05:1, below AA floor */
706
+ font-size: var(--t-label-xs-size); line-height: 1.5;
707
+ }
708
+ /* The spine — the colophon's one row: identity · sign-off · links. Three slots,
709
+ and the middle one is centred ON THE PAGE, not in whatever space the outer
710
+ two leave over. That is why this is a grid and not `space-between`: equal
711
+ `1fr` side columns mean a long copyright can't shove the sign-off sideways.
712
+ Slots are positional, not classed — first child starts, last child ends. Any
713
+ slot may be empty; leave the element in place to hold its column.
714
+ (Minting provenance — two consumers derived this independently — in
715
+ CHANGELOG v0.22.0. The touch floor lives with the other nav targets in
716
+ § Touch escalation, not here.) */
717
+ .colophon__spine {
718
+ display: grid;
719
+ grid-template-columns: 1fr auto 1fr;
720
+ align-items: center;
721
+ gap: var(--gap, var(--s-md)); /* --gap: the same knob .stack/.cluster expose */
722
+ }
723
+ /* Above the stack breakpoint only: below it the container centres every slot,
724
+ and an `end` here would have to be countermanded. Declaring it in min-width
725
+ keeps the alignment rule in one place instead of two. */
726
+ @media (min-width: 641px) {
727
+ .colophon__spine > :last-child { justify-self: end; }
728
+ }
729
+ /* Zone spacing: the spine only needs a gap above it when it follows sibling
730
+ colophon content (a .grid-auto of labeled sections). A spine-only colophon
731
+ gets its space from .colophon's own padding. */
732
+ .colophon__spine:not(:first-child) { margin-top: var(--s-lg); }
733
+ @media (max-width: 640px) {
734
+ /* Stack, and centre every slot — a left-aligned copyright above a centred
735
+ sign-off reads as a mistake at this width. text-align carries the wrapped
736
+ second line, which justify-items alone does not. */
737
+ .colophon__spine {
738
+ grid-template-columns: 1fr;
739
+ justify-items: center;
740
+ text-align: center;
741
+ gap: var(--gap, var(--s-sm));
742
+ }
743
+ }
744
+
632
745
  /* ═══ Overlays · modal & popover ═══════════════════════════════════════ */
633
746
  .scrim {
634
747
  position: fixed; inset: 0; z-index: var(--z-modal);
@@ -1493,6 +1606,16 @@ select:focus-visible,
1493
1606
  full-height touch area without changing their visual size. */
1494
1607
  .appbar__brand { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
1495
1608
  .crumb a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
1609
+ /* Colophon spine links. Scoped to the spine, NOT to a <nav> inside it: the
1610
+ spine's contract is that slots are positional and their content is the
1611
+ 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
1614
+ in .colophon__fine are deliberately NOT covered: those are inline text
1615
+ links, exempt under WCAG 2.5.8.
1616
+ `justify-content` (not needed by the two rules above, whose content fills
1617
+ the box) centres a short label like "RSS" inside its square minimum. */
1618
+ .colophon__spine a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
1496
1619
  }
1497
1620
 
1498
1621
  /* Table -> cards reflow. Below --bp-mobile (640px) a wide data table
@@ -1849,7 +1972,7 @@ select:focus-visible,
1849
1972
  DELIBERATE divergence from the toast tier (#189): banner--info is STEEL
1850
1973
  where notif--info is accent — a persistent structural state should read
1851
1974
  calmer than a transient toast; "--info" does not imply accent here.
1852
- v0.15.0. */
1975
+ v0.15.0. (ADR 0017) */
1853
1976
  .banner {
1854
1977
  display: flex; align-items: center; gap: var(--s-md);
1855
1978
  padding: 10px var(--s-lg);