@webority/theme 0.149.0 → 0.152.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.
Files changed (66) hide show
  1. package/README.md +9 -0
  2. package/css-import.d.ts +2 -0
  3. package/dist/postcss/forced-states.d.mts +11 -0
  4. package/dist/postcss/forced-states.mjs +1 -1
  5. package/dist/purge-safelist.json +24 -1
  6. package/dist/runtime/index.d.mts +6 -0
  7. package/dist/runtime/productTheme.d.mts +25 -0
  8. package/dist/runtime.mjs +2 -2
  9. package/dist/webority-theme.css +1 -1
  10. package/dist/webority-tokens.css +1 -1
  11. package/package.json +34 -11
  12. package/scss/_bootstrap.generated.scss +1 -1
  13. package/scss/_components.scss +139 -52
  14. package/scss/_marketing.scss +10 -10
  15. package/scss/_tokens.generated.scss +26 -1
  16. package/scss/wui/_calendar.scss +6 -6
  17. package/scss/wui/_card.scss +3 -3
  18. package/scss/wui/_carousel.scss +3 -3
  19. package/scss/wui/_chart-card.scss +33 -1
  20. package/scss/wui/_chart.scss +4 -4
  21. package/scss/wui/_choice.scss +48 -43
  22. package/scss/wui/_command-palette.scss +2 -2
  23. package/scss/wui/_comment-thread.scss +2 -2
  24. package/scss/wui/_compare-table.scss +27 -0
  25. package/scss/wui/_controls.scss +54 -48
  26. package/scss/wui/_data.scss +26 -16
  27. package/scss/wui/_dialog-motion.scss +4 -4
  28. package/scss/wui/_disclosure.scss +4 -4
  29. package/scss/wui/_display.scss +61 -26
  30. package/scss/wui/_dock.scss +6 -6
  31. package/scss/wui/_drawer.scss +2 -2
  32. package/scss/wui/_field-busy.scss +1 -1
  33. package/scss/wui/_field-floor.scss +2 -1
  34. package/scss/wui/_file-viewer.scss +3 -3
  35. package/scss/wui/_flow.scss +15 -13
  36. package/scss/wui/_inline-edit.scss +2 -2
  37. package/scss/wui/_interaction.scss +1 -2
  38. package/scss/wui/_kanban.scss +16 -6
  39. package/scss/wui/_lightbox.scss +2 -2
  40. package/scss/wui/_media.scss +48 -48
  41. package/scss/wui/_modal-remote.scss +1 -1
  42. package/scss/wui/_navigation-menu.scss +1 -1
  43. package/scss/wui/_navigation.scss +68 -18
  44. package/scss/wui/_notification-center.scss +3 -3
  45. package/scss/wui/_onboarding-checklist.scss +1 -1
  46. package/scss/wui/_overlays.scss +28 -40
  47. package/scss/wui/_pagination.scss +4 -4
  48. package/scss/wui/_rating.scss +1 -1
  49. package/scss/wui/_resizable.scss +1 -1
  50. package/scss/wui/_rich-text.scss +4 -4
  51. package/scss/wui/_score-scale.scss +3 -3
  52. package/scss/wui/_sections.scss +2 -2
  53. package/scss/wui/_shell-parts.scss +53 -5
  54. package/scss/wui/_shell.scss +56 -57
  55. package/scss/wui/_sortable.scss +2 -2
  56. package/scss/wui/_split-view.scss +2 -2
  57. package/scss/wui/_support.scss +1 -1
  58. package/scss/wui/_table-server.scss +1 -1
  59. package/scss/wui/_theme-toggle.scss +1 -1
  60. package/scss/wui/_toolbar.scss +7 -7
  61. package/scss/wui/_tree.scss +3 -3
  62. package/scss/wui/_utilities.scss +29 -11
  63. package/scss/wui/_workspace.scss +2 -2
  64. package/scss/wui/tour/_end.scss +1 -1
  65. package/scss/wui/tour/_motion.scss +4 -4
  66. package/token-meanings.json +2 -0
@@ -18,8 +18,8 @@
18
18
  background: var(--color-surface);
19
19
  cursor: pointer;
20
20
  transition:
