@webority/theme 0.160.0 → 0.163.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/README.md +2 -2
- package/dist/webority-theme.css +3 -3
- package/package.json +5 -5
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_tokens.generated.scss +1 -1
- package/scss/wui/_card.scss +12 -4
- package/scss/wui/_controls.scss +7 -2
- package/scss/wui/_flow.scss +2 -2
- package/scss/wui/_overlays.scss +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.163.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": {
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
"postcss-selector-parser": "^7.1.7"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"bootstrap": "5.3.
|
|
66
|
+
"bootstrap": "5.3.9",
|
|
67
67
|
"postcss": "^8.5.31"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/node": "25.6.0",
|
|
71
|
-
"@webority/biome-config": "0.
|
|
72
|
-
"@webority/tokens": "0.
|
|
73
|
-
"bootstrap": "5.3.
|
|
71
|
+
"@webority/biome-config": "0.163.0",
|
|
72
|
+
"@webority/tokens": "0.163.0",
|
|
73
|
+
"bootstrap": "5.3.9",
|
|
74
74
|
"country-flag-icons": "^1.6.20",
|
|
75
75
|
"sass-embedded": "^1.108.0",
|
|
76
76
|
"typescript": "^7.0.2",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by @webority/tokens 0.
|
|
1
|
+
// Generated by @webority/tokens 0.163.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;
|
package/scss/wui/_card.scss
CHANGED
|
@@ -32,6 +32,12 @@
|
|
|
32
32
|
// Derive it from the live radius and border width instead.
|
|
33
33
|
--bs-card-inner-border-radius: calc(var(--bs-card-border-radius) - var(--bs-card-border-width));
|
|
34
34
|
}
|
|
35
|
+
// A card nested in another card takes its border width from --wui-card-nested-border-width, so a
|
|
36
|
+
// product can draw inner cards flatter or heavier than the outer one. Unset, it matches the outer card.
|
|
37
|
+
// :where keeps the rule at one class, so the elevated and outlined variants below still set their width.
|
|
38
|
+
:where(.card) .card {
|
|
39
|
+
--bs-card-border-width: var(--wui-card-nested-border-width, var(--wui-card-border-width));
|
|
40
|
+
}
|
|
35
41
|
|
|
36
42
|
// A card header that carries a title on the left and controls on the right — the
|
|
37
43
|
// pattern nearly every panel header uses, so it belongs here rather than being
|
|
@@ -40,10 +46,11 @@
|
|
|
40
46
|
// and the header carries no rule of its own: Bootstrap's divider followed the card's border
|
|
41
47
|
// width, so only the elevated variant drew one. A brand that fills its headers sets
|
|
42
48
|
// --wui-card-header-bg in its token file, and one that draws a line under every header sets
|
|
43
|
-
// --wui-card-header-divider to its width (such as 1px).
|
|
49
|
+
// --wui-card-header-divider to its width (such as 1px). It sets --wui-card-header-divider-color
|
|
50
|
+
// to colour that line.
|
|
44
51
|
.card-header {
|
|
45
52
|
--bs-card-cap-bg: var(--wui-card-header-bg, transparent);
|
|
46
|
-
border-bottom: var(--wui-card-header-divider, 0px) solid var(--color-border-subtle);
|
|
53
|
+
border-bottom: var(--wui-card-header-divider, 0px) solid var(--wui-card-header-divider-color, var(--color-border-subtle));
|
|
47
54
|
display: flex;
|
|
48
55
|
align-items: center;
|
|
49
56
|
justify-content: space-between;
|
|
@@ -51,7 +58,8 @@
|
|
|
51
58
|
}
|
|
52
59
|
// Bootstrap has its own `.card-title` (a bare margin-bottom) — these override it,
|
|
53
60
|
// so they must stay in the layer that loads after Bootstrap.
|
|
54
|
-
// A product sets its title type with --wui-card-title-font-family, -fs, -fw and -lh
|
|
61
|
+
// A product sets its title type with --wui-card-title-font-family, -fs, -fw and -lh, and its
|
|
62
|
+
// colour with --wui-card-title-color.
|
|
55
63
|
.card-title,
|
|
56
64
|
.result-title {
|
|
57
65
|
margin: 0;
|
|
@@ -59,7 +67,7 @@
|
|
|
59
67
|
font-size: var(--wui-card-title-fs, 16px);
|
|
60
68
|
font-weight: var(--wui-card-title-fw, 600);
|
|
61
69
|
line-height: var(--wui-card-title-lh, 1.3);
|
|
62
|
-
color: var(--color-text);
|
|
70
|
+
color: var(--wui-card-title-color, var(--color-text));
|
|
63
71
|
}
|
|
64
72
|
// A title passed as a heading stays a heading for screen readers but takes the title's type.
|
|
65
73
|
.card-title > :is(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6) {
|
package/scss/wui/_controls.scss
CHANGED
|
@@ -1231,15 +1231,20 @@ form .wui-field-message:empty {
|
|
|
1231
1231
|
.field-count.at-limit {
|
|
1232
1232
|
color: var(--color-danger-text);
|
|
1233
1233
|
}
|
|
1234
|
-
// A product sets the field label type with --wui-field-label-fs and --wui-field-label-
|
|
1234
|
+
// A product sets the field label type and colour with --wui-field-label-fs, --wui-field-label-fw and --wui-field-label-color on any ancestor.
|
|
1235
1235
|
.label {
|
|
1236
1236
|
display: block;
|
|
1237
1237
|
font-size: var(--wui-field-label-fs, var(--wui-label-fs));
|
|
1238
1238
|
line-height: normal;
|
|
1239
1239
|
font-weight: var(--wui-field-label-fw, 500);
|
|
1240
|
-
color: var(--color-text);
|
|
1240
|
+
color: var(--wui-field-label-color, var(--color-text));
|
|
1241
1241
|
margin-bottom: 6px;
|
|
1242
1242
|
}
|
|
1243
|
+
.form-label {
|
|
1244
|
+
font-size: var(--wui-field-label-fs, inherit);
|
|
1245
|
+
font-weight: var(--wui-field-label-fw, inherit);
|
|
1246
|
+
color: var(--wui-field-label-color, inherit);
|
|
1247
|
+
}
|
|
1243
1248
|
.label-hint {
|
|
1244
1249
|
color: var(--color-text-subtle);
|
|
1245
1250
|
font-weight: 400;
|
package/scss/wui/_flow.scss
CHANGED
|
@@ -1120,13 +1120,13 @@ button.wui-step-tile-body:hover .step-label {
|
|
|
1120
1120
|
.form-section + .form-actions {
|
|
1121
1121
|
margin-top: 32px;
|
|
1122
1122
|
}
|
|
1123
|
-
// Ranks below the card title (16px) a section usually sits in, and above the 14px field labels.
|
|
1123
|
+
// Ranks below the card title (16px) a section usually sits in, and above the 14px field labels. A product sets its colour with --wui-form-section-title-color.
|
|
1124
1124
|
.form-section-title {
|
|
1125
1125
|
margin: 0;
|
|
1126
1126
|
font-size: var(--wui-form-title-size, 15px);
|
|
1127
1127
|
font-weight: 600;
|
|
1128
1128
|
line-height: 1.3;
|
|
1129
|
-
color: var(--color-text);
|
|
1129
|
+
color: var(--wui-form-section-title-color, var(--color-text));
|
|
1130
1130
|
}
|
|
1131
1131
|
.form-section-title.wui-form-title-display {
|
|
1132
1132
|
font-family: var(--wui-font-display, inherit);
|
package/scss/wui/_overlays.scss
CHANGED
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
}
|
|
39
39
|
// A dialog opened over a side panel (drawer or offcanvas) sits above it and its dim layer.
|
|
40
40
|
.modal.wui-modal-stacked {
|
|
41
|
-
z-index: calc(var(--
|
|
41
|
+
z-index: calc(var(--wui-z-modal) + 10);
|
|
42
42
|
}
|
|
43
43
|
.modal-backdrop.wui-modal-backdrop-stacked {
|
|
44
|
-
z-index: calc(var(--
|
|
44
|
+
z-index: calc(var(--wui-z-modal) + 9);
|
|
45
45
|
}
|
|
46
46
|
// `display: flex` ONLY while the dialog is actually open.
|
|
47
47
|
//
|