@webority/theme 0.150.0 → 0.153.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 (115) hide show
  1. package/README.md +52 -17
  2. package/dist/purge-safelist.json +20 -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 -2
  7. package/scss/_bootstrap-css.scss +40 -0
  8. package/scss/_bootstrap.generated.scss +1 -2
  9. package/scss/_components.scss +157 -55
  10. package/scss/_config.scss +16 -0
  11. package/scss/_marketing.scss +15 -15
  12. package/scss/_tokens.generated.scss +26 -1
  13. package/scss/_tokens.scss +3 -3
  14. package/scss/_variables.scss +13 -35
  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 +8 -6
  21. package/scss/wui/_card-options.scss +2 -0
  22. package/scss/wui/_card.scss +6 -4
  23. package/scss/wui/_carousel.scss +5 -3
  24. package/scss/wui/_cell.scss +2 -0
  25. package/scss/wui/_chart-card.scss +2 -0
  26. package/scss/wui/_chart.scss +6 -4
  27. package/scss/wui/_choice.scss +50 -43
  28. package/scss/wui/_code-block.scss +2 -0
  29. package/scss/wui/_command-palette.scss +4 -2
  30. package/scss/wui/_comment-thread.scss +4 -2
  31. package/scss/wui/_compare-table.scss +29 -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 +53 -51
  35. package/scss/wui/_data.scss +28 -16
  36. package/scss/wui/_detail-pane.scss +2 -0
  37. package/scss/wui/_dialog-motion.scss +6 -4
  38. package/scss/wui/_disclosure.scss +6 -4
  39. package/scss/wui/_display.scss +39 -23
  40. package/scss/wui/_dock.scss +8 -6
  41. package/scss/wui/_drawer.scss +4 -2
  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 +3 -1
  45. package/scss/wui/_field-floor.scss +4 -1
  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 +9 -5
  49. package/scss/wui/_filter-popover.scss +2 -0
  50. package/scss/wui/_floating.scss +2 -0
  51. package/scss/wui/_flow.scss +17 -13
  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 +4 -2
  57. package/scss/wui/_interaction.scss +3 -2
  58. package/scss/wui/_kanban.scss +18 -6
  59. package/scss/wui/_lightbox.scss +4 -2
  60. package/scss/wui/_list-card.scss +2 -0
  61. package/scss/wui/_markdown.scss +4 -1
  62. package/scss/wui/_media.scss +50 -48
  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 +3 -1
  67. package/scss/wui/_money.scss +2 -0
  68. package/scss/wui/_nav-list.scss +2 -0
  69. package/scss/wui/_navigation-menu.scss +3 -1
  70. package/scss/wui/_navigation.scss +70 -18
  71. package/scss/wui/_notification-center.scss +5 -3
  72. package/scss/wui/_onboarding-checklist.scss +3 -1
  73. package/scss/wui/_org-tree.scss +2 -0
  74. package/scss/wui/_overlays.scss +30 -40
  75. package/scss/wui/_page-header-bar.scss +2 -0
  76. package/scss/wui/_pagination.scss +6 -4
  77. package/scss/wui/_pending.scss +2 -0
  78. package/scss/wui/_period-picker.scss +2 -0
  79. package/scss/wui/_rating.scss +3 -1
  80. package/scss/wui/_record-pager.scss +2 -0
  81. package/scss/wui/_relative-time.scss +2 -0
  82. package/scss/wui/_resizable.scss +3 -1
  83. package/scss/wui/_rich-text.scss +13 -7
  84. package/scss/wui/_rolling-number.scss +2 -0
  85. package/scss/wui/_score-scale.scss +5 -3
  86. package/scss/wui/_scrollbar.scss +2 -0
  87. package/scss/wui/_section-lead-capture.scss +2 -0
  88. package/scss/wui/_sections.scss +5 -2
  89. package/scss/wui/_select.scss +2 -0
  90. package/scss/wui/_shell-parts.scss +55 -5
  91. package/scss/wui/_shell.scss +58 -57
  92. package/scss/wui/_shortcuts.scss +2 -0
  93. package/scss/wui/_show-more.scss +2 -0
  94. package/scss/wui/_sortable.scss +4 -2
  95. package/scss/wui/_split-view.scss +4 -2
  96. package/scss/wui/_support.scss +2 -0
  97. package/scss/wui/_table-server.scss +3 -1
  98. package/scss/wui/_theme-toggle.scss +3 -1
  99. package/scss/wui/_tone-pill.scss +2 -0
  100. package/scss/wui/_toolbar.scss +9 -7
  101. package/scss/wui/_tour.scss +9 -9
  102. package/scss/wui/_tree.scss +5 -3
  103. package/scss/wui/_truncate.scss +2 -0
  104. package/scss/wui/_typography.scss +3 -0
  105. package/scss/wui/_utilities.scss +31 -11
  106. package/scss/wui/_whats-new.scss +2 -0
  107. package/scss/wui/_workspace.scss +4 -2
  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 +3 -1
  111. package/scss/wui/tour/_media.scss +2 -0
  112. package/scss/wui/tour/_motion.scss +6 -4
  113. package/scss/wui/tour/_placement.scss +2 -0
  114. package/scss/wui/tour/_progress.scss +2 -0
  115. package/token-meanings.json +2 -0
