@webority/theme 0.146.1 → 0.147.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/theme",
3
- "version": "0.146.1",
3
+ "version": "0.147.0",
4
4
  "description": "Webority shared design system — Bootstrap 5.3 SCSS overrides, --wui-* tokens, and shared component CSS. The single source of brand chrome for React portals and Razor sites.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -47,7 +47,7 @@
47
47
  "postcss": "^8.5.31"
48
48
  },
49
49
  "devDependencies": {
50
- "@webority/tokens": "0.146.1",
50
+ "@webority/tokens": "0.147.0",
51
51
  "bootstrap": "5.3.3",
52
52
  "country-flag-icons": "^1.6.20",
53
53
  "sass-embedded": "^1.97.0",
@@ -1,4 +1,4 @@
1
- // Generated by @webority/tokens 0.146.1 from its token source. Do not edit; run webority brand --library.
1
+ // Generated by @webority/tokens 0.147.0 from its token source. Do not edit; run webority brand --library.
2
2
  $body-color: #252f4a !default;
3
3
  $body-secondary-color: #4b5675 !default;
4
4
  $body-tertiary-color: #626a82 !default;
@@ -390,6 +390,12 @@
390
390
  color: var(--bs-btn-color);
391
391
  }
392
392
 
393
+ // Body text runs at the xs step of the type scale (13px at desktop width). Bootstrap's body rule reads
394
+ // --bs-body-font-size, which its own :root block set earlier from $font-size-base.
395
+ :root {
396
+ --bs-body-font-size: var(--wui-fs-xs);
397
+ }
398
+
393
399
  // ---- Component radii from tokens ------------------------------------
394
400
  // .btn/.card/.input capture Bootstrap's compiled $*-border-radius (the library
395
401
  // ladder) before a product loads, so a product's --wui-radius-md* override never
@@ -400,39 +406,38 @@
400
406
  // sizes step font-size, horizontal padding and radius together (vertical size
401
407
  // comes from --wui-control-md, so a button lines up with an input). Weight
402
408
  // is 600 on every rung — buttons read as a deliberate action, not body text.
403
- // Medium (default): 14px / 600, about 12px side padding, 14px squircle radius, --wui-control-md tall.
409
+ // Medium (default): 13px (--wui-fs-xs) / 600, about 12px side padding, the --wui-button-md-radius squircle radius, --wui-control-md tall.
404
410
  // Side padding is always twice the vertical padding. A button is its field's height with the label
405
411
  // line centred, so its vertical padding is (height - both borders - one line) / 2 and its side
406
- // padding the height less both borders and one line: about 5.7/11.4, 6.2/12.3 and 8.6/17.2px at sm,
407
- // md and lg with the theme's line height.
412
+ // padding the height less both borders and one line.
408
413
  .btn {
409
414
  --wui-btn-height: var(--wui-control-md);
410
- --bs-btn-border-radius: 14px;
411
- --bs-btn-font-size: 0.875rem;
415
+ --bs-btn-border-radius: var(--wui-button-md-radius);
416
+ --bs-btn-font-size: var(--wui-fs-xs);
412
417
  --bs-btn-font-weight: 600;
413
418
  --bs-btn-padding-x: calc(var(--wui-btn-height) - 2 * var(--bs-btn-border-width) - var(--bs-btn-font-size) * var(--bs-btn-line-height));
414
419
  // Progressive enhancement only (Chrome/Safari recent). Unsupported engines
415
420
  // keep a plain border-radius arc — not a cross-browser design contract.
416
421
  corner-shape: squircle;
417
422
  }
418
- // Small: 12px, about 11px side padding, 12px squircle radius (proportional to md), as tall as a small field.
423
+ // Small: 12px, about 11px side padding, --wui-button-sm-radius squircle radius (proportional to md), as tall as a small field.
419
424
  .btn-sm:not(.btn-icon),