21
- border-color 0.12s ease,
22
- background 0.12s ease;
21
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
22
+ background var(--wui-duration-fast) var(--wui-ease-ui);
23
23
  }
24
24
  .struct-card:hover {
25
25
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
@@ -32,6 +32,12 @@
32
32
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
33
33
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
34
34
  }
35
+ // Pressing a card that can change previews the chosen look: the same border and fill as the
36
+ // checked rule above. A disabled card (input disabled directly or by a fieldset) shows no change.
37
+ .struct-card:active:not([aria-disabled="true"], :has(.struct-card-input:disabled)) {
38
+ border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
39
+ background: color-mix(in srgb, var(--color-primary) 5%, transparent);
40
+ }
35
41
  .struct-card:has(.struct-card-input:checked) .struct-card-title {
36
42
  color: var(--color-primary-text);
37
43
  }
@@ -47,9 +53,6 @@
47
53
  .struct-card:has(.struct-card-input:checked):has(.struct-card-input:disabled):hover {
48
54
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
49
55
  }
50
- .struct-card:has(.struct-card-input:disabled):active {
51
- background-image: none !important;
52
- }
53
56
  .struct-card-input {
54
57
  position: absolute;
55
58
  opacity: 0;
@@ -66,8 +69,8 @@
66
69
  background: var(--color-bg-muted);
67
70
  color: var(--color-text-subtle);
68
71
  transition:
69
- background 0.12s,
70
- color 0.12s;
72
+ background var(--wui-duration-fast) var(--wui-ease-ui),
73
+ color var(--wui-duration-fast) var(--wui-ease-ui);
71
74
  }
72
75
  .struct-card:has(.struct-card-input:checked) .struct-card-ic {
73
76
  background: var(--color-surface);
@@ -80,14 +83,16 @@
80
83
  background: var(--color-primary);
81
84
  color: var(--color-on-primary);
82
85
  }
83
- // The linear and bold glyphs are both rendered; the input's checked state picks one.
86
+ // The linear and bold glyphs are both rendered; the chosen or hovered (enabled) card shows the bold one.
84
87
  .wui-struct-card-glyph-on {
85
88
  display: none;
86
89
  }