@@ -1,3 +1,5 @@
1
+ @use "config" as *;
2
+
1
3
  // =====================================================================
2
4
  // Webority UI — shared portal / control CSS (AFTER Bootstrap).
3
5
  // Marketing section/hero/motion helpers: scss/_marketing.scss (opt-in).
@@ -9,7 +11,7 @@
9
11
  // A button is exactly as tall as a field of the same size (the --wui-control-md ladder, 32/36/44px), so a
10
12
  // button beside an input lines up in every form row. Heights are min-height with the label flex-centred; sm/lg
11
13
  // set theirs in their size blocks below, and so does a button sized by its group (.btn-group-sm/-lg).
12
- .btn:not(.btn-sm):not(.btn-lg):not(.btn-group-sm > .btn):not(.btn-group-lg > .btn):not(.btn-pill):not(.btn-pill-sm):not(.u-action):not(
14
+ .btn:not(.btn-sm):not(.btn-lg):not(.btn-xl):not(.btn-group-sm > .btn):not(.btn-group-lg > .btn):not(.btn-pill):not(.btn-pill-sm):not(.u-action):not(
13
15
  .btn-icon
14
16
  ) {
15
17
  // The height is the field height and the label is flex-centred, so no vertical padding: it
@@ -21,7 +23,7 @@
21
23
  min-height: var(--wui-control-md);
22
24
  }
23
25
 
24
- // Tactile press feedback — every variant AND every size (sm/md/lg). Kept
26
+ // Tactile press feedback — every variant AND every size (sm/md/lg/xl). Kept
25
27
  // separate from the height rule above so sm/lg (which opt out of the shared
26
28
  // control height) still get the nudge. A signal, not a depth cue.
27
29
  .btn:not(.btn-pill):not(.btn-pill-sm):not(.u-action):not(.btn-icon):active:not(:disabled) {
@@ -197,8 +199,8 @@
197
199
  // shouldn't shout like a solid .btn-danger). Mirrors .btn-soft-primary exactly: low-alpha
198
200
  // tint deepening on hover/press, no border — but keyed off the danger tokens. The label
199
201
  // uses --color-danger-text (the AA-safe error red, lifted in dark mode to read on a dark surface),
200
- // not the brighter --color-danger. Disabled falls through to the shared neutral-grey
201
- // state below (it is not .btn-danger), like .btn-soft-primary. A product sets another label
202
+ // not the brighter --color-danger. Disabled fades its own colours (the shared
203
+ // disabled rule below). A product sets another label
202
204
  // ink with --wui-btn-secondary-danger-ink (e.g. --color-danger-text-on-soft in dark mode).
203
205
  .btn-soft-danger {
204
206
  --bs-btn-color: var(--wui-btn-secondary-danger-ink, var(--color-danger-text));
@@ -306,28 +308,20 @@
306
308
  --bs-btn-disabled-border-color: rgba(255, 255, 255, 0.3);
307
309
  }
308
310
 
309
- // Themed disabled state (default). Bootstrap's own disabled look is just the
310
- // variant's colour at --bs-btn-disabled-opacity (.65) — barely different from the active
311
- // button on a tinted brand palette. Give the ordinary case a real desaturated/muted look
312
- // instead, reusing the same tokens .input:disabled already uses so a disabled button and
313
- // a disabled field read as the same state.
314
- //
315
- // Applies to EVERY variant except .btn-danger — matching the design reference, where a
316
- // disabled button of any kind reads as one neutral greyed-out state, not a faded tint of
317
- // its own colour. (Primary would otherwise fall back to a washed-out indigo, secondary to a
318
- // faint brand tint.) .btn-danger keeps its own faded-red disabled (defined above), since the
319
- // reference doesn't cover it and a greyed destructive button loses its warning read.
320
- .btn:disabled:not(.btn-danger):not(.is-loading),
321
- .btn.disabled:not(.btn-danger):not(.is-loading) {
322
- background-color: var(--color-bg-muted);
323
- border-color: var(--color-border);
324
- color: var(--color-text-subtle);
325
- opacity: 1;
311
+ // Disabled: the button keeps its own fill, border and label (the resolved --bs-btn-* of whichever
312
+ // tone and style it is) at the theme's one disabled opacity, so it stays visible on the page and on
313
+ // a card instead of turning into a neutral grey that matches them. Loading is separate, below.
314
+ .btn:disabled:not(.is-loading),
315
+ .btn.disabled:not(.is-loading) {
316
+ background-color: var(--bs-btn-bg);
317
+ border-color: var(--bs-btn-border-color);
318
+ color: var(--bs-btn-color);
319
+ opacity: var(--wui-disabled-opacity);
326
320
  cursor: not-allowed;
327
321
  }
328
322
 
329
323
  // Loading is BUSY, not disabled-by-choice: the button keeps its own identity as a LIGHT tint
330
- // of its variant, never the neutral disabled grey above. It stays non-interactive (still
324
+ // of its variant, never the faded disabled state above. It stays non-interactive (still
331
325
  // `disabled` for forms/a11y) but reads as "working". Solid variants (primary/danger/warning)
332
326
  // tint from their fill and take the fill colour as the label + spinner (spinner is
333
327
  // currentColor). Higher specificity than the grey rule, and placed after it, so it wins.
@@ -444,6 +438,40 @@
444
438
  justify-content: center;
445
439
  min-height: var(--wui-control-lg);
446
440
  }
441
+ // Touch screens: a small or text button grows to the touch target so a thumb can hit it. The box grows
442
+ // (not a hit-area pseudo-element) because .btn clips overflow and uses ::before for the sheen. A text
443
+ // button has no side padding, so it also gets a minimum width. Icon-only buttons keep their disc (_utilities.scss).
444
+ @media (pointer: coarse) {
445
+ .btn-sm:not(.btn-icon),
446
+ .btn-group-sm > .btn:not(.btn-icon) {
447
+ min-height: var(--wui-touch-target);
448
+ }
449
+
450
+ :is(.btn-link-primary, .btn-link-success, .btn-link-warning, .btn-link-danger, .btn-link-info, .btn-link-neutral):not(.btn-icon) {
451
+ min-width: var(--wui-touch-target);
452
+ min-height: var(--wui-touch-target);
453
+ }
454
+ }
455
+ // Extra large: a marketing call to action. 55px tall (--wui-control-lg) with --wui-fs-lg semibold text; below the
456
+ // Bootstrap lg breakpoint it is a base-size medium button as tall as the default field.
457
+ .btn-xl:not(.btn-icon) {
458
+ --wui-btn-height: var(--wui-control-lg);
459
+ --bs-btn-padding-y: 0;
460
+ --bs-btn-border-radius: var(--wui-button-lg-radius);
461
+ --bs-btn-font-size: var(--wui-fs-lg);
462
+ --bs-btn-font-weight: var(--wui-fw-semibold);
463
+ display: inline-flex;
464
+ align-items: center;
465
+ justify-content: center;
466
+ min-height: var(--wui-btn-height);
467
+ }
468
+ @media (max-width: 991.98px) {
469
+ .btn-xl:not(.btn-icon) {
470
+ --wui-btn-height: var(--wui-control-md);
471
+ --bs-btn-font-size: var(--wui-fs-base);
472
+ --bs-btn-font-weight: var(--wui-fw-medium);
473
+ }
474
+ }
447
475
 
448
476
  // ---- Hover animation options (opt-in modifiers) ---------------------
449
477
  // Every .btn animates on hover. The DEFAULT is the royal sheen sweep; switch a
@@ -488,7 +516,7 @@
488
516
  transparent
489
517
  );
490
518
  transform: translateX(-200%) skewX(-18deg);
491
- transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
519
+ transition: transform calc(var(--wui-duration-slow) * 2) var(--wui-ease-out);
492
520
  pointer-events: none;
493
521
  }
