@webority/theme 0.152.0 → 0.154.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 (114) hide show
  1. package/README.md +45 -17
  2. package/dist/purge-safelist.json +2 -0
  3. package/dist/webority-theme.css +1 -1
  4. package/dist/webority-tokens.css +1 -1
  5. package/index.scss +11 -13
  6. package/package.json +3 -3
  7. package/scss/_bootstrap-css.scss +40 -0
  8. package/scss/_bootstrap.generated.scss +1 -2
  9. package/scss/_components.scss +19 -3
  10. package/scss/_config.scss +16 -0
  11. package/scss/_marketing.scss +5 -5
  12. package/scss/_tokens.generated.scss +7 -6
  13. package/scss/_tokens.scss +3 -3
  14. package/scss/_variables.scss +14 -36
  15. package/scss/_wui-components.scss +91 -95
  16. package/scss/_wui-core.scss +80 -84
  17. package/scss/wui/_account-switcher.scss +2 -0
  18. package/scss/wui/_auth-layout.scss +2 -0
  19. package/scss/wui/_avatar-picker.scss +2 -0
  20. package/scss/wui/_calendar.scss +2 -0
  21. package/scss/wui/_card-options.scss +2 -0
  22. package/scss/wui/_card.scss +3 -1
  23. package/scss/wui/_carousel.scss +2 -0
  24. package/scss/wui/_cell.scss +2 -0
  25. package/scss/wui/_chart-card.scss +2 -0
  26. package/scss/wui/_chart.scss +2 -0
  27. package/scss/wui/_choice.scss +2 -0
  28. package/scss/wui/_code-block.scss +2 -0
  29. package/scss/wui/_command-palette.scss +2 -0
  30. package/scss/wui/_comment-thread.scss +2 -0
  31. package/scss/wui/_compare-table.scss +2 -0
  32. package/scss/wui/_consent-banner.scss +2 -0
  33. package/scss/wui/_context-menu.scss +2 -0
  34. package/scss/wui/_controls.scss +3 -3
  35. package/scss/wui/_data.scss +2 -0
  36. package/scss/wui/_detail-pane.scss +2 -0
  37. package/scss/wui/_dialog-motion.scss +2 -0
  38. package/scss/wui/_disclosure.scss +2 -0
  39. package/scss/wui/_display.scss +44 -0
  40. package/scss/wui/_dock.scss +2 -0
  41. package/scss/wui/_drawer.scss +2 -0
  42. package/scss/wui/_due-date.scss +2 -0
  43. package/scss/wui/_empty-state.scss +2 -0
  44. package/scss/wui/_field-busy.scss +2 -0
  45. package/scss/wui/_field-floor.scss +2 -0
  46. package/scss/wui/_field-sizes.scss +2 -0
  47. package/scss/wui/_file-tiles.scss +2 -0
  48. package/scss/wui/_file-viewer.scss +6 -2
  49. package/scss/wui/_filter-popover.scss +2 -0
  50. package/scss/wui/_floating.scss +2 -0
  51. package/scss/wui/_flow.scss +2 -0
  52. package/scss/wui/_groups.scss +2 -0
  53. package/scss/wui/_hover-card.scss +2 -0
  54. package/scss/wui/_illustration.scss +2 -0
  55. package/scss/wui/_image-crop.scss +2 -0
  56. package/scss/wui/_inline-edit.scss +2 -0
  57. package/scss/wui/_interaction.scss +2 -0
  58. package/scss/wui/_kanban.scss +2 -0
  59. package/scss/wui/_lightbox.scss +2 -0
  60. package/scss/wui/_list-card.scss +2 -0
  61. package/scss/wui/_markdown.scss +4 -1
  62. package/scss/wui/_media.scss +2 -0
  63. package/scss/wui/_mention-input.scss +2 -0
  64. package/scss/wui/_menu-motion.scss +2 -0
  65. package/scss/wui/_metric-strip.scss +2 -0
  66. package/scss/wui/_modal-remote.scss +2 -0
  67. package/scss/wui/_money.scss +2 -0
  68. package/scss/wui/_nav-list.scss +2 -0
  69. package/scss/wui/_navigation-menu.scss +2 -0
  70. package/scss/wui/_navigation.scss +2 -0
  71. package/scss/wui/_notification-center.scss +2 -0
  72. package/scss/wui/_onboarding-checklist.scss +2 -0
  73. package/scss/wui/_org-tree.scss +2 -0
  74. package/scss/wui/_overlays.scss +2 -0
  75. package/scss/wui/_page-header-bar.scss +2 -0
  76. package/scss/wui/_pagination.scss +2 -0
  77. package/scss/wui/_pending.scss +2 -0
  78. package/scss/wui/_period-picker.scss +2 -0
  79. package/scss/wui/_rating.scss +2 -0
  80. package/scss/wui/_record-pager.scss +2 -0
  81. package/scss/wui/_relative-time.scss +2 -0
  82. package/scss/wui/_resizable.scss +2 -0
  83. package/scss/wui/_rich-text.scss +9 -3
  84. package/scss/wui/_rolling-number.scss +2 -0
  85. package/scss/wui/_score-scale.scss +2 -0
  86. package/scss/wui/_scrollbar.scss +2 -0
  87. package/scss/wui/_section-lead-capture.scss +2 -0
  88. package/scss/wui/_sections.scss +3 -0
  89. package/scss/wui/_select.scss +2 -0
  90. package/scss/wui/_shell-parts.scss +2 -0
  91. package/scss/wui/_shell.scss +2 -0
  92. package/scss/wui/_shortcuts.scss +2 -0
  93. package/scss/wui/_show-more.scss +2 -0
  94. package/scss/wui/_sortable.scss +2 -0
  95. package/scss/wui/_split-view.scss +2 -0
  96. package/scss/wui/_support.scss +2 -0
  97. package/scss/wui/_table-server.scss +2 -0
  98. package/scss/wui/_theme-toggle.scss +2 -0
  99. package/scss/wui/_tone-pill.scss +2 -0
  100. package/scss/wui/_toolbar.scss +2 -0
  101. package/scss/wui/_tour.scss +9 -9
  102. package/scss/wui/_tree.scss +2 -0
  103. package/scss/wui/_truncate.scss +2 -0
  104. package/scss/wui/_typography.scss +3 -0
  105. package/scss/wui/_utilities.scss +2 -0
  106. package/scss/wui/_whats-new.scss +2 -0
  107. package/scss/wui/_workspace.scss +2 -0
  108. package/scss/wui/tour/_advance.scss +2 -0
  109. package/scss/wui/tour/_base.scss +2 -0
  110. package/scss/wui/tour/_end.scss +2 -0
  111. package/scss/wui/tour/_media.scss +2 -0
  112. package/scss/wui/tour/_motion.scss +2 -0
  113. package/scss/wui/tour/_placement.scss +2 -0
  114. package/scss/wui/tour/_progress.scss +2 -0