420
425
  .btn-group-sm > .btn:not(.btn-icon) {
421
426
  --wui-btn-height: var(--wui-control-sm);
422
427
  --bs-btn-padding-y: 0;
423
- --bs-btn-border-radius: 12px;
428
+ --bs-btn-border-radius: var(--wui-button-sm-radius);
424
429
  --bs-btn-font-size: 0.75rem;
425
430
  display: inline-flex;
426
431
  align-items: center;
427
432
  justify-content: center;
428
433
  min-height: var(--wui-control-sm);
429
434
  }
430
- // Large: 16px, about 17px side padding, 18px squircle radius (proportional to md), as tall as a large field.
435
+ // Large: 16px, about 17px side padding, --wui-button-lg-radius squircle radius (proportional to md), as tall as a large field.
431
436
  .btn-lg:not(.btn-icon),
432
437
  .btn-group-lg > .btn:not(.btn-icon) {
433
438
  --wui-btn-height: var(--wui-control-lg);
434
439
  --bs-btn-padding-y: 0;
435
- --bs-btn-border-radius: 18px;
440
+ --bs-btn-border-radius: var(--wui-button-lg-radius);
436
441
  --bs-btn-font-size: 1rem;
437
442
  display: inline-flex;
438
443
  align-items: center;
@@ -1240,12 +1245,12 @@
1240
1245
  // compiled $card-border-radius. Background is an ELEVATED surface, not the page
1241
1246
  // colour — so a card stays visible on a tinted page, and flips correctly in dark
1242
1247
  // mode because --color-surface is themed in the alias layer.
1243
- // A brand that draws rounder cards than its controls sets --wui-card-radius in its token file,
1248
+ // The card radius is the --wui-card-radius token; a brand that draws rounder cards sets it in its token file,
1244
1249
  // and one whose card text should follow the page text sets --wui-card-color (such as var(--color-text)).
1245
1250
  // A brand that draws its card corners as squircles sets --wui-card-corner-shape: squircle; a browser
1246
1251
  // without corner shaping keeps the plain round corner.
1247
1252
  .card {
1248
- --bs-card-border-radius: var(--wui-card-radius, var(--wui-radius-lg));
1253
+ --bs-card-border-radius: var(--wui-card-radius);
1249
1254
  --bs-card-bg: var(--color-surface);
1250
1255
  color: var(--wui-card-color, var(--bs-body-color));
1251
1256
  corner-shape: var(--wui-card-corner-shape, round);
@@ -1,4 +1,4 @@
1
- // Generated by @webority/tokens 0.146.1 from its token source. Do not edit; run webority brand --library.
1
+ // Generated by @webority/tokens 0.147.0 from its token source. Do not edit; run webority brand --library.
2
2
 
3
3
  :root {
4
4
  --wui-primary: #4F46E5;
@@ -106,16 +106,16 @@
106
106
  --wui-dark-bg-elevated: #0d0f15;
107
107
  --wui-dark-bg-muted: #232733;
108
108
  --wui-dark-bg-surface: #181b23;
109
- --wui-dark-border: #2a2f3a;
110
- --wui-dark-border-strong: #3a414f;
111
- --wui-dark-field-border: #2a2f3a;
112
- --wui-dark-field-border-hover: #3a414f;
109
+ --wui-dark-border: #3d4554;
110
+ --wui-dark-border-strong: #515b6e;
111
+ --wui-dark-field-border: #3d4554;
112
+ --wui-dark-field-border-hover: #515b6e;
113
113
  --wui-dark-progress-track: #323845;
114
114
  --wui-dark-text: #e6e8ee;
115
115
  --wui-dark-text-muted: #b4b9c6;
116
116
  --wui-dark-text-subtle: #8a90a0;
117
- --wui-dark-primary: #9590ef;
118
- --wui-dark-primary-hover: #a29df1;
117
+ --wui-dark-primary: #aeaaf5;
118
+ --wui-dark-primary-hover: #c3c0f8;
119
119
  --wui-dark-ai-violet: #A78BFA;
120
120
  --wui-dark-chart-2: #d95926;
121
121
  --wui-dark-chart-3: #199e70;
@@ -167,6 +167,9 @@
167
167
  --wui-fw-medium: 500;
168
168
  --wui-fw-semibold: 600;
169
169
  --wui-fw-bold: 700;
170
+ --wui-letter-spacing-tight: -0.2px;
171
+ --wui-letter-spacing-normal: 0px;
172
+ --wui-letter-spacing-wide: 0.4px;
170
173
  --wui-font-ui: "Webority Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
171
174
  --wui-font-display: "Webority Serif", Cambria, Georgia, "Times New Roman", "Noto Serif", serif;
172
175
  --wui-font-mono: "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
@@ -335,9 +338,10 @@
335
338
  --wui-lh-display: 1.05;
336
339
  --wui-lh-prose: 1.7;
337
340
  --wui-lh-lead: 1.6;
338
- --wui-field-sm-radius: var(--wui-radius-md);
339
- --wui-field-md-radius: var(--wui-radius-md);
340
- --wui-field-lg-radius: var(--wui-radius-md);
341
+ --wui-field-sm-radius: var(--wui-radius-sm);
342
+ --wui-field-md-radius: var(--wui-radius-sm);
343
+ --wui-field-lg-radius: var(--wui-radius-sm);
344
+ --wui-label-fs: 11px;
341
345
  --wui-focus-ring-width: var(--wui-space-xxs);
342
346
  --wui-focus-ring-offset: var(--wui-space-xxs);
343
347
  --wui-focus-ring-shadow: 0 0 0 2px var(--color-primary-soft);
@@ -352,15 +356,24 @@
352
356
  --wui-card-title-lh: 1.3;
353
357
  --wui-card-shadow-lifted: none;
354
358
  --wui-card-shadow-lifted-hover: none;
359
+ --wui-card-radius: var(--wui-radius-sm);
360
+ --wui-card-border-width: 1px;
355
361
  --wui-table-md-padding-x: var(--wui-table-pad);
362
+ --wui-table-row-height: 72px;
363
+ --wui-table-row-pad-y: 18px;
364
+ --wui-table-row-divider-width: 0px;
356
365
  --wui-modal-max-width: 440px;
357
366
  --wui-drawer-max: 90;
358
367
  --wui-step-tile-size: 34px;
359
- --wui-kpi-value-size: 24px;
368
+ --wui-kpi-value-size: 20px;
360
369
  --wui-nav-menu-current-bg: transparent;
361
370
  --wui-container-md-padding-x: var(--wui-container-pad);
362
371
  --wui-disabled-opacity: 0.5;
372
+ --wui-button-sm-radius: var(--wui-radius-sm);
373
+ --wui-button-md-radius: var(--wui-radius-sm);
374
+ --wui-button-lg-radius: var(--wui-radius-sm);
363
375
  --wui-toast-edge-offset: var(--wui-space-lg);
376
+ --wui-page-header-title-fs: 20px;
364
377
  }
365
378
 
366
379
  @media (min-width: 768px) {
@@ -521,19 +534,19 @@
521
534
  --bs-tertiary-bg: var(--color-bg-muted);
522
535
  --bs-primary: var(--color-primary);
523
536
  --bs-body-bg-rgb: 15, 17, 23;
524
- --bs-primary-rgb: 149, 144, 239;
537
+ --bs-primary-rgb: 174, 170, 245;
525
538
  --bs-body-color-rgb: 230, 232, 238;
526
539
  --bs-emphasis-color-rgb: 230, 232, 238;
527
540
  --bs-secondary-color-rgb: 180, 185, 198;
528
541
  --bs-tertiary-color-rgb: 138, 144, 160;
529
542
  --bs-secondary-bg-rgb: 24, 27, 35;
530
543
  --bs-tertiary-bg-rgb: 35, 39, 51;
531
- --bs-border-color-rgb: 42, 47, 58;
544
+ --bs-border-color-rgb: 61, 69, 84;
532
545
  --bs-secondary-rgb: 180, 185, 198;
533
546
  --bs-link-color: var(--color-link);
534
- --bs-link-color-rgb: 149, 144, 239;
547
+ --bs-link-color-rgb: 174, 170, 245;
535
548
  --bs-link-hover-color: var(--color-primary-hover);
536
- --bs-link-hover-color-rgb: 162, 157, 241;
549
+ --bs-link-hover-color-rgb: 195, 192, 248;
537
550
  color-scheme: dark;
538
551
  }
539
552
 
@@ -683,19 +696,19 @@
683
696
  --bs-tertiary-bg: var(--color-bg-muted);
684
697
  --bs-primary: var(--color-primary);
685
698
  --bs-body-bg-rgb: 15, 17, 23;
686
- --bs-primary-rgb: 149, 144, 239;
699
+ --bs-primary-rgb: 174, 170, 245;
687
700
  --bs-body-color-rgb: 230, 232, 238;
688
701
  --bs-emphasis-color-rgb: 230, 232, 238;
689
702
  --bs-secondary-color-rgb: 180, 185, 198;
690
703
  --bs-tertiary-color-rgb: 138, 144, 160;
691
704
  --bs-secondary-bg-rgb: 24, 27, 35;
692
705
  --bs-tertiary-bg-rgb: 35, 39, 51;
693
- --bs-border-color-rgb: 42, 47, 58;
706
+ --bs-border-color-rgb: 61, 69, 84;
694
707
  --bs-secondary-rgb: 180, 185, 198;
695
708
  --bs-link-color: var(--color-link);
696
- --bs-link-color-rgb: 149, 144, 239;
709
+ --bs-link-color-rgb: 174, 170, 245;
697
710
  --bs-link-hover-color: var(--color-primary-hover);
698
- --bs-link-hover-color-rgb: 162, 157, 241;
711
+ --bs-link-hover-color-rgb: 195, 192, 248;
699
712
  }
700
713
 
701
714
  // Zero specificity, so a component's own class on a themed section or inside it keeps its colour.
@@ -906,19 +919,19 @@ html {
906
919
  --bs-tertiary-bg: var(--color-bg-muted);
907
920
  --bs-primary: var(--color-primary);
908
921
  --bs-body-bg-rgb: 15, 17, 23;
909
- --bs-primary-rgb: 149, 144, 239;
922
+ --bs-primary-rgb: 174, 170, 245;
910
923
  --bs-body-color-rgb: 230, 232, 238;
911
924
  --bs-emphasis-color-rgb: 230, 232, 238;
912
925
  --bs-secondary-color-rgb: 180, 185, 198;
913
926
  --bs-tertiary-color-rgb: 138, 144, 160;
914
927
  --bs-secondary-bg-rgb: 24, 27, 35;
915
928
  --bs-tertiary-bg-rgb: 35, 39, 51;
916
- --bs-border-color-rgb: 42, 47, 58;
929
+ --bs-border-color-rgb: 61, 69, 84;
917
930
  --bs-secondary-rgb: 180, 185, 198;
918
931
  --bs-link-color: var(--color-link);
919
- --bs-link-color-rgb: 149, 144, 239;
932
+ --bs-link-color-rgb: 174, 170, 245;
920
933
  --bs-link-hover-color: var(--color-primary-hover);
921
- --bs-link-hover-color-rgb: 162, 157, 241;
934
+ --bs-link-hover-color-rgb: 195, 192, 248;
922
935
  color-scheme: dark;
923
936
  }
924
937
  }