494
522
  .btn:not(.btn-icon):not(.u-action):not([class*="btn-anim-"]):hover:not(:disabled)::before,
@@ -511,8 +539,8 @@
511
539
  transform: scaleX(0);
512
540
  transform-origin: left center;
513
541
  transition:
514
- transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
515
- opacity 0.35s ease;
542
+ transform var(--wui-duration-slow) var(--wui-ease-out),
543
+ opacity var(--wui-duration-slow) var(--wui-ease-ui);
516
544
  pointer-events: none;
517
545
  }
518
546
  .btn-anim-fill:hover:not(:disabled)::before {
@@ -534,8 +562,8 @@
534
562
  opacity: 0;
535
563
  transform: translate(-50%, -50%);
536
564
  transition:
537
- width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
538
- opacity 0.45s ease;
565
+ width var(--wui-duration-slow) var(--wui-ease-out),
566
+ opacity var(--wui-duration-slow) var(--wui-ease-ui);
539
567
  pointer-events: none;
540
568
  }
541
569
  .btn-anim-expand:hover:not(:disabled)::before {
@@ -548,8 +576,8 @@
548
576
  // through the resolved --bs-btn fill to currentColor so it works on every variant.
549
577
  .btn-anim-glow {
550
578
  transition:
551
- box-shadow 0.3s ease,
552
- transform 0.3s ease;
579
+ box-shadow var(--wui-duration-default) var(--wui-ease-ui),
580
+ transform var(--wui-duration-default) var(--wui-ease-ui);
553
581
  }
554
582
  .btn-anim-glow:hover:not(:disabled) {
555
583
  box-shadow: 0 4px 18px
@@ -581,16 +609,30 @@
581
609
  // How far the arrow sits inside its well: (well - icon) / 2, with the 16, 14 and 20px icons.
582
610
  --wui-btn-well-pad: 6px;
583
611
  }
584
- :is(.btn-anim-roll, .wui-btn-pin-end).btn-sm {
612
+ :is(.btn-anim-roll, .wui-btn-pin-end).btn-sm,
613
+ .btn-group-sm > .btn:is(.btn-anim-roll, .wui-btn-pin-end) {
585
614
  --wui-btn-roll-well: 22px;
586
615
  --wui-btn-pin-inset: 6px;
587
616
  --wui-btn-well-pad: 4px;
588
617
  }
589
- :is(.btn-anim-roll, .wui-btn-pin-end).btn-lg {
618
+ :is(.btn-anim-roll, .wui-btn-pin-end).btn-lg,
619
+ .btn-group-lg > .btn:is(.btn-anim-roll, .wui-btn-pin-end) {
590
620
  --wui-btn-roll-well: 34px;
591
621
  --wui-btn-pin-inset: 10px;
592
622
  --wui-btn-well-pad: 7px;
593
623
  }
624
+ :is(.btn-anim-roll, .wui-btn-pin-end).btn-xl {
625
+ --wui-btn-roll-well: 34px;
626
+ --wui-btn-pin-inset: 10px;
627
+ --wui-btn-well-pad: 7px;
628
+ }
629
+ @media (max-width: 991.98px) {
630
+ :is(.btn-anim-roll, .wui-btn-pin-end).btn-xl {
631
+ --wui-btn-roll-well: 28px;
632
+ --wui-btn-pin-inset: 8px;
633
+ --wui-btn-well-pad: 6px;
634
+ }
635
+ }
594
636
  .btn-anim-roll:hover:not(:disabled) {
595
637
  transform: none;
596
638
  }
@@ -603,7 +645,7 @@
603
645
  .wui-btn-roll__a,
604
646
  .wui-btn-roll__b {
605
647
  display: block;
606
- transition: transform 0.5s var(--wui-btn-roll-ease);
648
+ transition: transform var(--wui-duration-slow) var(--wui-btn-roll-ease);
607
649
  }
608
650
  .wui-btn-roll__b {
609
651
  position: absolute;
@@ -629,7 +671,7 @@
629
671
  }
630
672
  .wui-btn-roll-ico > * {
631
673
  grid-area: 1 / 1;
632
- transition: transform 0.5s var(--wui-btn-roll-ease);
674
+ transition: transform var(--wui-duration-slow) var(--wui-btn-roll-ease);
633
675
  }
634
676
  .wui-btn-roll-ico > .wui-btn-roll-ico__next {
635
677
  transform: translateX(calc(var(--wui-btn-roll-well) * -1));
@@ -713,7 +755,7 @@
713
755
  --bs-dropdown-link-active-bg: var(--color-primary-soft);
714
756
  --bs-dropdown-header-color: var(--color-text-muted);
715
757
  --bs-dropdown-header-padding-x: 0.625rem;
716
- --bs-dropdown-header-padding-y: 0.25rem;
758
+ --bs-dropdown-header-padding-y: var(--wui-space-xs);
717
759
  box-shadow: var(--wui-shadow-popover);
718
760
  // A long menu (account / workspace lists) must never spill past the screen and clip its
719
761
  // last rows: cap the panel to the viewport and scroll INSIDE it. The room subtracted
@@ -765,7 +807,7 @@
765
807
  border-radius: var(--wui-radius-sm);
766
808
  font-size: 0.875rem;
767
809
  font-weight: 500;
768
- transition: background-color 0.12s ease, color 0.12s ease;
810
+ transition: background-color var(--wui-duration-fast) var(--wui-ease-ui), color var(--wui-duration-fast) var(--wui-ease-ui);
769
811
 
770
812
  // Leading glyph: quiet by default, brand-tinted on hover. The library's own icons
771
813
  // are .wui-icon SVGs; bare i/svg keeps product-supplied glyph nodes in step.
@@ -773,7 +815,7 @@
773
815
  flex-shrink: 0;
774
816
  font-size: 1rem;
775
817
  color: var(--color-text-subtle);
776
- transition: color 0.12s ease;
818
+ transition: color var(--wui-duration-fast) var(--wui-ease-ui);
777
819
  }
778
820
  &:hover .wui-icon, &:hover i, &:hover svg,
779
821
  &:focus .wui-icon, &:focus i, &:focus svg {
@@ -801,6 +843,20 @@
801
843
  }
802
844
  }
803
845
 
846
+ // Two-line row (an item `description`): label over a muted hint, the body shrinks so a menuWidth menu wraps it.
847
+ .dropdown-item .wui-dropdown-item-body {
848
+ display: flex;
849
+ flex-direction: column;
850
+ gap: var(--wui-space-xxs);
851
+ min-width: 0;
852
+ }
853
+ .dropdown-item .wui-dropdown-item-desc {
854
+ color: var(--color-text-muted);
855
+ font-size: var(--wui-fs-xs);
856
+ font-weight: var(--wui-fw-normal);
857
+ line-height: var(--wui-lh-body);
858
+ }
859
+
804
860
  // Listed but unchoosable (AppDropdown disabled): quiet, no hover or press tint.
805
861
  .dropdown-item.wui-dropdown-item-disabled,
806
862
  .dropdown-item.wui-dropdown-item-disabled:hover,
@@ -822,7 +878,42 @@
822
878
  line-height: 1.4;
823
879
  }
824
880
  .dropdown-menu .dropdown-header:not(:first-child) {
825
- margin-top: 0.25rem;
881
+ margin-top: var(--wui-space-xs);
882
+ }
883
+ // Searchable AppDropdown (searchable): the search block stays at the top while a long menu scrolls.
884
+ .wui-dropdown-menu-searchable {
885
+ max-height: 22rem;
886
+ overflow-y: auto;
887
+ }
888
+ .wui-dropdown-search {
889
+ display: flex;
890
+ align-items: center;
891
+ gap: var(--wui-space-sm);
892
+ margin: var(--wui-space-xxs) var(--wui-space-xs) var(--wui-space-xs);
893
+ padding: var(--wui-space-sm);
894
+ background: var(--color-bg-subtle);
895
+ border: 1px solid var(--color-border-subtle);
896
+ border-radius: var(--wui-radius-md);
897
+ corner-shape: squircle;
898
+ color: var(--color-text-muted);
899
+ position: sticky;
900
+ top: 0;
901
+ z-index: 1;
902
+ }
903
+ .wui-dropdown-search-input {
904
+ flex: 1 1 auto;
905
+ min-width: 0;
906
+ border: none;
907
+ background: transparent;
908
+ color: var(--color-text);
909
+ font-size: var(--wui-fs-xs);
910
+ outline: none;
911
+ }
912
+ .wui-dropdown-empty {
913
+ padding: var(--wui-space-md) var(--wui-space-sm);
914
+ text-align: center;
915
+ font-size: var(--wui-fs-xs);
916
+ color: var(--color-text-muted);
826
917
  }
827
918
 
828
919
  // An item that hides from a width up (AppDropdown item `hiddenFrom`): the wide screen shows the
@@ -977,13 +1068,6 @@
977
1068
  outline-offset: var(--wui-focus-ring-offset);
978
1069
  box-shadow: none;
979
1070
  }
