@webority/theme 0.124.0 → 0.125.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/theme",
3
- "version": "0.124.0",
3
+ "version": "0.125.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": {
@@ -47,7 +47,7 @@
47
47
  "postcss": "^8.5.31"
48
48
  },
49
49
  "devDependencies": {
50
- "@webority/tokens": "0.124.0",
50
+ "@webority/tokens": "0.125.0",
51
51
  "bootstrap": "5.3.3",
52
52
  "country-flag-icons": "^1.6.20",
53
53
  "sass-embedded": "^1.97.0",
@@ -1,4 +1,4 @@
1
- // Generated by @webority/tokens 0.124.0 from its token source. Do not edit; run webority brand --library.
1
+ // Generated by @webority/tokens 0.125.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;
@@ -196,15 +196,16 @@
196
196
  // tint deepening on hover/press, no border — but keyed off the danger tokens. The label
197
197
  // uses --color-danger-text (the AA-safe error red, lifted in dark mode to read on a dark surface),
198
198
  // not the brighter --color-danger. Disabled falls through to the shared neutral-grey
199
- // state below (it is not .btn-danger), like .btn-secondary.
199
+ // state below (it is not .btn-danger), like .btn-secondary. A product sets another label
200
+ // ink with --wui-btn-secondary-danger-ink (e.g. --color-danger-text-on-soft in dark mode).
200
201
  .btn-secondary-danger {
201
- --bs-btn-color: var(--color-danger-text);
202
+ --bs-btn-color: var(--wui-btn-secondary-danger-ink, var(--color-danger-text));
202
203
  --bs-btn-bg: color-mix(in srgb, var(--color-danger) 12%, transparent);
203
204
  --bs-btn-border-color: transparent;
204
- --bs-btn-hover-color: var(--color-danger-text);
205
+ --bs-btn-hover-color: var(--wui-btn-secondary-danger-ink, var(--color-danger-text));
205
206
  --bs-btn-hover-bg: color-mix(in srgb, var(--color-danger) 18%, transparent);
206
207
  --bs-btn-hover-border-color: transparent;
207
- --bs-btn-active-color: var(--color-danger-text);
208
+ --bs-btn-active-color: var(--wui-btn-secondary-danger-ink, var(--color-danger-text));
208
209
  --bs-btn-active-bg: color-mix(in srgb, var(--color-danger) 26%, transparent);
209
210
  --bs-btn-active-border-color: transparent;
210
211
  // Bootstrap builds the focus ring from --bs-btn-focus-shadow-rgb, which only its own
@@ -1,4 +1,4 @@
1
- // Generated by @webority/tokens 0.124.0 from its token source. Do not edit; run webority brand --library.
1
+ // Generated by @webority/tokens 0.125.0 from its token source. Do not edit; run webority brand --library.
2
2
 
3
3
  :root {
4
4
  --wui-primary: #4F46E5;
@@ -46,13 +46,21 @@
46
46
  }
47
47
  // Bootstrap has its own `.card-title` (a bare margin-bottom) — these override it,
48
48
  // so they must stay in the layer that loads after Bootstrap.
49
+ // A product sets its title type with --wui-card-title-fs and --wui-card-title-lh.
49
50
  .card-title {
50
51
  margin: 0;
51
- font-size: 16px;
52
+ font-size: var(--wui-card-title-fs, 16px);
52
53
  font-weight: 600;
53
- line-height: 1.3;
54
+ line-height: var(--wui-card-title-lh, 1.3);
54
55
  color: var(--color-text);
55
56
  }
57
+ // A title passed as a heading stays a heading for screen readers but takes the title's type.
58
+ .card-title > :is(h1, h2, h3, h4, h5, h6) {
59
+ margin: 0;
60
+ font: inherit;
61
+ letter-spacing: inherit;
62
+ color: inherit;
63
+ }
56
64
  .card-subtitle {
57
65
  margin: 2px 0 0;
58
66
  font-size: 12.5px;