@@ -265,9 +265,9 @@ $btn-padding-y: 0.5rem;
265
265
  $btn-padding-x: 1.25rem;
266
266
  $btn-padding-y-lg: 0.875rem;
267
267
  $btn-padding-x-lg: 1.75rem;
268
- $btn-border-radius: $border-radius; // 8px
269
- $btn-border-radius-sm: $border-radius-sm; // 6px
270
- $btn-border-radius-lg: $border-radius-lg; // 12px
268
+ $btn-border-radius: $border-radius;
269
+ $btn-border-radius-sm: $border-radius-sm;
270
+ $btn-border-radius-lg: $border-radius-lg;
271
271
  $btn-transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
272
272
 
273
273
 
@@ -18,11 +18,12 @@
18
18
  --bs-card-spacer-x: var(--wui-card-pad);
19
19
  --bs-card-cap-padding-y: var(--wui-card-pad);
20
20
  --bs-card-cap-padding-x: var(--wui-card-pad);
21
- // Default card is borderless — a flat surface. The border-STYLE stays solid (Bootstrap's
22
- // `border: var(--bs-card-border-width) solid …`), so a variant or a consumer class can
23
- // bring the edge back just by giving it a width (set --bs-card-border-width).
24
- // With a unit: the inner radius below subtracts it, and calc() drops a bare 0.
25
- --bs-card-border-width: 0px;
21
+ // The default card draws a hairline outline in the border colour, its width the
22
+ // --wui-card-border-width token (1px). A brand or a consumer class sets the token to 0px for a
23
+ // flat surface. The token carries a unit, because the inner radius below subtracts it and calc()
24
+ // drops a bare 0.
25
+ --bs-card-border-width: var(--wui-card-border-width);
26
+ --bs-card-border-color: var(--color-border);
26
27
  // Bootstrap compiles the inner radius from $card-border-radius, which is smaller than the
