@atelier-ui/styles 0.3.11 → 0.3.12

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.
@@ -147,13 +147,24 @@
147
147
  min-height: var(--ui-control-height-lg);
148
148
  }
149
149
 
150
- /* Disabled */
150
+ /* Disabled — dedicated neutral tokens, not opacity (ADR-0159). Opacity kept the
151
+ * brand hue, so a disabled primary still read as a muted enabled one. Loading
152
+ * sets .is-disabled too; the spinner draws in currentColor, i.e. the disabled
153
+ * label colour, so it stays visible on the fill. Declared after the variants so
154
+ * it wins at equal specificity; the danger inset shadow is cleared explicitly. */
151
155
  .atl-button.is-disabled {
152
- opacity: var(--ui-opacity-disabled);
156
+ background-color: var(--ui-color-disabled-bg);
157
+ border-color: var(--ui-color-disabled-border);
158
+ color: var(--ui-color-disabled-text);
159
+ box-shadow: none;
153
160
  cursor: not-allowed;
154
161
  pointer-events: none;
155
162
  }
156
163
 
164
+ .atl-button.variant-outline.is-disabled {
165
+ background-color: transparent;
166
+ }
167
+
157
168
  /* Loading spinner */
158
169
  .atl-button > .spinner {
159
170
  display: inline-block;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atelier-ui/styles",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "description": "Atelier component CSS — class-rooted, token-driven, shared by the Angular, React and Vue libraries",
5
5
  "keywords": [
6
6
  "css",
package/tokens.css CHANGED
@@ -5,7 +5,7 @@
5
5
  * scale. No moss, no warm bone — just Conciso.
6
6
  *
7
7
  * All foreground/background pairs verified WCAG 2.2 AA via
8
- * tools/scripts/wcag-contrast.mjs (52/52 pairs passing 2026-04-26).
8
+ * tools/scripts/wcag-contrast.mjs (30 pairs across 4 modes, 120/120 passing 2026-10-08).
9
9
  *
10
10
  * Typography: Instrument Sans (UI) + Instrument Serif (display) + JetBrains
11
11
  * Mono (code), chosen 2026-08-26 — see ADR-0035, which revises ADR-0020's
@@ -397,7 +397,13 @@
397
397
  --ui-color-input-border-hover: #475569;
398
398
  --ui-color-input-border-focus: var(--ui-color-primary);
399
399
  --ui-color-input-border-invalid: var(--ui-color-danger);
400
- --ui-color-placeholder: #64748b;
400
+ --ui-color-placeholder: #566579;
401
+
402
+ /* Disabled button — a neutral slate fill instead of opacity (ADR-0159).
403
+ * Legibility floor only; WCAG exempts disabled controls. */
404
+ --ui-color-disabled-bg: #e2e8f0;
405
+ --ui-color-disabled-text: #64748b;
406
+ --ui-color-disabled-border: #cbd5e1;
401
407
  --ui-color-error-text: var(--ui-color-danger-text);
402
408
 
403
409
  /* Z-index scale */
@@ -459,6 +465,12 @@
459
465
  --ui-color-input-border-hover: #94a3b8;
460
466
  --ui-color-placeholder: #94a3b8;
461
467
 
468
+ /* Disabled button — a neutral slate fill instead of opacity (ADR-0159).
469
+ * Legibility floor only; WCAG exempts disabled controls. */
470
+ --ui-color-disabled-bg: #1e293b;
471
+ --ui-color-disabled-text: #94a3b8;
472
+ --ui-color-disabled-border: #334155;
473
+
462
474
  --ui-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
463
475
  --ui-shadow-sm:
464
476
  0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
@@ -519,6 +531,12 @@
519
531
  --ui-color-input-border-hover: #94a3b8;
520
532
  --ui-color-placeholder: #94a3b8;
521
533
 
534
+ /* Disabled button — a neutral slate fill instead of opacity (ADR-0159).
535
+ * Legibility floor only; WCAG exempts disabled controls. */
536
+ --ui-color-disabled-bg: #1e293b;
537
+ --ui-color-disabled-text: #94a3b8;
538
+ --ui-color-disabled-border: #334155;
539
+
522
540
  --ui-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
523
541
  --ui-shadow-sm:
524
542
  0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
@@ -577,7 +595,13 @@
577
595
 
578
596
  --ui-color-input-border: var(--ui-color-border-strong);
579
597
  --ui-color-input-border-hover: #475569;
580
- --ui-color-placeholder: #64748b;
598
+ --ui-color-placeholder: #566579;
599
+
600
+ /* Disabled button — a neutral slate fill instead of opacity (ADR-0159).
601
+ * Legibility floor only; WCAG exempts disabled controls. */
602
+ --ui-color-disabled-bg: #e2e8f0;
603
+ --ui-color-disabled-text: #64748b;
604
+ --ui-color-disabled-border: #cbd5e1;
581
605
 
582
606
  --ui-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
583
607
  --ui-shadow-sm: