@webority/theme 0.109.6 → 0.109.8
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 +5 -0
- package/dist/webority-runtime-brand.css +1 -1
- package/dist/webority-theme.css +1 -1
- package/package.json +2 -2
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_components.scss +35 -8
- package/scss/_runtime-brand.scss +7 -32
- package/scss/_tokens.generated.scss +10 -3
- package/scss/wui/_page-header-bar.scss +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/theme",
|
|
3
|
-
"version": "0.109.
|
|
3
|
+
"version": "0.109.8",
|
|
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": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"country-flag-icons": "^1.6.20",
|
|
52
52
|
"sass-embedded": "^1.97.0",
|
|
53
53
|
"vite": "^8.0.12",
|
|
54
|
-
"@webority/tokens": "0.109.
|
|
54
|
+
"@webority/tokens": "0.109.8"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"tokens": "node ../tokens/dist/webority.js brand --library --out ../tokens/dist --web scss/_tokens.generated.scss",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by @webority/tokens 0.109.
|
|
1
|
+
// Generated by @webority/tokens 0.109.8 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;
|
package/scss/_components.scss
CHANGED
|
@@ -32,15 +32,42 @@
|
|
|
32
32
|
--bs-btn-hover-border-color: var(--color-primary-hover);
|
|
33
33
|
--bs-btn-active-bg: var(--color-primary-hover);
|
|
34
34
|
--bs-btn-active-border-color: var(--color-primary-hover);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
//
|
|
38
|
-
|
|
39
|
-
--bs-btn-color: var(--wui-primary-text);
|
|
35
|
+
--bs-btn-bg: var(--color-primary);
|
|
36
|
+
--bs-btn-border-color: var(--color-primary);
|
|
37
|
+
// The rest fill and label are the theme's primary pair, like hover and press.
|
|
38
|
+
--bs-btn-color: var(--color-on-primary);
|
|
40
39
|
--bs-btn-hover-color: var(--color-on-primary);
|
|
41
40
|
--bs-btn-active-color: var(--color-on-primary);
|
|
42
41
|
}
|
|
43
42
|
|
|
43
|
+
// Bootstrap compiles $primary into these fills and a white label; each takes the theme's primary pair.
|
|
44
|
+
.nav-pills {
|
|
45
|
+
--bs-nav-pills-link-active-bg: var(--color-primary);
|
|
46
|
+
--bs-nav-pills-link-active-color: var(--color-on-primary);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.pagination {
|
|
50
|
+
--bs-pagination-active-bg: var(--color-primary);
|
|
51
|
+
--bs-pagination-active-border-color: var(--color-primary);
|
|
52
|
+
--bs-pagination-active-color: var(--color-on-primary);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.list-group {
|
|
56
|
+
--bs-list-group-active-bg: var(--color-primary);
|
|
57
|
+
--bs-list-group-active-border-color: var(--color-primary);
|
|
58
|
+
--bs-list-group-active-color: var(--color-on-primary);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.progress,
|
|
62
|
+
.progress-stacked {
|
|
63
|
+
--bs-progress-bar-bg: var(--color-primary);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.text-bg-primary {
|
|
67
|
+
color: var(--color-on-primary) !important;
|
|
68
|
+
background-color: color-mix(in srgb, var(--color-primary) calc(var(--bs-bg-opacity, 1) * 100%), transparent) !important;
|
|
69
|
+
}
|
|
70
|
+
|
|
44
71
|
// Secondary — a soft brand tint (matches the design reference's secondary): a
|
|
45
72
|
// low-alpha wash of the brand rather than an opaque fill, so it reads as a
|
|
46
73
|
// quieter companion to the solid primary. Colour comes from the brand token;
|
|
@@ -125,9 +152,9 @@
|
|
|
125
152
|
--bs-btn-hover-color: var(--color-on-primary);
|
|
126
153
|
--bs-btn-hover-bg: var(--color-primary);
|
|
127
154
|
--bs-btn-hover-border-color: var(--color-primary);
|
|
128
|
-
--bs-btn-active-color: var(--
|
|
129
|
-
--bs-btn-active-bg: var(--
|
|
130
|
-
--bs-btn-active-border-color: var(--
|
|
155
|
+
--bs-btn-active-color: var(--color-on-primary);
|
|
156
|
+
--bs-btn-active-bg: var(--color-primary-hover);
|
|
157
|
+
--bs-btn-active-border-color: var(--color-primary-hover);
|
|
131
158
|
--bs-btn-disabled-color: var(--color-primary-text);
|
|
132
159
|
--bs-btn-disabled-border-color: var(--color-primary);
|
|
133
160
|
}
|
package/scss/_runtime-brand.scss
CHANGED
|
@@ -2,21 +2,15 @@
|
|
|
2
2
|
// `webority brand`) restyle the precompiled theme without recompiling it.
|
|
3
3
|
//
|
|
4
4
|
// Loaded AFTER webority-theme.css and BEFORE the token file's values. It holds no colour of its own.
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
// the same through this layer as through its compiled build. The compiled values are the same in
|
|
13
|
-
// light and dark, so there is no dark block.
|
|
5
|
+
// The theme paints solid primary fills and their labels from the meaning pair (--color-primary and
|
|
6
|
+
// --color-on-primary), so a token file's primary reaches them through those names. This layer only
|
|
7
|
+
// re-points the compiled literals that still need --bs-primary or its triplet. The token file also
|
|
8
|
+
// writes the Bootstrap link pair (--bs-link-color, --bs-link-hover-color and their -rgb triplets) when
|
|
9
|
+
// the brand's link colour differs. Every other brand value (--wui-*, fonts, the Bootstrap subtle and
|
|
10
|
+
// emphasis colours, dark mode) is already a custom property on :root and arrives with the token file
|
|
11
|
+
// unchanged.
|
|
14
12
|
|
|
15
13
|
.btn-primary {
|
|
16
|
-
--bs-btn-bg: var(--bs-primary);
|
|
17
|
-
--bs-btn-border-color: var(--bs-primary);
|
|
18
|
-
--bs-btn-disabled-bg: var(--bs-primary);
|
|
19
|
-
--bs-btn-disabled-border-color: var(--bs-primary);
|
|
20
14
|
// Bootstrap mixes 15% white into this triplet; a triplet cannot be mixed at runtime.
|
|
21
15
|
--bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
|
|
22
16
|
}
|
|
@@ -25,25 +19,6 @@
|
|
|
25
19
|
--bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
|
|
26
20
|
}
|
|
27
21
|
|
|
28
|
-
.nav-pills {
|
|
29
|
-
--bs-nav-pills-link-active-bg: var(--bs-primary);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.pagination {
|
|
33
|
-
--bs-pagination-active-bg: var(--bs-primary);
|
|
34
|
-
--bs-pagination-active-border-color: var(--bs-primary);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.list-group {
|
|
38
|
-
--bs-list-group-active-bg: var(--bs-primary);
|
|
39
|
-
--bs-list-group-active-border-color: var(--bs-primary);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.progress,
|
|
43
|
-
.progress-stacked {
|
|
44
|
-
--bs-progress-bar-bg: var(--bs-primary);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
22
|
// Mouse focus only: the theme paints keyboard focus and checked boxes from --color-primary already,
|
|
48
23
|
// and a plain :focus rule here would win over both by source order.
|
|
49
24
|
.form-check-input:focus:not(:focus-visible):not(:checked):not([type="checkbox"]:indeterminate) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by @webority/tokens 0.109.
|
|
1
|
+
// Generated by @webority/tokens 0.109.8 from its token source. Do not edit; run webority brand --library.
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
4
|
--wui-primary: #4F46E5;
|
|
@@ -479,7 +479,9 @@
|
|
|
479
479
|
--bs-border-color: var(--color-border);
|
|
480
480
|
--bs-secondary-bg: var(--color-surface);
|
|
481
481
|
--bs-tertiary-bg: var(--color-bg-muted);
|
|
482
|
+
--bs-primary: var(--color-primary);
|
|
482
483
|
--bs-body-bg-rgb: 15, 17, 23;
|
|
484
|
+
--bs-primary-rgb: 149, 144, 239;
|
|
483
485
|
--bs-body-color-rgb: 230, 232, 238;
|
|
484
486
|
--bs-emphasis-color-rgb: 230, 232, 238;
|
|
485
487
|
--bs-secondary-color-rgb: 180, 185, 198;
|
|
@@ -622,7 +624,9 @@
|
|
|
622
624
|
--bs-border-color: var(--color-border);
|
|
623
625
|
--bs-secondary-bg: var(--color-surface);
|
|
624
626
|
--bs-tertiary-bg: var(--color-bg-muted);
|
|
627
|
+
--bs-primary: var(--color-primary);
|
|
625
628
|
--bs-body-bg-rgb: 15, 17, 23;
|
|
629
|
+
--bs-primary-rgb: 149, 144, 239;
|
|
626
630
|
--bs-body-color-rgb: 230, 232, 238;
|
|
627
631
|
--bs-emphasis-color-rgb: 230, 232, 238;
|
|
628
632
|
--bs-secondary-color-rgb: 180, 185, 198;
|
|
@@ -661,8 +665,9 @@ $wui-dark-layer-names: (
|
|
|
661
665
|
color-chart-seq-0, color-chart-seq-1, color-chart-seq-2, color-chart-seq-3, color-chart-seq-4, color-chart-seq-5,
|
|
662
666
|
color-chart-seq-6, color-chart-diverging-low, color-chart-diverging-mid, color-chart-diverging-high, color-chart-neutral, wui-close-filter,
|
|
663
667
|
wui-thumb-shadow, wui-thumb-shadow-hover, bs-body-color, bs-emphasis-color, bs-secondary-color, bs-tertiary-color,
|
|
664
|
-
bs-body-bg, bs-border-color, bs-secondary-bg, bs-tertiary-bg, bs-
|
|
665
|
-
bs-
|
|
668
|
+
bs-body-bg, bs-border-color, bs-secondary-bg, bs-tertiary-bg, bs-primary, bs-body-bg-rgb,
|
|
669
|
+
bs-primary-rgb, bs-body-color-rgb, bs-emphasis-color-rgb, bs-secondary-color-rgb, bs-tertiary-color-rgb, bs-secondary-bg-rgb,
|
|
670
|
+
bs-tertiary-bg-rgb, bs-border-color-rgb
|
|
666
671
|
);
|
|
667
672
|
|
|
668
673
|
// var() resolves where a name is declared, so the html copies keep the light values for a light box.
|
|
@@ -822,7 +827,9 @@ html {
|
|
|
822
827
|
--bs-border-color: var(--color-border);
|
|
823
828
|
--bs-secondary-bg: var(--color-surface);
|
|
824
829
|
--bs-tertiary-bg: var(--color-bg-muted);
|
|
830
|
+
--bs-primary: var(--color-primary);
|
|
825
831
|
--bs-body-bg-rgb: 15, 17, 23;
|
|
832
|
+
--bs-primary-rgb: 149, 144, 239;
|
|
826
833
|
--bs-body-color-rgb: 230, 232, 238;
|
|
827
834
|
--bs-emphasis-color-rgb: 230, 232, 238;
|
|
828
835
|
--bs-secondary-color-rgb: 180, 185, 198;
|