27
28
  // token radius the card actually draws. The header, footer and media round their corners
28
29
  // with it, so their fill poked out over a bordered card's corners and the border looked cut.
@@ -58,7 +58,7 @@ wui-chart:not(:defined) .wui-chart-table-wrap {
58
58
  }
59
59
 
60
60
  // ── Dashboard grid ──────────────────────────────────────────────────────────
61
- // One column on a phone; from 576px a cell spans 3, 4, 6 or 12 of 12 columns.
61
+ // One column on a phone; from 576px a cell spans 3, 4, 6, 8 or 12 of 12 columns.
62
62
  .wui-dashboard-grid {
63
63
  display: grid;
64
64
  grid-template-columns: minmax(0, 1fr);
@@ -87,4 +87,7 @@ wui-chart:not(:defined) .wui-chart-table-wrap {
87
87
  .wui-dashboard-cell-6 {
88
88
  grid-column: span 6;
89
89
  }
90
+ .wui-dashboard-cell-8 {
91
+ grid-column: span 8;
92
+ }
90
93
  }
@@ -1048,7 +1048,7 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
1048
1048
  padding: 0 12px 0 36px;
1049
1049
  border: 1px solid var(--color-field-border);
1050
1050
  border-radius: var(--wui-radius-md);
1051
- font-size: 14px;
1051
+ font-size: var(--wui-fs-xs);
1052
1052
  color: var(--color-text);
1053
1053
  // AppInput's field model: muted resting fill that lifts to a clean surface on focus.
1054
1054
  background: var(--color-field-bg);
@@ -454,7 +454,7 @@
454
454
  border-radius: var(--wui-field-md-radius);
455
455
  border: 1px solid var(--color-field-border);
456
456
  background: var(--color-field-bg);
457
- font-size: 14px;
457
+ font-size: var(--wui-fs-xs);
458
458
  line-height: 1.5;
459
459
  color: var(--color-text);
460
460
  transition:
@@ -659,7 +659,7 @@ textarea.form-control.autosize {
659
659
  padding-right: 0.875rem;
660
660
  }
661
661
  .field-error {
662
- font-size: 12px;
662
+ font-size: var(--wui-label-fs);
663
663
  line-height: normal;
664
664
  // Must clear AA against the surface: --color-danger-pressed (#E82646) is 4.38:1 at this
665
665
  // 12px size, under the 4.5:1 floor the a11y gate enforces.
@@ -1212,7 +1212,7 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
1212
1212
  .hint,
1213
1213
  .field-hint {
1214
1214
  margin-top: 2px;
1215
- font-size: 12px;
1215
+ font-size: var(--wui-label-fs);
1216
1216
  color: var(--color-text-subtle);
1217
1217
  text-align: start;
1218
1218
  }
@@ -1233,7 +1233,7 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
1233
1233
  }
1234
1234
  .label {
1235
1235
  display: block;
1236
- font-size: 14px;
1236
+ font-size: var(--wui-label-fs);
1237
1237
  line-height: normal;
1238
1238
  font-weight: 500;
1239
1239
  color: var(--color-text);
@@ -63,7 +63,7 @@
63
63
  border-bottom: 1px solid var(--color-border);
64
64
  font-size: 12px;
65
65
  font-weight: 500;
66
- letter-spacing: 0.04em;
66
+ letter-spacing: var(--wui-letter-spacing-wide);
67
67
  text-transform: uppercase;
68
68
  white-space: nowrap;
69
69
  vertical-align: middle;
@@ -74,8 +74,8 @@
74
74
  :where(.table) > tbody > tr > td,
75
75
  :where(.table) > tbody > tr > th.wui-row-header {
76
76
  --bs-table-color: var(--color-text-muted);
77
- border-bottom: 1px solid var(--color-border);
78
- font-size: 14px;
77
+ border-bottom: var(--wui-table-row-divider-width) solid var(--color-border);
78
+ font-size: var(--wui-fs-xs);
79
79
  vertical-align: middle;
80
80
  transition: background-color 0.12s ease;
81
81
  }
@@ -180,10 +180,11 @@
180
180
  background: var(--wui-table-header-bg, var(--color-bg-muted));
181
181
  border-bottom: none;
182
182
  font-family: var(--wui-font-ui);
183
- font-size: 12px;
183
+ font-size: var(--wui-label-fs);
184
184
  font-weight: 500;
185
185
  line-height: 17px;
186
- letter-spacing: 0.04em;
186
+ letter-spacing: var(--wui-letter-spacing-wide);
187
+ text-transform: uppercase;
187
188
  // --color-text-subtle (#78829D) is ~3.5:1 on the muted band, below WCAG AA's 4.5:1
188
189
  // for 12px text. A column header names the data under it — that is not decorative
189
190
  // text, so it takes the muted ramp (~7.5:1). Caught by the axe pass, on both surfaces.
@@ -200,11 +201,11 @@
200
201
  }
201
202
  .table-ledger tbody td,
202
203
  .table-ledger tbody th.wui-row-header {
203
- height: 54px;
204
- padding: 12px;
205
- border-bottom: 0.5px solid var(--color-border);
204
+ height: var(--wui-table-row-height);
205
+ padding: var(--wui-table-row-pad-y) 12px;
206
+ border-bottom: var(--wui-table-row-divider-width) solid var(--color-border);
206
207
  font-family: var(--wui-font-ui);
207
- font-size: 12px;
208
+ font-size: var(--wui-fs-xs);
208
209
  line-height: 15px;
209
210
  color: var(--color-text-muted);
210
211
  }
@@ -249,7 +250,7 @@
249
250
  }