980
- .btn.btn-ghost-primary.btn-ghost-primary:disabled,
981
- .btn.btn-ghost-primary.btn-ghost-primary.disabled {
982
- background-color: transparent;
983
- border-color: transparent;
984
- color: var(--color-primary-text);
985
- opacity: var(--wui-disabled-opacity);
986
- }
987
1071
  .btn.btn-ghost-primary.btn-ghost-primary.is-loading:disabled,
988
1072
  .btn.btn-ghost-primary.btn-ghost-primary.is-loading.disabled,
989
1073
  .btn.btn-ghost-success.btn-ghost-success.is-loading:disabled,
@@ -1170,21 +1254,39 @@
1170
1254
  --wui-btn-text-icon: 14px;
1171
1255
  }
1172
1256
  .btn.btn-link-primary.btn-sm,
1257
+ .btn-group-sm > .btn.btn-link-primary,
1173
1258
  .btn.btn-link-success.btn-sm,
1259
+ .btn-group-sm > .btn.btn-link-success,
1174
1260
  .btn.btn-link-warning.btn-sm,
1261
+ .btn-group-sm > .btn.btn-link-warning,
1175
1262
  .btn.btn-link-danger.btn-sm,
1263
+ .btn-group-sm > .btn.btn-link-danger,
1176
1264
  .btn.btn-link-info.btn-sm,