@@ -3,21 +3,26 @@
3
3
  @use "sass:math";
4
4
  @use "sass:string";
5
5
 
6
+ // Bootstrap $ defaults generated from the token source (`corepack pnpm run tokens`). Every value is !default and
7
+ // this file must not reassign them (scripts/check-theme-shadow.mjs), so a brand's configured value wins.
8
+ @forward "bootstrap.generated";
9
+ @use "bootstrap.generated" as *;
10
+
6
11
  // =====================================================================
7
12
  // Webority UI — Bootstrap variable overrides.
8
- // Imported BEFORE `bootstrap/scss/bootstrap` so Bootstrap derives every
13
+ // Loaded through _config.scss BEFORE Bootstrap's own variables, so Bootstrap derives every
9
14
  // utility class (.btn-primary, .bg-info, .text-success, etc.) from these
10
15
  // values. Shared by every product's Razor marketing site and React portal
11
- // so both surfaces stay visually identical. Products override these with
12
- // their own _variables imported before this file.
16
+ // so both surfaces stay visually identical. A product overrides the !default ones by configuring
17
+ // the theme in its brand variables module: @use "@webority/theme/scss/config" with ($primary: …).
13
18
  // =====================================================================
14
19
 
15
20
 
16
21
  // ---- Brand colors ---------------------------------------------------
17
22
  // Neutral indigo default. The full ramp lives in _tokens.scss as CSS
18
23
  // variables since Bootstrap only consumes the named theme colors.