250
251
  .table-ledger .u-name {
251
252
  min-width: 0;
252
- font-size: 14px;
253
+ font-size: var(--wui-fs-xs);
253
254
  font-weight: 500;
254
255
  line-height: 19px;
255
256
  color: var(--color-text);
@@ -1211,7 +1212,7 @@
1211
1212
  display: inline-flex;
1212
1213
  align-items: center;
1213
1214
  gap: 8px;
1214
- font-size: 14px;
1215
+ font-size: var(--wui-fs-xs);
1215
1216
  font-weight: 600;
1216
1217
  color: var(--color-text);
1217
1218
  }
@@ -55,7 +55,7 @@
55
55
  color: var(--color-text-muted);
56
56
  }
57
57
  .kpi-label {
58
- font-size: 13px;
58
+ font-size: var(--wui-label-fs);
59
59
  font-weight: 500;
60
60
  // --color-text-muted (not -subtle): -subtle is ~4.5:1 on white and dips below AA on the
61
61
  // filled/accent variant's tinted surface. -muted clears AA on every kpi variant.
@@ -81,7 +81,7 @@
81
81
  align-self: flex-start;
82
82
  gap: 4px;
83
83
  margin-top: 6px;
84
- font-size: 12px;
84
+ font-size: var(--wui-label-fs);
85
85
  font-weight: 500;
86
86
  color: var(--color-text-muted);
87
87
  }