1177
- .btn.btn-link-neutral.btn-sm {
1265
+ .btn-group-sm > .btn.btn-link-info,
1266
+ .btn.btn-link-neutral.btn-sm,
1267
+ .btn-group-sm > .btn.btn-link-neutral {
1178
1268
  --wui-btn-roll-well: 18px;
1179
1269
  --wui-btn-well-pad: 3px;
1180
1270
  --wui-btn-text-icon: 12px;
1181
1271
  }
1182
1272
  .btn.btn-link-primary.btn-lg,
1273
+ .btn-group-lg > .btn.btn-link-primary,
1183
1274
  .btn.btn-link-success.btn-lg,
1275
+ .btn-group-lg > .btn.btn-link-success,
1184
1276
  .btn.btn-link-warning.btn-lg,
1277
+ .btn-group-lg > .btn.btn-link-warning,
1185
1278
  .btn.btn-link-danger.btn-lg,
1279
+ .btn-group-lg > .btn.btn-link-danger,
1186
1280
  .btn.btn-link-info.btn-lg,
1187
- .btn.btn-link-neutral.btn-lg {
1281
+ .btn-group-lg > .btn.btn-link-info,
1282
+ .btn.btn-link-neutral.btn-lg,
1283
+ .btn-group-lg > .btn.btn-link-neutral,
1284
+ .btn.btn-link-primary.btn-xl,
1285
+ .btn.btn-link-success.btn-xl,
1286
+ .btn.btn-link-warning.btn-xl,
1287
+ .btn.btn-link-danger.btn-xl,
1288
+ .btn.btn-link-info.btn-xl,
1289
+ .btn.btn-link-neutral.btn-xl {
1188
1290
  --wui-btn-roll-well: 22px;
1189
1291
  --wui-btn-well-pad: 3px;
1190
1292
  --wui-btn-text-icon: 16px;
@@ -1237,7 +1339,7 @@
1237
1339
  // nudges 1px on hover (tactile signal). API prop stays `lifted` / class
1238
1340
  // `card-lifted` so call sites don't break.
1239
1341
  .card-lifted {
1240
- transition: transform 0.2s var(--wui-ease-out);
1342
+ transition: transform var(--wui-duration-default) var(--wui-ease-out);
1241
1343
  &:hover {
1242
1344
  transform: translateY(-1px);
1243
1345
  }
@@ -1304,8 +1406,8 @@
1304
1406
  color: var(--color-text-muted);
1305
1407
  cursor: pointer;
1306
1408
  transition:
1307
- background-color 0.12s ease,
1308
- color 0.12s ease;
1409
+ background-color var(--wui-duration-fast) var(--wui-ease-ui),
1410
+ color var(--wui-duration-fast) var(--wui-ease-ui);
1309
1411
  }
1310
1412
  .card-header-actions + .card-close {
1311
1413
  margin-left: 0.25rem;
@@ -1349,7 +1451,7 @@
1349
1451
  background: var(--color-surface);
1350
1452
  border: 1px solid var(--color-border);
1351
1453
  border-radius: var(--wui-radius-md);
1352
- transition: border-color 0.15s ease;
1454
+ transition: border-color var(--wui-duration-fast) var(--wui-ease-ui);
1353
1455
  }
1354
1456
  .wui-input-group:hover:not(:focus-within):not(.is-disabled) {
1355
1457
  border-color: var(--color-border-strong);
@@ -1413,7 +1515,7 @@ button.wui-input-leading {
1413
1515
  padding: 0;
1414
1516
  pointer-events: auto;
1415
1517
  cursor: pointer;
1416
- transition: color 0.15s ease;
1518
+ transition: color var(--wui-duration-fast) var(--wui-ease-ui);
1417
1519
  }
1418
1520
  button.wui-input-trailing:hover,
1419
1521
  button.wui-input-leading:hover {
@@ -1449,7 +1551,7 @@ button.wui-input-leading:focus-visible {
1449
1551
  // Lightweight tactile alternative to a Material ripple. Add to any
1450
1552
  // pressable element (button, card link, chip). 80ms ease-out.
1451
1553
  .press-feedback {
1452
- transition: transform 80ms ease-out;
1554
+ transition: transform var(--wui-duration-fast) var(--wui-ease-out);
1453
1555
  }
1454
1556
  .press-feedback:active:not(:disabled) {
1455
1557
  transform: scale(0.96);
@@ -1457,8 +1559,8 @@ button.wui-input-leading:focus-visible {
1457
1559
 
1458
1560
  // ---- Subtle hover lift -----------------------------------------------
1459
1561
  .lift-on-hover {
1460
- transition: transform 0.2s var(--wui-ease-out),
1461
- box-shadow 0.2s var(--wui-ease-out);
1562
+ transition: transform var(--wui-duration-default) var(--wui-ease-out),
1563
+ box-shadow var(--wui-duration-default) var(--wui-ease-out);
1462
1564
  }
1463
1565
  .lift-on-hover:hover {
1464
1566
  transform: translateY(-1px);
@@ -1504,7 +1606,7 @@ body::-webkit-scrollbar-thumb {
1504
1606
  background-clip: padding-box;
1505
1607
  min-height: 36px;
1506
1608
  min-width: 36px;
1507
- transition: background-color 220ms ease;
1609
+ transition: background-color var(--wui-duration-default) var(--wui-ease-ui);
1508
1610
  }
1509
1611
  html::-webkit-scrollbar-thumb:hover,
1510
1612
  body::-webkit-scrollbar-thumb:hover {
@@ -0,0 +1,16 @@
1
+ // The theme's one configurable module: the library variables, then Bootstrap's layers that emit no CSS.
2
+ // A brand configures it once, before anything else loads it:
3
+ // $primary: #0EA5E9;
4
+ // @use "@webority/theme/scss/config" with ($primary: $primary);
5
+ // Every theme partial reads it with `@use "../config" as *`, so the configured values reach all of them.
6
+ // Bootstrap 5.3.8 ships no Sass modules, so its layers are imported inside this module; a configured
7
+ // Bootstrap name ($primary, $grid-breakpoints) reaches them through the nested import.
8
+ @forward "variables";
9
+ @use "variables" as *;
10
+
11
+ @import "bootstrap/scss/functions";
12
+ @import "bootstrap/scss/variables";
13
+ @import "bootstrap/scss/variables-dark";
14
+ @import "bootstrap/scss/maps";
15
+ @import "bootstrap/scss/mixins";
16
+ @import "bootstrap/scss/utilities";
@@ -1,12 +1,12 @@
1
1
  // =====================================================================
2
2
  // Webority UI — marketing / editorial surface helpers (OPT-IN).
3
- // Not part of the default theme chain. Import AFTER core theme when a
3
+ // Not part of the default theme chain. Load it after the core theme when a
4
4
  // marketing site needs section rhythm, hero chrome, pill CTAs, or scroll
5
- // motion — portals should omit this file.
5
+ // motion; portals omit this file.
6
6
  //
7
- // @import "@webority/theme/scss/components";
8
- // @import "@webority/theme/scss/wui-components";
9
- // @import "@webority/theme/scss/marketing";
7
+ // @use "@webority/theme/scss/components";
8
+ // @use "@webority/theme/scss/wui-components";
9
+ // @use "@webority/theme/scss/marketing";
10
10
  // =====================================================================
11
11
 
12
12
  // ---- Section helpers ------------------------------------------------
@@ -149,7 +149,7 @@
149
149
  background-position-x: 100%;
150
150
  background-position-y: 100%;
151
151
  background-size: 0 1px;
152
- transition: background-size 500ms cubic-bezier(0.4, 0, 0.2, 1);
152
+ transition: background-size var(--wui-duration-slow) var(--wui-ease-in-out);
153
153
  }
154
154
  @media (hover: hover) {
155
155
  .link-wipe:hover {
@@ -184,12 +184,12 @@
184
184
  // ---- Page entry fade -------------------------------------------------
185
185
  // Apply to <main> in _Layout so every page entry has a polite fade-up.
186
186
  .page-fade-in {
187
- animation: pageFadeIn 0.25s var(--wui-ease-ui) backwards;
187
+ animation: pageFadeIn var(--wui-duration-default) var(--wui-ease-ui) backwards;
188
188
  }
189
189
 
190
190
  // ---- Single-element fade-in ------------------------------------------
191
191
  .fade-in {
192
- animation: fadeIn 220ms var(--wui-ease-out);
192
+ animation: fadeIn var(--wui-duration-default) var(--wui-ease-out);
193
193
  }
194
194
 
195
195
  // ---- Stagger groups --------------------------------------------------
@@ -197,7 +197,7 @@
197
197
  // cascade in 40ms apart, capped at 12 children. For bigger groups,
198
198
  // use the IntersectionObserver-driven `[data-reveal]` pattern below.
199
199
  .stagger-children > * {
200
- animation: staggerRise 360ms var(--wui-ease-out) backwards;
200
+ animation: staggerRise var(--wui-duration-slow) var(--wui-ease-out) backwards;
201
201
  }
202
202
  .stagger-children > *:nth-child(1) { animation-delay: 0ms; }
203
203
  .stagger-children > *:nth-child(2) { animation-delay: 40ms; }
@@ -217,7 +217,7 @@
217
217
  // individual items inside a non-stagger-children container.
218
218
  .stagger-item {
219
219
  opacity: 0;
220
- animation: rise 320ms var(--wui-ease-out) forwards;
220
+ animation: rise var(--wui-duration-default) var(--wui-ease-out) forwards;
221
221
  animation-delay: var(--stagger, 0ms);
222
222
  }
223
223
 
@@ -231,7 +231,7 @@
231
231
  // </div>
232
232
  // </div>
233
233
  .animate-marquee {
234
- animation: marketing-marquee 32s linear infinite;
234
+ animation: marketing-marquee calc(var(--wui-duration-slow) * 80) var(--wui-ease-linear) infinite;
235
235
  }
236
236
 
237
237
  // ---- Scroll-triggered reveals (paired with wwwroot/js/reveal.js) -----
@@ -243,8 +243,8 @@
243
243
  opacity: 0;
244
244
  transform: translateY(8px);
245
245
  transition:
246
- opacity 540ms var(--wui-ease-out),
247
- transform 540ms var(--wui-ease-out);
246
+ opacity var(--wui-duration-slow) var(--wui-ease-out),
247
+ transform var(--wui-duration-slow) var(--wui-ease-out);
248
248
  will-change: opacity, transform;
249
249
  }
250
250
  [data-reveal].is-visible {
@@ -256,8 +256,8 @@
256
256
  opacity: 0;
257
257
  transform: translateY(8px);
258
258
  transition:
259
- opacity 540ms var(--wui-ease-out),
260
- transform 540ms var(--wui-ease-out);
259
+ opacity var(--wui-duration-slow) var(--wui-ease-out),
260
+ transform var(--wui-duration-slow) var(--wui-ease-out);
261
261
  }
262
262
  [data-reveal-stagger].is-visible > * {
263
263
  opacity: 1;
@@ -1,4 +1,4 @@
1
- // Generated by @webority/tokens 0.150.0 from its token source. Do not edit; run webority brand --library.
1
+ // Generated by @webority/tokens 0.153.0 from its token source. Do not edit; run webority brand --library.
2
2
 
3
3
  :root {
4
4
  --wui-primary: #4F46E5;
@@ -185,14 +185,17 @@
185
185
  --wui-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
186
186
  --wui-ease-ui: cubic-bezier(0.32, 0.72, 0, 1);
187
187
  --wui-ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
188
+ --wui-ease-linear: cubic-bezier(0, 0, 1, 1);
188
189
  --wui-section-sm: 80px;
189
190
  --wui-section-md: 96px;
190
191
  --wui-section-lg: 120px;
191
192
  --wui-control-sm: 35px;
192
193
  --wui-control-md: 45px;
193
194
  --wui-control-lg: 55px;
195
+ --wui-touch-target: 44px;
194
196
  --wui-container-max: 1512px;
195
197
  --wui-container-pad: 24px;
198
+ --wui-container-pad-xl: 88px;
196
199
  --wui-table-pad: 20px;
197
200
  --wui-z-dropdown: 1000;
198
201
  --wui-z-sticky: 1020;
@@ -323,6 +326,22 @@
323
326
  --color-chart-grid: var(--color-border);
324
327
  --color-chart-axis: var(--color-border-strong);
325
328
  --color-chart-label: var(--color-text-subtle);
329
+ --color-shell-bg: #1f2d5c;
330
+ --color-shell-bg-deep: #141e42;
331
+ --color-shell-bg-raised: #2c3f7a;
332
+ --color-shell-text: #c9d1e6;
333
+ --color-shell-text-strong: #FFFFFF;
334
+ --color-shell-text-muted: #8792b4;
335
+ --color-shell-accent: #f4a261;
336
+ --color-shell-accent-ring: color-mix(in srgb, #f4a261 25%, transparent);
337
+ --color-shell-hover: color-mix(in srgb, #FFFFFF 7%, transparent);
338
+ --color-shell-active: color-mix(in srgb, #FFFFFF 12%, transparent);
339
+ --color-shell-rule: color-mix(in srgb, #FFFFFF 10%, transparent);
340
+ --color-shell-fill-subtle: color-mix(in srgb, #FFFFFF 8%, transparent);
341
+ --color-shell-fill: color-mix(in srgb, #FFFFFF 12%, transparent);
342
+ --color-shell-fill-strong: color-mix(in srgb, #FFFFFF 18%, transparent);
343
+ --color-shell-border: color-mix(in srgb, #FFFFFF 22%, transparent);
344
+ --color-shell-border-strong: color-mix(in srgb, #FFFFFF 40%, transparent);
326
345
  --wui-close-filter: none;
327
346
  --wui-pressed-overlay: color-mix(in srgb, currentColor 12%, transparent);
328
347
  --wui-hero-gradient: radial-gradient(ellipse 120% 80% at 50% 30%, #818CF8 0%, #4F46E5 35%, #4338CA 75%, #312E81 100%);
@@ -382,6 +401,12 @@
382
401
  }
383
402
  }
384
403
 
404
+ @media (min-width: 1200px) {
405
+ :root {
406
+ --wui-container-pad: var(--wui-container-pad-xl);
407
+ }
408
+ }
409
+
385
410
  @media (max-width: 575.98px), (pointer: coarse) {
386
411
  :root {
387
412
  --wui-control-md: 45px;
package/scss/_tokens.scss CHANGED
@@ -1,4 +1,4 @@
1
- // The library's CSS custom properties, imported after Bootstrap: the names generated from the token
1
+ // The library's CSS custom properties, loaded after Bootstrap: the names generated from the token
2
2
  // source, then the few the token source does not generate.
3
- @import "tokens.generated";
4
- @import "wui-residual";
3
+ @use "tokens.generated";
4
+ @use "wui-residual";