87
- .struct-card:has(.struct-card-input:checked) .wui-struct-card-glyph {
90
+ .struct-card:has(.struct-card-input:checked) .wui-struct-card-glyph,
91
+ .struct-card:hover:not(:has(.struct-card-input:disabled)) .wui-struct-card-glyph {
88
92
  display: none;
89
93
  }
90
- .struct-card:has(.struct-card-input:checked) .wui-struct-card-glyph-on {
94
+ .struct-card:has(.struct-card-input:checked) .wui-struct-card-glyph-on,
95
+ .struct-card:hover:not(:has(.struct-card-input:disabled)) .wui-struct-card-glyph-on {
91
96
  display: inline-flex;
92
97
  }
93
98
  // Hover previews the chosen glyph colour; a card that cannot change keeps its grey.
@@ -132,8 +137,8 @@
132
137
  opacity: 0;
133
138
  transform: scale(0.5);
134
139
  transition:
135
- opacity 0.12s ease,
136
- transform 0.12s ease;
140
+ opacity var(--wui-duration-fast) var(--wui-ease-ui),
141
+ transform var(--wui-duration-fast) var(--wui-ease-ui);
137
142
  }
138
143
  .struct-card:has(.struct-card-input:checked) .struct-card-check {
139
144
  opacity: 1;
@@ -334,10 +339,10 @@ wui-date-range:not([aria-invalid="true"]) .daterange:not(.open) .daterange-trigg
334
339
  border-radius: var(--wui-radius-xl);
335
340
  corner-shape: squircle;
336
341
  box-shadow: var(--wui-shadow-popover);
337
- animation: datepicker-in 0.14s ease;
342
+ animation: datepicker-in var(--wui-duration-fast) var(--wui-ease-ui);
338
343
  }
339
344
  .datepicker-pop.drop-up {
340
- animation: datepicker-in-up 0.14s ease;
345
+ animation: datepicker-in-up var(--wui-duration-fast) var(--wui-ease-ui);
341
346
  }
342
347
  @keyframes datepicker-in {
343
348
  from {
@@ -379,8 +384,8 @@ wui-date-range:not([aria-invalid="true"]) .daterange:not(.open) .daterange-trigg
379
384
  letter-spacing: -0.01em;
380
385
  cursor: pointer;
381
386
  transition:
382
- background 0.14s,
383
- color 0.14s;
387
+ background var(--wui-duration-fast) var(--wui-ease-ui),
388
+ color var(--wui-duration-fast) var(--wui-ease-ui);
384
389
  }
385
390
  button.datepicker-month:hover {
386
391
  background: var(--color-primary-soft, color-mix(in srgb, var(--color-primary) 8%, transparent));
@@ -402,9 +407,9 @@ button.datepicker-month:hover {
402
407
  color: var(--color-text-muted);
403
408
  cursor: pointer;
404
409
  transition:
405
- background 0.12s,
406
- color 0.12s,
407
- border-color 0.12s;
410
+ background var(--wui-duration-fast) var(--wui-ease-ui),
411
+ color var(--wui-duration-fast) var(--wui-ease-ui),
412
+ border-color var(--wui-duration-fast) var(--wui-ease-ui);
408
413
  }
409
414
  .datepicker-nav-btn:hover {
410
415
  background: var(--color-primary-soft, color-mix(in srgb, var(--color-primary) 8%, transparent));
@@ -455,9 +460,9 @@ button.datepicker-month:hover {
455
460
  color: var(--color-text);
456
461
  cursor: pointer;
457
462
  transition:
458
- background 0.12s,
459
- color 0.12s,
460
- box-shadow 0.12s;
463
+ background var(--wui-duration-fast) var(--wui-ease-ui),
464
+ color var(--wui-duration-fast) var(--wui-ease-ui),
465
+ box-shadow var(--wui-duration-fast) var(--wui-ease-ui);
461
466
  }
462
467
  .datepicker-day:hover:not(:disabled):not(.is-selected) {
463
468
  background: var(--color-primary-soft, color-mix(in srgb, var(--color-primary) 8%, transparent));
@@ -505,7 +510,7 @@ button.datepicker-month:hover {
505
510
  font-weight: 600;
506
511
  color: var(--color-primary-text);
507
512
  cursor: pointer;
508
- transition: background 0.12s;
513
+ transition: background var(--wui-duration-fast) var(--wui-ease-ui);
509
514
  }
510
515
  .datepicker-link:hover:not(:disabled) {
511
516
  background: var(--color-primary-soft, color-mix(in srgb, var(--color-primary) 8%, transparent));
@@ -520,7 +525,7 @@ button.datepicker-month:hover {
520
525
  display: grid;
521
526
  grid-template-columns: repeat(3, 1fr);
522
527
  gap: 6px;
523
- animation: datepicker-view-in 0.18s ease;
528
+ animation: datepicker-view-in var(--wui-duration-default) var(--wui-ease-ui);
524
529
  }
525
530
  .datepicker-cell {
526
531
  display: inline-flex;
@@ -535,9 +540,9 @@ button.datepicker-month:hover {
535
540
  color: var(--color-text);
536
541
  cursor: pointer;
537
542
  transition:
538
- background 0.12s,
539
- color 0.12s,
540
- box-shadow 0.12s;
543
+ background var(--wui-duration-fast) var(--wui-ease-ui),
544
+ color var(--wui-duration-fast) var(--wui-ease-ui),
545
+ box-shadow var(--wui-duration-fast) var(--wui-ease-ui);
541
546
  }
542
547
  .datepicker-cell:hover:not(:disabled):not(.is-selected) {
543
548
  background: var(--color-primary-soft, color-mix(in srgb, var(--color-primary) 8%, transparent));
@@ -580,10 +585,10 @@ button.datepicker-month:hover {
580
585
  }
581
586
  }
582
587
  .datepicker-grid.slide-next {
583
- animation: datepicker-slide-next 0.2s ease;
588
+ animation: datepicker-slide-next var(--wui-duration-default) var(--wui-ease-ui);
584
589
  }
585
590
  .datepicker-grid.slide-prev {
586
- animation: datepicker-slide-prev 0.2s ease;
591
+ animation: datepicker-slide-prev var(--wui-duration-default) var(--wui-ease-ui);
587
592
  }
588
593
  @keyframes datepicker-slide-next {
589
594
  from {
@@ -663,10 +668,10 @@ button.datepicker-month:hover {
663
668
  border-radius: var(--wui-radius-xl);
664
669
  corner-shape: squircle;
665
670
  box-shadow: var(--wui-shadow-popover);
666
- animation: datepicker-in 0.14s ease;
671
+ animation: datepicker-in var(--wui-duration-fast) var(--wui-ease-ui);
667
672
  }
668
673
  .daterange-pop.drop-up {
669
- animation: datepicker-in-up 0.14s ease;
674
+ animation: datepicker-in-up var(--wui-duration-fast) var(--wui-ease-ui);
670
675
  }
671
676
  // The two nav buttons bracket the calendars — one at each edge of the header row.
672
677
  .daterange-head {
@@ -739,7 +744,7 @@ button.datepicker-month:hover {
739
744
  white-space: nowrap;
740
745
  color: var(--color-text);
741
746
  cursor: pointer;
742
- transition: background 0.12s;
747
+ transition: background var(--wui-duration-fast) var(--wui-ease-ui);
743
748
  }
744
749
  .wui-daterange-preset:hover:not(:disabled) {
745
750
  background: var(--color-primary-soft, color-mix(in srgb, var(--color-primary) 8%, transparent));
@@ -814,8 +819,8 @@ button.datepicker-month:hover {
814
819
  // dropdown is position:fixed, so it is unaffected by this.
815
820
  overflow: hidden;
816
821
  transition:
817
- border-color 0.12s,
818
- background-color 0.12s;
822
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
823
+ background-color var(--wui-duration-fast) var(--wui-ease-ui);
819
824
  }
820
825
  // Not while invalid — an errored control holds its white fill and red border on hover. Two
821
826
  // sources mark it invalid: the `error` prop sets aria-invalid on the host, and the element's own
@@ -954,7 +959,7 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
954
959
  // Flag glyphs come from the generated .wui-flag-* classes (_flags.scss).
955
960
  .app-phone-number-input .phone-chevron {
956
961
  color: var(--color-text-muted);
957
- transition: transform 0.2s ease;
962
+ transition: transform var(--wui-duration-default) var(--wui-ease-ui);
958
963
  }
959
964
  // Keyed off the element's own ARIA state — <wui-phone> toggles aria-expanded,
960
965
  // it never adds react-bootstrap's `.show`.
@@ -1037,7 +1042,7 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
1037
1042
  display: flex;
1038
1043
  color: var(--color-text-subtle);
1039
1044
  pointer-events: none;
1040
- transition: color 0.12s ease;
1045
+ transition: color var(--wui-duration-fast) var(--wui-ease-ui);
1041
1046
  }
1042
1047
  .dropdown-search-wrapper:focus-within .dropdown-search-icon {
1043
1048
  color: var(--color-primary-text);
@@ -1101,8 +1106,8 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
1101
1106
  background: transparent !important;
1102
1107
  border: 0 !important;
1103
1108
  transition:
1104
- background 0.12s ease,
1105
- color 0.12s ease;
1109
+ background var(--wui-duration-fast) var(--wui-ease-ui),
1110
+ color var(--wui-duration-fast) var(--wui-ease-ui);
1106
1111
  }
1107
1112
  // The search hides non-matches with the `hidden` attribute. `display: flex !important` above
1108
1113
  // beats the UA `[hidden] { display: none }`, so filtered-out countries stayed visible — the
@@ -1193,7 +1198,7 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
1193
1198
  background: transparent;
1194
1199
  color: var(--color-text-subtle);
1195
1200
  cursor: pointer;
1196
- transition: color 0.12s ease;
1201
+ transition: color var(--wui-duration-fast) var(--wui-ease-ui);
1197
1202
  }
1198
1203
  .timepicker-trigger.input-sm + .wui-timepicker-toggle {
1199
1204
  width: 36px;
@@ -1248,10 +1253,10 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
1248
1253
  border-radius: var(--wui-radius-lg);
1249
1254
  corner-shape: squircle;
1250
1255
  box-shadow: var(--wui-shadow-popover);
1251
- animation: timepicker-in 0.14s ease;
1256
+ animation: timepicker-in var(--wui-duration-fast) var(--wui-ease-ui);
1252
1257
  }
1253
1258
  .timepicker-pop.drop-up {
1254
- animation: timepicker-in-up 0.14s ease;
1259
+ animation: timepicker-in-up var(--wui-duration-fast) var(--wui-ease-ui);
1255
1260
  }
1256
1261
  @keyframes timepicker-in {
1257
1262
  from {
@@ -1308,8 +1313,8 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
1308
1313
  cursor: pointer;
1309
1314
  border-radius: var(--wui-radius-sm);
1310
1315
  transition:
1311
- background 0.1s,
1312
- color 0.1s;
1316
+ background var(--wui-duration-fast) var(--wui-ease-ui),
1317
+ color var(--wui-duration-fast) var(--wui-ease-ui);
1313
1318
  }
1314
1319
  // Touch screens get full 44px rows.
1315
1320
  @media (pointer: coarse) {
@@ -315,8 +315,8 @@ wui-command-palette[data-keyboard] .wui-cmd-item[aria-selected="true"] {
315
315
  @media (prefers-reduced-motion: no-preference) {
316
316
  .wui-cmd-item {
317
317
  transition:
318
- background-color 0.12s ease,
319
- color 0.12s ease;
318
+ background-color var(--wui-duration-fast) var(--wui-ease-ui),
319
+ color var(--wui-duration-fast) var(--wui-ease-ui);
320
320
  }
321
321
  }
322
322
 
@@ -118,8 +118,8 @@
118
118
  font-size: 13px;
119
119
  line-height: 1;
120
120
  transition:
121
- background-color 160ms var(--wui-ease-ui),
122
- border-color 160ms var(--wui-ease-ui);
121
+ background-color var(--wui-duration-fast) var(--wui-ease-ui),
122
+ border-color var(--wui-duration-fast) var(--wui-ease-ui);
123
123
  }
124
124
  button.wui-reaction,
125
125
  .wui-reaction-add {
@@ -62,6 +62,27 @@
62
62
  font-weight: var(--wui-fw-semibold);
63
63
  }
64
64
 
65
+ // Plain variant: a figure table drawn as ruled rows only, with no frame, no shaded cells and body-size text.
66
+ .compare-table.wui-compare-plain {
67
+ border: 0;
68
+ border-radius: 0;
69
+ background: transparent;
70
+ }
71
+ .compare-table.wui-compare-plain th:not(.is-highlight),
72
+ .compare-table.wui-compare-plain .wui-compare-group {
73
+ background: transparent;
74
+ }
75
+ .compare-table.wui-compare-plain td,
76
+ .compare-table.wui-compare-plain th[scope="row"] {
77
+ font-size: var(--wui-fs-base);
78
+ }
79
+ .compare-table.wui-compare-plain tbody tr:last-child > * {
80
+ border-bottom: none;
81
+ }
82
+ .compare-table.wui-compare-plain.wui-compare-sticky-head thead th:not(.is-highlight) {
83
+ background: var(--color-surface);
84
+ }
85
+
65
86
  // Relaxed density: a 16px body and 32px side padding, for marketing tables that read as prose.
66
87
  .compare-table.wui-compare-relaxed th,
67
88
  .compare-table.wui-compare-relaxed td {
@@ -143,6 +164,12 @@
143
164
  border: 0;
144
165
  background: none;
145
166
  }
167
+ .compare-table.wui-compare-plain[data-mobile="stack"] tbody > tr:not(.wui-compare-group-row) {
168
+ padding-inline: 0;
169
+ border: 0;
170
+ border-bottom: 1px solid var(--color-border);
171
+ border-radius: 0;
172
+ }
146
173
  .compare-table[data-mobile="stack"] th,
147
174
  .compare-table[data-mobile="stack"] td {
148
175
  display: block;
@@ -130,8 +130,8 @@
130
130
  border-radius: var(--wui-radius-md);
131
131
  background: var(--color-surface);
132
132
  transition:
133
- border-color 0.12s ease,
134
- background-color 0.12s ease;
133
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
134
+ background-color var(--wui-duration-fast) var(--wui-ease-ui);
135
135
  }
136
136
  .wui-radio-group-card.wui-radio-group-inline > .form-check {
137
137
  flex: 1 1 200px;
@@ -206,10 +206,10 @@
206
206
  background-size: 15px 15px;
207
207
  cursor: pointer;
208
208
  transition:
209
- border-color 0.15s ease,
210
- background-color 0.15s ease,
211
- box-shadow 0.15s ease,
212
- background-position 0.15s ease;
209
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
210
+ background-color var(--wui-duration-fast) var(--wui-ease-ui),
211
+ box-shadow var(--wui-duration-fast) var(--wui-ease-ui),
212
+ background-position var(--wui-duration-fast) var(--wui-ease-ui);
213
213
  }
214
214
  // Bootstrap floats the input into the label's left padding via
215
215
  // `.form-check .form-check-input` (0,2,0). Undo at matching specificity.
@@ -458,8 +458,8 @@
458
458
  line-height: 1.5;
459
459
  color: var(--color-text);
460
460
  transition:
461
- border-color 0.12s,
462
- box-shadow 0.12s;
461
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
462
+ box-shadow var(--wui-duration-fast) var(--wui-ease-ui);
463
463
  font-family: inherit;
464
464
  }
465
465
  // Size steps: sm/lg step to the 32px and 44px rungs. App* emits
@@ -567,7 +567,7 @@ textarea.form-control.autosize {
567
567
  box-shadow: 0 0 0 1000px var(--color-field-bg) inset;
568
568
  -webkit-text-fill-color: var(--color-text);
569
569
  caret-color: var(--color-text);
570
- transition: background-color 9999s ease-out 0s;
570
+ transition: background-color calc(var(--wui-duration-slow) * 25000) var(--wui-ease-out) 0s;
571
571
  }
572
572
  // Focus lifts the autofilled field onto the clean surface, matching the typed-value focus state.
573
573
  .form-control:-webkit-autofill:focus,
@@ -577,7 +577,7 @@ textarea.form-control.autosize {
577
577
  box-shadow: 0 0 0 1000px var(--color-surface) inset;
578
578
  -webkit-text-fill-color: var(--color-text);
579
579
  caret-color: var(--color-text);
580
- transition: background-color 9999s ease-out 0s;
580
+ transition: background-color calc(var(--wui-duration-slow) * 25000) var(--wui-ease-out) 0s;
581
581
  }
582
582
  .form-control:disabled,
583
583
  .form-select:disabled,
@@ -699,12 +699,12 @@ form .wui-field-message:empty {
699
699
  margin-top: 0;
700
700
  line-height: inherit;
701
701
  transition:
702
- opacity 150ms ease,
703
- transform 150ms ease,
702
+ opacity var(--wui-duration-fast) var(--wui-ease-ui),
703
+ transform var(--wui-duration-fast) var(--wui-ease-ui),
704
704
  visibility 0s;
705
705
  }
706
706
  .wui-field-message > .field-error:not(:empty) {
707
- animation: wui-field-message-in 150ms ease both;
707
+ animation: wui-field-message-in var(--wui-duration-fast) var(--wui-ease-ui) both;
708
708
  }
709
709
  // A cleared error fades out with its text still in place (React keeps it for the fade).
710
710
  .wui-field-message > .field-error.wui-leaving {
@@ -715,8 +715,8 @@ form .wui-field-message:empty {
715
715
  opacity: 0;
716
716
  visibility: hidden;
717
717
  transition:
718
- opacity 150ms ease,
719
- visibility 0s linear 150ms;
718
+ opacity var(--wui-duration-fast) var(--wui-ease-ui),
719
+ visibility 0s var(--wui-ease-linear) var(--wui-duration-fast);
720
720
  }
721
721
  @keyframes wui-field-message-in {
722
722
  from {
@@ -990,8 +990,8 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
990
990
  border-radius: var(--wui-radius-md);
991
991
  cursor: pointer;
992
992
  transition:
993
- color 0.12s ease,
994
- background 0.12s ease;
993
+ color var(--wui-duration-fast) var(--wui-ease-ui),
994
+ background var(--wui-duration-fast) var(--wui-ease-ui);
995
995
  }
996
996
  .pw-toggle:hover {
997
997
  color: var(--color-primary-text);
@@ -1032,9 +1032,9 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
1032
1032
  color: var(--color-text-subtle);
1033
1033
  cursor: pointer;
1034
1034
  transition:
1035
- color 0.12s ease,
1036
- background 0.12s ease;
1037
- animation: wui-clear-in 0.12s var(--wui-ease-ui);
1035
+ color var(--wui-duration-fast) var(--wui-ease-ui),
1036
+ background var(--wui-duration-fast) var(--wui-ease-ui);
1037
+ animation: wui-clear-in var(--wui-duration-fast) var(--wui-ease-ui);
1038
1038
  }
1039
1039
  .input-clear:hover {
1040
1040
  color: var(--color-text);
@@ -1064,8 +1064,8 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
1064
1064
  // Clip the square inner input to the wrapper's rounded corners on hover and focus.
1065
1065
  overflow: clip;
1066
1066
  transition:
1067
- border-color 0.12s ease,
1068
- background-color 0.12s ease;
1067
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
1068
+ background-color var(--wui-duration-fast) var(--wui-ease-ui);
1069
1069
  }
1070
1070
  .input-affixed:hover:not(:focus-within) {
1071
1071
  border-color: var(--color-field-border-hover);
@@ -1148,10 +1148,10 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
1148
1148
  background: var(--color-field-bg);
1149
1149
  pointer-events: none;
1150
1150
  transition:
1151
- top 0.15s var(--wui-ease-ui),
1152
- transform 0.15s var(--wui-ease-ui),
1153
- color 0.15s var(--wui-ease-ui),
1154
- background-color 0.12s;
1151
+ top var(--wui-duration-fast) var(--wui-ease-ui),
1152
+ transform var(--wui-duration-fast) var(--wui-ease-ui),
1153
+ color var(--wui-duration-fast) var(--wui-ease-ui),
1154
+ background-color var(--wui-duration-fast) var(--wui-ease-ui);
1155
1155
  }
1156
1156
  .field-float .input:focus ~ .float-label,
1157
1157
  .field-float .input:not(:placeholder-shown) ~ .float-label {
@@ -1184,11 +1184,11 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
1184
1184
  top: calc(50% + var(--wui-float-above-space) / 2);
1185
1185
  background: transparent;
1186
1186
  transition:
1187
- top 0.15s var(--wui-ease-ui),
1188
- left 0.15s var(--wui-ease-ui),
1189
- padding 0.15s var(--wui-ease-ui),
1190
- transform 0.15s var(--wui-ease-ui),
1191
- color 0.15s var(--wui-ease-ui);
1187
+ top var(--wui-duration-fast) var(--wui-ease-ui),
1188
+ left var(--wui-duration-fast) var(--wui-ease-ui),
1189
+ padding var(--wui-duration-fast) var(--wui-ease-ui),
1190
+ transform var(--wui-duration-fast) var(--wui-ease-ui),
1191
+ color var(--wui-duration-fast) var(--wui-ease-ui);
1192
1192
  }
1193
1193
  .field-float.wui-float-above .input:focus ~ .float-label,
1194
1194
  .field-float.wui-float-above .input:not(:placeholder-shown) ~ .float-label {
@@ -1231,11 +1231,12 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
1231
1231
  .field-count.at-limit {
1232
1232
  color: var(--color-danger-text);
1233
1233
  }
1234
+ // A product sets the field label type with --wui-field-label-fs and --wui-field-label-fw on any ancestor.
1234
1235
  .label {
1235
1236
  display: block;
1236
- font-size: var(--wui-label-fs);
1237
+ font-size: var(--wui-field-label-fs, var(--wui-label-fs));
1237
1238
  line-height: normal;
1238
- font-weight: 500;
1239
+ font-weight: var(--wui-field-label-fw, 500);
1239
1240
  color: var(--color-text);
1240
1241
  margin-bottom: 6px;
1241
1242
  }
@@ -1278,9 +1279,10 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
1278
1279
  align-self: stretch;
1279
1280
  width: 100%;
1280
1281
  }
1282
+ // --wui-field-label-gap (default 10px) sets the label to box distance; the gap below the box is unchanged.
1281
1283
  .field > .label,
1282
1284
  .field label {
1283
- margin-bottom: 0;
1285
+ margin-bottom: calc(var(--wui-field-label-gap, 10px) - 10px);
1284
1286
  }
1285
1287
  .field-row {
1286
1288
  display: grid;
@@ -1368,8 +1370,8 @@ wui-date-range {
1368
1370
  // one wrapper fill, same colour combination as every other field.
1369
1371
  background: var(--color-field-bg);
1370
1372
  transition:
1371
- border-color 0.12s,
1372
- background-color 0.12s;
1373
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
1374
+ background-color var(--wui-duration-fast) var(--wui-ease-ui);
1373
1375
  overflow: hidden;
1374
1376
  }
1375
1377
  .input-with-unit:hover:not(:focus-within) {
@@ -1438,8 +1440,8 @@ wui-date-range {
1438
1440
  // Match AppInput exactly: muted resting fill that lifts to a clean surface on focus.
1439
1441
  background: var(--color-field-bg);
1440
1442
  transition:
1441
- border-color 0.12s,
1442
- background-color 0.12s;
1443
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
1444
+ background-color var(--wui-duration-fast) var(--wui-ease-ui);
1443
1445
  overflow: hidden;
1444
1446
  }
1445
1447
  // Not while invalid — an errored control holds its red border/fill on hover rather than
@@ -1505,8 +1507,8 @@ wui-date-range {
1505
1507
  color: var(--color-text-muted);
1506
1508
  cursor: pointer;
1507
1509
  transition:
1508
- color 0.12s ease,
1509
- background 0.12s ease;
1510
+ color var(--wui-duration-fast) var(--wui-ease-ui),
1511
+ background var(--wui-duration-fast) var(--wui-ease-ui);
1510
1512
  }
1511
1513
  .num-btn:hover:not(:disabled) {
1512
1514
  color: var(--color-primary-text);
@@ -1651,6 +1653,10 @@ wui-date-range {
1651
1653
  // so the neutral pill takes the secondary tier instead of a sixth `-text` token.
1652
1654
  color: var(--color-text-muted);
1653
1655
  }
1656
+ // After the tone rules: their `border-color: transparent` would win at equal specificity.
1657
+ .status-label.wui-bordered {
1658
+ border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
1659
+ }
1654
1660
 
1655
1661
  // ── Choice chip ──
1656
1662
  // Inline selectable chip: the native input is hidden and the pill shows its state. The look reads
@@ -1671,9 +1677,9 @@ wui-date-range {
1671
1677
  cursor: pointer;
1672
1678
  user-select: none;
1673
1679
  transition:
1674
- border-color 0.12s ease,
1675
- background 0.12s ease,
1676
- color 0.12s ease;
1680
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
1681
+ background var(--wui-duration-fast) var(--wui-ease-ui),
1682
+ color var(--wui-duration-fast) var(--wui-ease-ui);
1677
1683
  }
1678
1684
  .choice-chip:hover:not(:has(input:disabled)) {
1679
1685
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
@@ -1859,8 +1865,8 @@ wui-otp {
1859
1865
  font-variant-numeric: tabular-nums;
1860
1866
  color: var(--color-text);
1861
1867
  transition:
1862
- border-color 0.12s,
1863
- box-shadow 0.12s;
1868
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
1869
+ box-shadow var(--wui-duration-fast) var(--wui-ease-ui);
1864
1870
  }
1865
1871
  // Hover — the whole field lifts its border to strong (AppInput hover), but not while a
1866
1872
  // slot is active (focus wins) or the field is disabled.
@@ -1975,9 +1981,9 @@ wui-otp[aria-invalid="true"] .otp-slot {
1975
1981
  // and the thumb stops a short way from where the finger started.
1976
1982
  touch-action: none;
1977
1983
  transition:
1978
- transform 0.18s var(--wui-ease-ui),
1979
- box-shadow 0.18s var(--wui-ease-ui),
1980
- border-color 0.15s ease;
1984
+ transform var(--wui-duration-default) var(--wui-ease-ui),
1985
+ box-shadow var(--wui-duration-default) var(--wui-ease-ui),
1986
+ border-color var(--wui-duration-fast) var(--wui-ease-ui);
1981
1987
  }
1982
1988
  .slider-thumb:hover:not(:disabled) {
1983
1989
  transform: scale(1.08);