@@ -228,7 +228,7 @@
228
228
  // is variant-agnostic so a plain tile can carry one too.
229
229
  .kpi-caption {
230
230
  margin-top: 8px;
231
- font-size: 14px;
231
+ font-size: var(--wui-fs-xs);
232
232
  font-weight: 400;
233
233
  color: var(--color-text-muted);
234
234
  }
@@ -303,7 +303,7 @@ a.kpi:focus-visible {
303
303
  }
304
304
  }
305
305
  .descs-label {
306
- font-size: 12px;
306
+ font-size: var(--wui-label-fs);
307
307
  font-weight: 600;
308
308
  text-transform: uppercase;
309
309
  letter-spacing: 0.04em;
@@ -312,7 +312,7 @@ a.kpi:focus-visible {
312
312
  margin: 0;
313
313
  }
314
314
  .descs-value {
315
- font-size: 14px;
315
+ font-size: var(--wui-fs-xs);
316
316
  font-weight: 500;
317
317
  color: var(--color-text);
318
318
  padding: 4px 16px 12px;
@@ -51,7 +51,7 @@
51
51
  color: var(--color-primary-text);
52
52
  font-size: var(--wui-fs-sm);
53
53
  font-weight: 600;
54
- letter-spacing: 0.04em;
54
+ letter-spacing: var(--wui-letter-spacing-wide);
55
55
  text-transform: uppercase;
56
56
  }
57
57
  .wui-section-eyebrow-pill {
@@ -232,6 +232,8 @@
232
232
  display: flex;
233
233
  align-items: center;
234
234
  flex: none;
235
+ // A text brand reads at the root size; body text runs a step smaller.
236
+ font-size: $font-size-base;
235
237
  }
236
238
 
237
239
  // Sticky always makes a stacking context, so without a z-index here the page content after the
@@ -271,6 +273,8 @@
271
273
  min-height: 32px;
272
274
  margin-bottom: 8px;
273
275
  padding: 0 0px;
276
+ // A text brand reads at the root size; body text runs a step smaller.
277
+ font-size: $font-size-base;
274
278
  // The brand row must not shrink when the nav list below it overflows.
275
279
  flex: none;
276
280
  overflow: hidden;
@@ -513,7 +517,8 @@
513
517
  flex: none;
514
518
  display: inline-grid;
515
519
  place-items: center;
516
- color: var(--color-text-subtle);
520
+ // Nav icons draw in the accent; with the default twotone style that gives two tones of it.
521
+ color: var(--color-primary);
517
522
  }