19
- // `!default` so a product that sets these in its own _variables BEFORE importing this file
20
- // (the documented override path) wins — a plain assignment here would clobber the brand.
24
+ // `!default` so a brand's configured value wins; everything derived from $primary below (the theme-colour map,
25
+ // the primary ink, the on-primary label, the dark primary, the link colours) follows it.
21
26
  $primary: #4F46E5 !default;
22
27
  // $secondary is intentional quiet grey (text-2 / foreground-3), NOT a second
23
28
  // brand hue. `.btn-soft-primary`, `.text-secondary`, `.bg-secondary` mean "quiet /
@@ -156,35 +161,6 @@ $wui-dark-primary: wui-dark-primary($primary) !default;
156
161
  $wui-dark-primary-hover: color.mix(#FFFFFF, $wui-dark-primary, 12%) !default;
157
162
  $link-color: $wui-primary-ink !default;
158
163
 
159
- // Brand helper — set a product's primary ONCE and have the theme-colour map
160
- // (so every .btn-primary / .bg-primary / .text-primary utility), $link-color,
161
- // $link-hover-color, the primary ink, the on-primary label and the dark primary follow, instead of
162
- // overriding each in turn. Call it in the product's pre-bootstrap variables,
163
- // BEFORE `bootstrap/scss/bootstrap`, e.g.:
164
- //
165
- // @include wui-brand-primary(#0EA5E9);
166
- // @import "bootstrap/scss/bootstrap";
167
- //
168
- // It rewrites the globals in place, so the whole Bootstrap colour system derives
169
- // from the one value. Runtime CSS tokens (--wui-primary*) are still overridden
170
- // separately, as usual.
171
- @mixin wui-brand-primary($primary) {
172
- $primary: $primary !global;
173
- $theme-colors: map-merge($theme-colors, ("primary": $primary)) !global;
174
- $wui-primary-ink: wui-primary-ink($primary) !global;
175
- $wui-primary-text: wui-on-primary($primary) !global;
176
- $wui-dark-primary: wui-dark-primary($primary) !global;
177
- $wui-dark-primary-hover: color.mix(#FFFFFF, $wui-dark-primary, 12%) !global;
178
- $link-color: $wui-primary-ink !global;
179
- $link-hover-color: mix(black, $wui-primary-ink, 12%) !global;
180
- }
181
-
182
- // Bootstrap $ defaults generated from the token source (`corepack pnpm run tokens`). Imported here, before the first
183
- // read of $body-color, $border-color, $border-radius* and $wui-shadow-overlay* below, because a !default value is
184
- // only visible to lines after it. Every value is !default, so a brand $ set before this file still wins; this file
185
- // must not reassign them (scripts/check-theme-shadow.mjs).
186
- @import "bootstrap.generated";
187
-
188
164
 
189
165
  // ---- Body / text ----------------------------------------------------
190
166
  // $body-bg left at Bootstrap's $white — do not restate pure defaults here.
@@ -289,6 +265,8 @@ $input-padding-x: 0.875rem; // 14px
289
265
  $input-border-radius: $border-radius;
290
266
  // Themed, so it flips in dark mode. The old fixed #99A1B7 was 2.58:1 on white and read as typed text on dark.
291
267
  $input-placeholder-color: var(--color-text-subtle);
268
+ // The trailing error glyph, shared by every field that shows one (the phone shell draws it too).
269
+ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F8285A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
292
270
 
293
271
 
294
272
  // ---- Cards ----------------------------------------------------------
@@ -321,9 +299,9 @@ $toast-box-shadow: $wui-shadow-overlay-lg;
321
299
  // ---- Links ----------------------------------------------------------
322
300
  // $link-color is the primary ink (above), so a link clears AA whatever the brand.
323
301
  // Hover is a darkened mix of the ink — never a hard-coded indigo — so a product
324
- // that sets $primary (or calls wui-brand-primary) gets a matching hover. Approximate
302
+ // that configures $primary gets a matching hover. Approximate
325
303
  // of Bootstrap's shift-color($link-color, 20%) without importing BS functions here.
326
- $link-hover-color: mix(black, $wui-primary-ink, 12%);
304
+ $link-hover-color: mix(black, $wui-primary-ink, 12%) !default;
327
305
  $link-decoration: none; // BS default is underline
328
306
  $link-hover-decoration: underline;
329
307
 
@@ -18,116 +18,112 @@
18
18
  // This file is now an INDEX. The rules live in ./wui/*.scss, split by domain
19
19
  // because one 5,000-line stylesheet made finding a component a grep.
20
20
  //
21
- // Shared tone-pill mixin — used by .badge, .status-label, and .chip.
22
- // Must be imported before components that use it.
23
- @import "wui/tone-pill";
24
-
25
21
  // The order below is LOAD-BEARING. A later partial may deliberately override an
26
- // earlier one, so reordering these imports silently changes the cascade — and
22
+ // earlier one, so reordering these @use lines silently changes the cascade — and
27
23
  // nothing in the build will complain. `pnpm check:theme` measures the rules that
28
24
  // have to win against Bootstrap; the rest is guarded by review.
29
- @import "wui/controls";
30
- @import "wui/pending";
31
- @import "wui/choice";
32
- @import "wui/select";
33
- @import "wui/media";
34
- @import "wui/file-tiles";
35
- @import "wui/image-crop";
36
- @import "wui/avatar-picker";
37
- @import "wui/navigation";
38
- @import "wui/nav-list";
39
- @import "wui/card";
40
- @import "wui/card-options";
41
- @import "wui/empty-state";
42
- @import "wui/data";
43
- @import "wui/pagination";
44
- @import "wui/illustration";
45
- @import "wui/table-server";
46
- @import "wui/kanban";
47
- @import "wui/inline-edit";
48
- @import "wui/mention-input";
49
- @import "wui/comment-thread";
50
- @import "wui/support";
51
- @import "wui/overlays";
52
- @import "wui/drawer";
53
- @import "wui/modal-remote";
54
- @import "wui/utilities";
55
- @import "wui/typography";
56
- @import "wui/disclosure";
57
- @import "wui/display";
58
- @import "wui/compare-table";
59
- @import "wui/flow";
25
+ @use "wui/controls";
26
+ @use "wui/pending";
27
+ @use "wui/choice";
28
+ @use "wui/select";
29
+ @use "wui/media";
30
+ @use "wui/file-tiles";
31
+ @use "wui/image-crop";
32
+ @use "wui/avatar-picker";
33
+ @use "wui/navigation";
34
+ @use "wui/nav-list";
35
+ @use "wui/card";
36
+ @use "wui/card-options";
37
+ @use "wui/empty-state";
38
+ @use "wui/data";
39
+ @use "wui/pagination";
40
+ @use "wui/illustration";
41
+ @use "wui/table-server";
42
+ @use "wui/kanban";
43
+ @use "wui/inline-edit";
44
+ @use "wui/mention-input";
45
+ @use "wui/comment-thread";
46
+ @use "wui/support";
47
+ @use "wui/overlays";
48
+ @use "wui/drawer";
49
+ @use "wui/modal-remote";
50
+ @use "wui/utilities";
51
+ @use "wui/typography";
52
+ @use "wui/disclosure";
53
+ @use "wui/display";
54
+ @use "wui/compare-table";
55
+ @use "wui/flow";
60
56
  // After `flow`: the pricing section extends its `.plan-grid` rules.
61
- @import "wui/sections";
62
- @import "wui/section-lead-capture";
63
- @import "wui/chart";
64
- @import "wui/chart-card";
65
- @import "wui/calendar";
66
- @import "wui/rich-text";
67
- @import "wui/markdown";
68
- @import "wui/scrollbar";
69
- @import "wui/sortable";
57
+ @use "wui/sections";
58
+ @use "wui/section-lead-capture";
59
+ @use "wui/chart";
60
+ @use "wui/chart-card";
61
+ @use "wui/calendar";
62
+ @use "wui/rich-text";
63
+ @use "wui/markdown";
64
+ @use "wui/scrollbar";
65
+ @use "wui/sortable";
70
66
  // Before `split-view`, which places the legend sheet inside the list column.
71
- @import "wui/record-pager";
72
- @import "wui/shortcuts";
73
- @import "wui/split-view";
74
- @import "wui/detail-pane";
75
- @import "wui/groups";
76
- @import "wui/carousel";
77
- @import "wui/onboarding-checklist";
78
- @import "wui/rating";
79
- @import "wui/score-scale";
80
- @import "wui/list-card";
81
- @import "wui/money";
82
- @import "wui/period-picker";
83
- @import "wui/relative-time";
84
- @import "wui/resizable";
85
- @import "wui/rolling-number";
86
- @import "wui/show-more";
87
- @import "wui/truncate";
67
+ @use "wui/record-pager";
68
+ @use "wui/shortcuts";
69
+ @use "wui/split-view";
70
+ @use "wui/detail-pane";
71
+ @use "wui/groups";
72
+ @use "wui/carousel";
73
+ @use "wui/onboarding-checklist";
74
+ @use "wui/rating";
75
+ @use "wui/score-scale";
76
+ @use "wui/list-card";
77
+ @use "wui/money";
78
+ @use "wui/period-picker";
79
+ @use "wui/relative-time";
80
+ @use "wui/resizable";
81
+ @use "wui/rolling-number";
82
+ @use "wui/show-more";
83
+ @use "wui/truncate";
88
84
  // After `navigation`/`overlays`: the switcher restates dropdown-item chrome those partials
89
85
  // set, so it has to win on equal specificity.
90
- @import "wui/workspace";
91
- @import "wui/page-header-bar";
92
- @import "wui/filter-popover";
93
- @import "wui/metric-strip";
94
- @import "wui/due-date";
95
- @import "wui/cell";
86
+ @use "wui/workspace";
87
+ @use "wui/page-header-bar";
88
+ @use "wui/filter-popover";
89
+ @use "wui/metric-strip";
90
+ @use "wui/due-date";
91
+ @use "wui/cell";
96
92
 
97
93
  // Country flags are NOT part of this aggregate. The 245 `.wui-flag-*` rules are about 187KB raw
98
94
  // (38KB Brotli) of inlined SVG, and most sites never render a phone field or country picker.
99
95
  // A site that does imports `@webority/theme/scss/flags` once, after this file; without it
100
96
  // <wui-phone> and <wui-select mode="country"> show an empty grey box where the flag should be.
101
- @import "wui/shell";
102
- @import "wui/shell-parts";
103
- @import "wui/account-switcher";
104
- @import "wui/dock";
105
- @import "wui/consent-banner";
106
- @import "wui/file-viewer";
107
- @import "wui/lightbox";
108
- @import "wui/toolbar";
109
- @import "wui/theme-toggle";
110
- @import "wui/auth-layout";
111
- @import "wui/tree";
112
- @import "wui/org-tree";
113
- @import "wui/floating";
114
- @import "wui/code-block";
97
+ @use "wui/shell";
98
+ @use "wui/shell-parts";
99
+ @use "wui/account-switcher";
100
+ @use "wui/dock";
101
+ @use "wui/consent-banner";
102
+ @use "wui/file-viewer";
103
+ @use "wui/lightbox";
104
+ @use "wui/toolbar";
105
+ @use "wui/theme-toggle";
106
+ @use "wui/auth-layout";
107
+ @use "wui/tree";
108
+ @use "wui/org-tree";
109
+ @use "wui/floating";
110
+ @use "wui/code-block";
115
111
  // After `overlays`: anchors the shared modal shell to the top when it holds the palette card.
116
- @import "wui/command-palette";
117
- @import "wui/context-menu";
118
- @import "wui/navigation-menu";
119
- @import "wui/tour";
120
- @import "wui/hover-card";
121
- @import "wui/notification-center";
122
- @import "wui/whats-new";
112
+ @use "wui/command-palette";
113
+ @use "wui/context-menu";
114
+ @use "wui/navigation-menu";
115
+ @use "wui/tour";
116
+ @use "wui/hover-card";
117
+ @use "wui/notification-center";
118
+ @use "wui/whats-new";
123
119
  // Before field-floor, which restates the font sizes the size steps set.
124
- @import "wui/field-busy";
125
- @import "wui/field-sizes";
120
+ @use "wui/field-busy";
121
+ @use "wui/field-sizes";
126
122
  // After every component partial: restates each field's own font size with a 16px floor on touch screens.
127
- @import "wui/field-floor";
123
+ @use "wui/field-floor";
128
124
  // After every component partial: the shared focus ring and pressed wash settle ties with their hover rules.
129
- @import "wui/interaction";
125
+ @use "wui/interaction";
130
126
  // Last: restates the settled state of menus other partials style, so it must win.
131
- @import "wui/menu-motion";
127
+ @use "wui/menu-motion";
132
128
  // After menu-motion: reuses its zoom keyframes and must win over the overlay partials' modal rules.
133
- @import "wui/dialog-motion";
129
+ @use "wui/dialog-motion";
@@ -11,102 +11,98 @@
11
11
  // layer is absent.
12
12
  // ============================================================================
13
13
 
14
- // Shared tone-pill mixin — used by .badge, .status-label, and .chip.
15
- // Must be imported before components that use it.
16
- @import "wui/tone-pill";
17
-
18
14
  // The order below is LOAD-BEARING. A later partial may deliberately override an
19
- // earlier one, so reordering these imports silently changes the cascade — and
15
+ // earlier one, so reordering these @use lines silently changes the cascade — and
20
16
  // nothing in the build will complain. `pnpm check:theme` measures the rules that
21
17
  // have to win against Bootstrap; the rest is guarded by review.
22
- @import "wui/controls";
23
- @import "wui/pending";
24
- @import "wui/choice";
25
- @import "wui/select";
26
- @import "wui/media";
27
- @import "wui/file-tiles";
28
- @import "wui/avatar-picker";
29
- @import "wui/navigation";
30
- @import "wui/nav-list";
31
- @import "wui/card";
32
- @import "wui/card-options";
33
- @import "wui/empty-state";
34
- @import "wui/data";
35
- @import "wui/pagination";
36
- @import "wui/illustration";
37
- @import "wui/table-server";
38
- @import "wui/inline-edit";
39
- @import "wui/mention-input";
40
- @import "wui/comment-thread";
41
- @import "wui/support";
42
- @import "wui/overlays";
43
- @import "wui/drawer";
44
- @import "wui/modal-remote";
45
- @import "wui/utilities";
46
- @import "wui/typography";
47
- @import "wui/disclosure";
48
- @import "wui/display";
49
- @import "wui/compare-table";
50
- @import "wui/flow";
18
+ @use "wui/controls";
19
+ @use "wui/pending";
20
+ @use "wui/choice";
21
+ @use "wui/select";
22
+ @use "wui/media";
23
+ @use "wui/file-tiles";
24
+ @use "wui/avatar-picker";
25
+ @use "wui/navigation";
26
+ @use "wui/nav-list";
27
+ @use "wui/card";
28
+ @use "wui/card-options";
29
+ @use "wui/empty-state";
30
+ @use "wui/data";
31
+ @use "wui/pagination";
32
+ @use "wui/illustration";
33
+ @use "wui/table-server";
34
+ @use "wui/inline-edit";
35
+ @use "wui/mention-input";
36
+ @use "wui/comment-thread";
37
+ @use "wui/support";
38
+ @use "wui/overlays";
39
+ @use "wui/drawer";
40
+ @use "wui/modal-remote";
41
+ @use "wui/utilities";
42
+ @use "wui/typography";
43
+ @use "wui/disclosure";
44
+ @use "wui/display";
45
+ @use "wui/compare-table";
46
+ @use "wui/flow";
51
47
  // After `flow`: the pricing section extends its `.plan-grid` rules.
52
- @import "wui/sections";
53
- @import "wui/section-lead-capture";
54
- @import "wui/chart";
55
- @import "wui/chart-card";
56
- @import "wui/markdown";
57
- @import "wui/scrollbar";
58
- @import "wui/sortable";
48
+ @use "wui/sections";
49
+ @use "wui/section-lead-capture";
50
+ @use "wui/chart";
51
+ @use "wui/chart-card";
52
+ @use "wui/markdown";
53
+ @use "wui/scrollbar";
54
+ @use "wui/sortable";
59
55
  // Before `split-view`, which places the legend sheet inside the list column.
60
- @import "wui/record-pager";
61
- @import "wui/shortcuts";
62
- @import "wui/split-view";
63
- @import "wui/detail-pane";
64
- @import "wui/groups";
65
- @import "wui/carousel";
66
- @import "wui/onboarding-checklist";
67
- @import "wui/rating";
68
- @import "wui/score-scale";
69
- @import "wui/list-card";
70
- @import "wui/money";
71
- @import "wui/period-picker";
72
- @import "wui/relative-time";
73
- @import "wui/resizable";
74
- @import "wui/rolling-number";
75
- @import "wui/show-more";
76
- @import "wui/truncate";
77
- @import "wui/page-header-bar";
78
- @import "wui/filter-popover";
79
- @import "wui/metric-strip";
80
- @import "wui/due-date";
81
- @import "wui/cell";
56
+ @use "wui/record-pager";
57
+ @use "wui/shortcuts";
58
+ @use "wui/split-view";
59
+ @use "wui/detail-pane";
60
+ @use "wui/groups";
61
+ @use "wui/carousel";
62
+ @use "wui/onboarding-checklist";
63
+ @use "wui/rating";
64
+ @use "wui/score-scale";
65
+ @use "wui/list-card";
66
+ @use "wui/money";
67
+ @use "wui/period-picker";
68
+ @use "wui/relative-time";
69
+ @use "wui/resizable";
70
+ @use "wui/rolling-number";
71
+ @use "wui/show-more";
72
+ @use "wui/truncate";
73
+ @use "wui/page-header-bar";
74
+ @use "wui/filter-popover";
75
+ @use "wui/metric-strip";
76
+ @use "wui/due-date";
77
+ @use "wui/cell";
82
78
 
83
79
  // Country flags are NOT part of this layer. The 245 `.wui-flag-*` rules are about 187KB raw
84
80
  // (38KB Brotli) of inlined SVG, and most sites never render a phone field or country picker.
85
81
  // A site that does imports `@webority/theme/scss/flags` once, after this file; without it
86
82
  // <wui-phone> and <wui-select mode="country"> show an empty grey box where the flag should be.
87
- @import "wui/shell";
88
- @import "wui/shell-parts";
89
- @import "wui/account-switcher";
90
- @import "wui/consent-banner";
91
- @import "wui/lightbox";
92
- @import "wui/toolbar";
93
- @import "wui/theme-toggle";
94
- @import "wui/auth-layout";
95
- @import "wui/floating";
96
- @import "wui/code-block";
97
- @import "wui/context-menu";
98
- @import "wui/navigation-menu";
99
- @import "wui/hover-card";
100
- @import "wui/notification-center";
101
- @import "wui/whats-new";
83
+ @use "wui/shell";
84
+ @use "wui/shell-parts";
85
+ @use "wui/account-switcher";
86
+ @use "wui/consent-banner";
87
+ @use "wui/lightbox";
88
+ @use "wui/toolbar";
89
+ @use "wui/theme-toggle";
90
+ @use "wui/auth-layout";
91
+ @use "wui/floating";
92
+ @use "wui/code-block";
93
+ @use "wui/context-menu";
94
+ @use "wui/navigation-menu";
95
+ @use "wui/hover-card";
96
+ @use "wui/notification-center";
97
+ @use "wui/whats-new";
102
98
  // Before field-floor, which restates the font sizes the size steps set.
103
- @import "wui/field-busy";
104
- @import "wui/field-sizes";
99
+ @use "wui/field-busy";
100
+ @use "wui/field-sizes";
105
101
  // After every component partial: restates each field's own font size with a 16px floor on touch screens.
106
- @import "wui/field-floor";
102
+ @use "wui/field-floor";
107
103
  // After every component partial: the shared focus ring and pressed wash settle ties with their hover rules.
108
- @import "wui/interaction";
104
+ @use "wui/interaction";
109
105
  // Last: restates the settled state of menus other partials style, so it must win.
110
- @import "wui/menu-motion";
106
+ @use "wui/menu-motion";
111
107
  // After menu-motion: reuses its zoom keyframes and must win over the overlay partials' modal rules.
112
- @import "wui/dialog-motion";
108
+ @use "wui/dialog-motion";
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Account switcher: shared by React <AppAccountSwitcher> and Razor <app-account-switcher>.
2
4
  // Rows are Bootstrap dropdown items inside the shell's user menu (.wui-usermenu-menu, see
3
5
  // _shell-parts.scss), so they inherit that menu's padding and hover. Every rule here is scoped
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Auth layout ──
2
4
  // AppAuthLayout / <app-auth-layout>: a sign-in page, centred by default. The form panel sits in
3
5
  // the middle of the page; `.wui-auth-split` (variant="split") adds an aside on the right from the
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Image picker, buttons look ──
2
4
  // AppImagePicker with controls="buttons" (and <app-image-picker controls="buttons">): a profile photo
3
5
  // (or its placeholder) beside the actions that change it. The crop dialog it opens is <wui-image-crop>
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Calendar: the <wui-calendar> element behind AppCalendar and <app-calendar>. The element is styled by its
2
4
  // tag, since a framework that sets `class` on it would replace any class the element added to itself.
3
5
  //
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Card options: `flush` (content runs to the card's rounded corners) and `divided`
2
4
  // (a rule under the header).
3
5
  //
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Card chrome — the header row, its title/subtitle, and the compact variant.
2
4
  //
3
5
  // Bootstrap supplies `.card`, `.card-header` and `.card-body`, and the brand
@@ -60,7 +62,7 @@
60
62
  color: var(--color-text);
61
63
  }
62
64
  // A title passed as a heading stays a heading for screen readers but takes the title's type.
63
- .card-title > :is(h1, h2, h3, h4, h5, h6) {
65
+ .card-title > :is(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6) {
64
66
  margin: 0;
65
67
  font: inherit;
66
68
  letter-spacing: inherit;
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Carousel ──
2
4
  // AppCarousel / <app-carousel> (a <wui-carousel> element): slides in a scroll-snap track with previous
3
5
  // and next buttons, a dot per page and an optional visible pause button. The track scrolls on its own
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Cell ──
2
4
  // AppCell / <app-cell>: one table or list cell with a primary line and an optional secondary line.
3
5
  // Markup contract, shared by both surfaces and the rules below:
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Chart surfaces: the sparkline, the chart card and the dashboard grid.
2
4
  // ============================================================================
3
5
  // The sparkline is plain SVG (AppSparkline, <app-sparkline>) and never loads the chart engine.
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Charts: the <wui-chart> element behind AppChart.
2
4
  //
3
5
  // Part of the wui-components layer; see _wui-components.scss for the load order. The element draws
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Structure card, search select, date picker, phone input.
2
4
  //
3
5
  // Part of the wui-components layer — see _wui-components.scss for the whole
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Code block ──
2
4
  // AppCodeBlock / <app-code-block> (a <wui-code-block> element): source with syntax colours, a header
3
5
  // with a Copy button, optional line numbers and wrapping. The element hides the plain
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Command palette ──
2
4
  // AppCommandPalette / <app-command-palette> / <wui-command-palette>: app-wide "search and jump".
3
5
  // The overlay is the shared modal (.wui-modal-shell, .wui-modal), with .wui-cmd-card on the
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Comment thread ──
2
4
  // AppCommentThread / <app-comment-thread> / <wui-comment-thread>: comments with an avatar, the
3
5
  // author and time, the body with mentions, reactions and the Reply, Edit and Delete actions;
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Feature-comparison table.
2
4
  //
3
5
  // Part of the wui-components layer; imported right after _display.scss. Order within the layer is load-bearing (see _wui-components.scss).
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Cookie consent banner ──
2
4
  // AppConsentBanner / <app-consent-banner> / <wui-consent-banner>: a card pinned to a bottom
3
5
  // corner, or a slim full-width bar along the bottom edge (position "bar", and every phone) asking
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Context menu ──
2
4
  // AppContextMenu / <app-context-menu> / <wui-context-menu>: a right-click menu over a region.
3
5
  // The panel is a Bootstrap .dropdown-menu with .dropdown-item rows, so the look, the danger tone
@@ -1,3 +1,6 @@
1
+ @use "../config" as *;
2
+ @use "tone-pill" as *;
3
+
1
4
  // Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
2
5
  // Checkbox & radio, field/input, status badge, choice chip.
3
6
  //
@@ -831,9 +834,6 @@ form .wui-field-message:empty {
831
834
  pointer-events: none;
832
835
  }
833
836
 
834
- // The trailing error glyph, shared by every field that shows one (the phone shell draws it too).
835
- $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F8285A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
836
-
837
837
  // Trailing error glyph on a PLAIN field only (child combinator). Shell-wrapped
838
838
  // inputs sit one level deeper and keep their own right edge.
839
839
  // Note: background-image here re-applies after the shared invalid rule zeroed BS's SVG.