@webority/theme 0.139.4 → 0.140.1
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/dist/purge-safelist.json +4 -0
- package/dist/runtime.mjs +2 -1
- package/dist/webority-theme.css +1 -1
- package/package.json +3 -2
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_tokens.generated.scss +1 -1
- package/scss/wui/_command-palette.scss +15 -0
- package/scss/wui/_sections.scss +91 -0
- package/scss/wui/_shell.scss +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.140.1",
|
|
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,13 +47,14 @@
|
|
|
47
47
|
"postcss": "^8.5.31"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@webority/tokens": "0.
|
|
50
|
+
"@webority/tokens": "0.140.1",
|
|
51
51
|
"bootstrap": "5.3.3",
|
|
52
52
|
"country-flag-icons": "^1.6.20",
|
|
53
53
|
"sass-embedded": "^1.97.0",
|
|
54
54
|
"vite": "^8.0.12"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
|
+
"test": "node --test runtime/productTheme.test.mjs",
|
|
57
58
|
"tokens": "node ../tokens/dist/webority.js brand --library --out ../tokens/dist --web scss/_tokens.generated.scss",
|
|
58
59
|
"tokens:check": "node ../tokens/dist/webority.js brand --library --out ../tokens/dist --web scss/_tokens.generated.scss --check",
|
|
59
60
|
"build": "corepack pnpm run tokens && sass index.scss dist/webority-theme.css --load-path=node_modules --style=compressed --no-source-map --quiet-deps --silence-deprecation=if-function && sass scss/_flags.scss dist/webority-flags.css --style=compressed --no-source-map --quiet && sass scss/_runtime-brand.scss dist/webority-runtime-brand.css --style=compressed --no-source-map --quiet && node ../../scripts/force-state-selectors.mjs dist/webority-theme.css && node ../../scripts/gen-purge-safelist.mjs && node ../../scripts/sync-rcl-assets.mjs theme && vite build --config vite.cli.config.js && node scripts/exportCanvasTheme.mjs"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by @webority/tokens 0.
|
|
1
|
+
// Generated by @webority/tokens 0.140.1 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;
|
|
@@ -63,6 +63,21 @@ wui-command-palette {
|
|
|
63
63
|
color: var(--color-primary-text);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
// The group pills under the search: one row that scrolls sideways rather than wrapping. The element
|
|
67
|
+
// sets hidden on it for a nested page, which display flex would otherwise keep showing.
|
|
68
|
+
.wui-cmd-tabs {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex: 0 0 auto;
|
|
71
|
+
flex-wrap: nowrap;
|
|
72
|
+
gap: var(--wui-space-xs);
|
|
73
|
+
padding-inline: var(--wui-space-lg);
|
|
74
|
+
margin-bottom: var(--wui-space-xs);
|
|
75
|
+
overflow-x: auto;
|
|
76
|
+
}
|
|
77
|
+
.wui-cmd-tabs[hidden] {
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
66
81
|
// Nested pages: the Back button and the path to the open page. The element fills the trail and
|
|
67
82
|
// shows the bar only while a page is open.
|
|
68
83
|
.wui-cmd-crumbs {
|
package/scss/wui/_sections.scss
CHANGED
|
@@ -346,6 +346,62 @@
|
|
|
346
346
|
margin-inline: auto;
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
+
// FAQ, split: the title on the left and the questions on the right from lg up. The section takes
|
|
350
|
+
// `wui-section-faq--split`; the questions are numbered by the list's counter.
|
|
351
|
+
.wui-section-faq--split .wui-accordion {
|
|
352
|
+
counter-reset: wui-faq-item;
|
|
353
|
+
}
|
|
354
|
+
.wui-section-faq--split .wui-accordion-item {
|
|
355
|
+
counter-increment: wui-faq-item;
|
|
356
|
+
}
|
|
357
|
+
.wui-section-faq--split .wui-accordion-trigger::before {
|
|
358
|
+
flex: none;
|
|
359
|
+
content: counter(wui-faq-item, decimal-leading-zero);
|
|
360
|
+
color: var(--color-text-subtle);
|
|
361
|
+
font-variant-numeric: tabular-nums;
|
|
362
|
+
}
|
|
363
|
+
// The toggle is a circle, sized by the control token so it matches the field and button rows.
|
|
364
|
+
.wui-section-faq--split .wui-accordion-icon {
|
|
365
|
+
width: var(--wui-control-sm);
|
|
366
|
+
height: var(--wui-control-sm);
|
|
367
|
+
border-radius: var(--wui-radius-pill);
|
|
368
|
+
background: var(--color-bg-muted);
|
|
369
|
+
}
|
|
370
|
+
// Expanded, the toggle turns primary. A trigger carrying data-close-label swaps its chevron for that
|
|
371
|
+
// label as a pill; attr() reads only its own element, so the pill is the trigger's ::after.
|
|
372
|
+
.wui-section-faq--split .wui-accordion-trigger[aria-expanded="true"] .wui-accordion-icon {
|
|
373
|
+
background: var(--color-primary-soft);
|
|
374
|
+
color: var(--color-primary-text);
|
|
375
|
+
}
|
|
376
|
+
.wui-section-faq--split .wui-accordion-trigger[aria-expanded="true"][data-close-label] .wui-accordion-icon {
|
|
377
|
+
display: none;
|
|
378
|
+
}
|
|
379
|
+
.wui-section-faq--split .wui-accordion-trigger[aria-expanded="true"][data-close-label]::after {
|
|
380
|
+
content: attr(data-close-label);
|
|
381
|
+
flex: none;
|
|
382
|
+
padding: var(--wui-space-xs) var(--wui-space-sm);
|
|
383
|
+
border-radius: var(--wui-radius-pill);
|
|
384
|
+
background: var(--color-primary-soft);
|
|
385
|
+
color: var(--color-primary-text);
|
|
386
|
+
font-size: var(--wui-fs-sm);
|
|
387
|
+
font-weight: var(--wui-fw-semibold);
|
|
388
|
+
white-space: nowrap;
|
|
389
|
+
}
|
|
390
|
+
@include media-breakpoint-up(lg) {
|
|
391
|
+
.wui-section-faq--split .wui-section-inner {
|
|
392
|
+
display: grid;
|
|
393
|
+
grid-template-columns: minmax(7.2em, 1fr) minmax(0, 2fr);
|
|
394
|
+
align-items: start;
|
|
395
|
+
}
|
|
396
|
+
.wui-section-faq--split .wui-section-head {
|
|
397
|
+
min-width: 7.2em;
|
|
398
|
+
}
|
|
399
|
+
.wui-section-faq--split .wui-section-faq-body {
|
|
400
|
+
max-width: none;
|
|
401
|
+
margin-inline: 0;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
|
|
349
405
|
// ── Call to action: the heading block becomes a soft brand panel ──
|
|
350
406
|
.wui-section-call-to-action .wui-section-head {
|
|
351
407
|
width: 100%;
|
|
@@ -358,6 +414,41 @@
|
|
|
358
414
|
max-width: 40rem;
|
|
359
415
|
}
|
|
360
416
|
|
|
417
|
+
// Call to action, band: a filled primary band with the on-primary text; from lg up the actions sit at
|
|
418
|
+
// the end. The section takes `wui-section-call-to-action--band`. The band reads the theme's primary pair,
|
|
419
|
+
// so the fill and its text switch together in dark mode.
|
|
420
|
+
.wui-section-call-to-action--band {
|
|
421
|
+
background: var(--color-primary);
|
|
422
|
+
color: var(--color-on-primary);
|
|
423
|
+
}
|
|
424
|
+
.wui-section-call-to-action--band .wui-section-head {
|
|
425
|
+
background: none;
|
|
426
|
+
}
|
|
427
|
+
.wui-section-call-to-action--band .wui-section-eyebrow,
|
|
428
|
+
.wui-section-call-to-action--band .wui-section-title,
|
|
429
|
+
.wui-section-call-to-action--band .wui-section-subtitle {
|
|
430
|
+
color: inherit;
|
|
431
|
+
}
|
|
432
|
+
// A primary button on a primary band would vanish into it, so inside the band it inverts.
|
|
433
|
+
.wui-section-call-to-action--band .wui-section-actions .btn-primary {
|
|
434
|
+
--bs-btn-bg: var(--color-on-primary);
|
|
435
|
+
--bs-btn-border-color: var(--color-on-primary);
|
|
436
|
+
--bs-btn-color: var(--color-primary);
|
|
437
|
+
--bs-btn-hover-bg: color-mix(in srgb, var(--color-on-primary) 88%, var(--color-primary));
|
|
438
|
+
--bs-btn-hover-border-color: color-mix(in srgb, var(--color-on-primary) 88%, var(--color-primary));
|
|
439
|
+
--bs-btn-hover-color: var(--color-primary);
|
|
440
|
+
--bs-btn-active-bg: color-mix(in srgb, var(--color-on-primary) 80%, var(--color-primary));
|
|
441
|
+
--bs-btn-active-border-color: color-mix(in srgb, var(--color-on-primary) 80%, var(--color-primary));
|
|
442
|
+
--bs-btn-active-color: var(--color-primary);
|
|
443
|
+
border-radius: var(--wui-radius-pill);
|
|
444
|
+
}
|
|
445
|
+
@include media-breakpoint-up(lg) {
|
|
446
|
+
.wui-section-call-to-action--band .wui-section-actions {
|
|
447
|
+
align-self: flex-end;
|
|
448
|
+
justify-content: flex-end;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
361
452
|
@media (prefers-reduced-motion: reduce) {
|
|
362
453
|
.wui-section-logo-img {
|
|
363
454
|
transition: none;
|
package/scss/wui/_shell.scss
CHANGED
|
@@ -200,6 +200,8 @@
|
|
|
200
200
|
--app-shell-foot-h: 39px;
|
|
201
201
|
// The equal space above (below the rule) and below the collapse toggle.
|
|
202
202
|
--app-sidebar-toggle-gap: 4px;
|
|
203
|
+
// The top bar's height. Content that sticks below the top bar reads it.
|
|
204
|
+
--wui-shell-topbar-height: 72px;
|
|
203
205
|
|
|
204
206
|
position: relative;
|
|
205
207
|
display: grid;
|
|
@@ -886,7 +888,7 @@
|
|
|
886
888
|
align-items: center;
|
|
887
889
|
justify-content: space-between;
|
|
888
890
|
gap: 16px;
|
|
889
|
-
min-height:
|
|
891
|
+
min-height: var(--wui-shell-topbar-height);
|
|
890
892
|
padding: 12px 28px;
|
|
891
893
|
background: var(--color-surface);
|
|
892
894
|
// Reserved rather than absent, so a consumer colouring the divider on
|