518
523
  .app-nav-item.active .app-nav-icon {
519
524
  color: var(--color-primary-text);
@@ -166,6 +166,21 @@
166
166
  color: var(--color-text);
167
167
  }
168
168
 
169
+ // A selected chip takes the pressed toggle look below; its count is a muted pill that
170
+ // inverts inside a pressed chip as the choice chip's count does.
171
+ .chip .wui-chip-count {
172
+ padding: var(--wui-space-xxs) var(--wui-space-xs);
173
+ border-radius: var(--wui-radius-pill);
174
+ background: var(--color-bg-muted);
175
+ font-size: var(--wui-fs-xs);
176
+ font-variant-numeric: tabular-nums;
177
+ color: var(--color-text-subtle);
178
+ }
179
+ .chip:has(> .chip-body[aria-pressed="true"]) .wui-chip-count {
180
+ background: var(--color-surface);
181
+ color: var(--color-primary-text);
182
+ }
183
+
169
184
  /* Tones — tinted surface + on-tint text; icon/remove inherit the tone colour. */
170
185
  .chip.primary {
171
186
  @include wui-tone-pill-colors(primary, var(--color-primary-text));
@@ -267,7 +267,7 @@ wui-source {
267
267
  margin: 0;
268
268
  font-family: inherit;
269
269
  line-height: inherit;
270
- font-size: 24px;
270
+ font-size: var(--wui-page-header-title-fs);
271
271
  font-weight: 600;
272
272
  letter-spacing: -0.02em;
273
273
  color: var(--color-text);