@webority/theme 0.90.0 → 0.92.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 +1 -1
- package/package.json +1 -1
- package/scss/_tokens.scss +6 -2
- package/scss/_variables.scss +3 -2
- package/scss/wui/_display.scss +16 -6
- package/token-meanings.json +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.92.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": {
|
package/scss/_tokens.scss
CHANGED
|
@@ -357,8 +357,12 @@
|
|
|
357
357
|
--wui-fw-semibold: 600;
|
|
358
358
|
/// meaning: Bold text weight.
|
|
359
359
|
--wui-fw-bold: 700;
|
|
360
|
-
/// meaning:
|
|
361
|
-
--wui-lh-
|
|
360
|
+
/// meaning: Line height of headings.
|
|
361
|
+
--wui-lh-heading: #{$headings-line-height};
|
|
362
|
+
/// meaning: Line height of running text and of any text that is not a heading or display text.
|
|
363
|
+
--wui-lh-body: #{$line-height-base};
|
|
364
|
+
/// meaning: Line height of display-size text such as hero titles.
|
|
365
|
+
--wui-lh-display: #{$display-line-height};
|
|
362
366
|
|
|
363
367
|
// Field (input/select/datepicker/…) radius — a flat 8px corner across every
|
|
364
368
|
// size, for a crisp plain-rounded field (no squircle). Change here to restyle
|
package/scss/_variables.scss
CHANGED
|
@@ -213,14 +213,15 @@ $font-family-sans-serif: 'Webority Sans', 'Inter', -apple-system, BlinkMacSystem
|
|
|
213
213
|
$font-family-display: 'Webority Serif', Cambria, Georgia, 'Times New Roman', 'Noto Serif', serif;
|
|
214
214
|
$font-family-monospace: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
215
215
|
|
|
216
|
-
$line-height-base: 1.55; // BS 1.5
|
|
216
|
+
$line-height-base: 1.55; // leading.body (BS 1.5)
|
|
217
|
+
$headings-line-height: 1.2; // leading.heading (BS 1.2)
|
|
217
218
|
|
|
218
219
|
$headings-font-weight: 600; // BS 500
|
|
219
220
|
$headings-letter-spacing: -0.02em;
|
|
220
221
|
$headings-color: #071437;
|
|
221
222
|
|
|
222
223
|
$display-font-weight: 500;
|
|
223
|
-
$display-line-height: 1.05;
|
|
224
|
+
$display-line-height: 1.05; // leading.display
|
|
224
225
|
|
|
225
226
|
$h3-font-size: 1.5rem; // 24px (BS 1.75rem)
|
|
226
227
|
$h4-font-size: 1.25rem; // 20px (BS 1.5rem)
|
package/scss/wui/_display.scss
CHANGED
|
@@ -400,13 +400,9 @@ a.info-row:hover .info-value {
|
|
|
400
400
|
font-size: 12px;
|
|
401
401
|
padding: 4px 12px 8px;
|
|
402
402
|
}
|
|
403
|
-
// Bordered variant draws
|
|
403
|
+
// Bordered variant draws a rule above every row after the first, across every column.
|
|
404
404
|
.descs-bordered .descs-item {
|
|
405
|
-
border-
|
|
406
|
-
border-right: 1px solid var(--color-border);
|
|
407
|
-
}
|
|
408
|
-
.descs-bordered .descs-item:last-child {
|
|
409
|
-
border-right: none;
|
|
405
|
+
border-top: 1px solid var(--color-border);
|
|
410
406
|
}
|
|
411
407
|
// Column variants — set the grid-template-columns.
|
|
412
408
|
.descs-col-1 .descs-list {
|
|
@@ -418,12 +414,26 @@ a.info-row:hover .info-value {
|
|
|
418
414
|
.descs-col-3 .descs-list {
|
|
419
415
|
--descs-cols: 3;
|
|
420
416
|
}
|
|
417
|
+
.descs-col-1.descs-bordered .descs-item:first-child {
|
|
418
|
+
border-top: none;
|
|
419
|
+
}
|
|
420
|
+
.descs-col-2.descs-bordered .descs-item:nth-child(-n + 2) {
|
|
421
|
+
border-top: none;
|
|
422
|
+
}
|
|
423
|
+
.descs-col-3.descs-bordered .descs-item:nth-child(-n + 3) {
|
|
424
|
+
border-top: none;
|
|
425
|
+
}
|
|
421
426
|
// Media-breakpoint collapse to single column under md.
|
|
422
427
|
@include media-breakpoint-down(sm) {
|
|
423
428
|
.descs-col-2 .descs-list,
|
|
424
429
|
.descs-col-3 .descs-list {
|
|
425
430
|
--descs-cols: 1;
|
|
426
431
|
}
|
|
432
|
+
// One column here, so only the first item sits on the first row.
|
|
433
|
+
.descs-col-2.descs-bordered .descs-item:nth-child(n + 2),
|
|
434
|
+
.descs-col-3.descs-bordered .descs-item:nth-child(n + 2) {
|
|
435
|
+
border-top: 1px solid var(--color-border);
|
|
436
|
+
}
|
|
427
437
|
}
|
|
428
438
|
// Summary layout (React `layout="summary"`): one row per item, its label left and its value right.
|
|
429
439
|
// Declared after the column variants so the single column wins on equal specificity.
|
package/token-meanings.json
CHANGED
|
@@ -208,7 +208,9 @@
|
|
|
208
208
|
"--wui-info-active": "Info ink for icons and active states on light surfaces.",
|
|
209
209
|
"--wui-info-text": "Info colour as text on light surfaces.",
|
|
210
210
|
"--wui-ink": "Pure black ink, the highest-contrast text colour.",
|
|
211
|
-
"--wui-lh-
|
|
211
|
+
"--wui-lh-body": "Line height of running text and of any text that is not a heading or display text.",
|
|
212
|
+
"--wui-lh-display": "Line height of display-size text such as hero titles.",
|
|
213
|
+
"--wui-lh-heading": "Line height of headings.",
|
|
212
214
|
"--wui-neutral-bg-dark": "Muted background of table emphasis rows and mega-menu hover.",
|
|
213
215
|
"--wui-neutral-bg-light": "Faint background for table emphasis and mega-menu hover.",
|
|
214
216
|
"--wui-neutral-border-dark": "Border tone of table emphasis rows and dividers.",
|