@siemens/element-theme 51.0.0-rc.5 → 51.0.0-rc.7

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.
Files changed (46) hide show
  1. package/package.json +1 -1
  2. package/src/styles/_accessibility.scss +4 -2
  3. package/src/styles/_reboot-shadow-dom.scss +5 -0
  4. package/src/styles/_root-font-size.scss +4 -2
  5. package/src/styles/_selectors.scss +3 -0
  6. package/src/styles/_themes.scss +15 -3
  7. package/src/styles/_variables.scss +1 -0
  8. package/src/styles/bootstrap/_alert.scss +19 -19
  9. package/src/styles/bootstrap/_badges.scss +38 -38
  10. package/src/styles/bootstrap/_button-group.scss +9 -8
  11. package/src/styles/bootstrap/_buttons.scss +83 -82
  12. package/src/styles/bootstrap/_card.scss +13 -14
  13. package/src/styles/bootstrap/_dropdowns.scss +6 -6
  14. package/src/styles/bootstrap/_list-group.scss +13 -13
  15. package/src/styles/bootstrap/_nav.scss +17 -8
  16. package/src/styles/bootstrap/_pagination.scss +3 -2
  17. package/src/styles/bootstrap/_reboot.scss +8 -2
  18. package/src/styles/bootstrap/_root.scss +2 -1
  19. package/src/styles/bootstrap/_tables.scss +2 -2
  20. package/src/styles/bootstrap/_type.scss +64 -2
  21. package/src/styles/bootstrap/_utilities.scss +45 -45
  22. package/src/styles/bootstrap/_variables.scss +77 -75
  23. package/src/styles/bootstrap/forms/_form-check.scss +34 -62
  24. package/src/styles/bootstrap/forms/_form-control.scss +15 -15
  25. package/src/styles/bootstrap/forms/_form-file.scss +7 -7
  26. package/src/styles/bootstrap/forms/_form-layout.scss +36 -0
  27. package/src/styles/bootstrap/forms/_form-range.scss +13 -13
  28. package/src/styles/bootstrap/mixins/_form-layout.scss +3 -1
  29. package/src/styles/components/_application-header.scss +23 -22
  30. package/src/styles/components/_datatable.scss +29 -29
  31. package/src/styles/components/_drag_drop.scss +6 -5
  32. package/src/styles/components/_layout.scss +14 -1
  33. package/src/styles/components/_links.scss +2 -2
  34. package/src/styles/components/_list-item.scss +7 -7
  35. package/src/styles/components/_markdown.scss +28 -14
  36. package/src/styles/components/_pills.scss +3 -3
  37. package/src/styles/components/_scrollbar.scss +6 -5
  38. package/src/styles/components/_skeleton.scss +4 -3
  39. package/src/styles/components/_switch.scss +12 -14
  40. package/src/styles/components/_widgets.scss +1 -1
  41. package/src/styles/variables/_focus.scss +4 -3
  42. package/src/styles/variables/_system-tokens.scss +180 -0
  43. package/src/styles/variables/_typography.scss +53 -18
  44. package/src/theme/_theme-element.scss +362 -2
  45. package/src/theme-shadow-dom.scss +17 -0
  46. package/src/theme.scss +11 -3
@@ -1,5 +1,6 @@
1
1
  @use '../variables/animations';
2
2
  @use '../variables/elevation';
3
+ @use '../variables/system-tokens';
3
4
  @use '../variables/semantic-tokens';
4
5
  @use '../variables/spacers';
5
6
  @use '../variables/typography';
@@ -42,18 +43,18 @@ $position-values: (
42
43
  //
43
44
  // Settings for the `<body>` element.
44
45
 
45
- $body-bg: semantic-tokens.$element-base-0 !default;
46
- $body-color: semantic-tokens.$element-text-primary !default;
46
+ $body-bg: system-tokens.$si-sys-background-0 !default;
47
+ $body-color: system-tokens.$si-sys-text-primary !default;
47
48
  $body-text-align: null !default;
48
49
 
49
50
  // Links
50
51
  //
51
52
  // Style anchor elements.
52
53
 
53
- $link-color: semantic-tokens.$element-ui-0;
54
+ $link-color: system-tokens.$si-sys-text-accent;
54
55
  $link-decoration: none !default;
55
56
  $link-shade-percentage: 20% !default;
56
- $link-hover-color: semantic-tokens.$element-ui-0-hover;
57
+ $link-hover-color: system-tokens.$si-sys-text-accent-hover;
57
58
  $link-hover-decoration: underline !default;
58
59
  $link-border-radius: semantic-tokens.$element-button-radius;
59
60
 
@@ -124,7 +125,7 @@ $border-widths: (
124
125
  5: 5px
125
126
  ) !default;
126
127
 
127
- $border-color: semantic-tokens.$element-ui-4 !default;
128
+ $border-color: system-tokens.$si-sys-border-4 !default;
128
129
 
129
130
  $border-radius: semantic-tokens.$element-radius-2 !default;
130
131
  $border-radius-sm: semantic-tokens.$element-radius-1 !default;
@@ -154,8 +155,7 @@ $aspect-ratios: (
154
155
  //
155
156
  // Font, line-height, and color for body text, headings, and more.
156
157
  $font-family-sans-serif: var(--element-body-font-family);
157
- $font-family-monospace:
158
- SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace !default;
158
+ $font-family-monospace: typography.$si-font-family-mono !default;
159
159
 
160
160
  $font-family-base: $font-family-sans-serif !default;
161
161
  $font-family-code: $font-family-monospace !default;
@@ -184,7 +184,7 @@ $h2-font-size: typography.$si-font-size-h2 !default;
184
184
  $h3-font-size: typography.$si-font-size-h3 !default;
185
185
  $h4-font-size: typography.$si-font-size-h4 !default;
186
186
  $h5-font-size: typography.$si-font-size-h5 !default;
187
- $h6-font-size: $font-size-base !default;
187
+ $h6-font-size: typography.$si-font-size-h6 !default;
188
188
 
189
189
  $font-sizes: (
190
190
  1: $h1-font-size,
@@ -200,7 +200,7 @@ $headings-font-family: null !default;
200
200
  $headings-font-style: null !default;
201
201
  $headings-font-weight: typography.$si-font-weight-semibold !default;
202
202
  $headings-line-height: 1.2 !default;
203
- $headings-color: semantic-tokens.$element-text-primary !default;
203
+ $headings-color: system-tokens.$si-sys-text-primary !default;
204
204
 
205
205
  $lead-font-size: typography.$si-font-size-body-lg !default;
206
206
  $lead-line-height: typography.$si-line-height-body-lg !default;
@@ -212,15 +212,15 @@ $sub-sup-font-size: 0.75em !default;
212
212
 
213
213
  $initialism-font-size: $small-font-size !default;
214
214
 
215
- $text-muted: semantic-tokens.$element-text-disabled !default;
215
+ $text-muted: system-tokens.$si-sys-text-disabled !default;
216
216
 
217
217
  $blockquote-margin-y: spacers.$spacer !default;
218
218
  $blockquote-font-size: typography.$si-font-size-body-lg !default;
219
- $blockquote-footer-color: semantic-tokens.$element-text-secondary !default;
219
+ $blockquote-footer-color: system-tokens.$si-sys-text-secondary !default;
220
220
  $blockquote-footer-font-size: $small-font-size !default;
221
221
 
222
222
  $hr-margin-y: spacers.$spacer !default;
223
- $hr-color: semantic-tokens.$element-ui-4 !default;
223
+ $hr-color: system-tokens.$si-sys-border-4 !default;
224
224
  $hr-height: $border-width !default;
225
225
  $hr-opacity: 1 !default;
226
226
 
@@ -236,8 +236,8 @@ $nested-kbd-font-weight: $font-weight-bold !default;
236
236
 
237
237
  $list-inline-padding: 0.5rem !default;
238
238
 
239
- $mark-bg: semantic-tokens.$element-status-caution;
240
- $mark-color: semantic-tokens.$element-status-caution-contrast;
239
+ $mark-bg: system-tokens.$si-sys-background-caution;
240
+ $mark-color: system-tokens.$si-sys-text-on-caution;
241
241
 
242
242
  // Tables
243
243
  //
@@ -251,19 +251,19 @@ $table-cell-padding-x-sm: map.get(spacers.$spacers, 4) !default;
251
251
  $table-cell-vertical-align: top !default;
252
252
 
253
253
  $table-color: $body-color !default;
254
- $table-bg: semantic-tokens.$element-base-1 !default;
254
+ $table-bg: system-tokens.$si-sys-background-1 !default;
255
255
  $table-accent-bg: transparent !default;
256
256
 
257
257
  $table-th-font-weight: null !default;
258
258
 
259
259
  $table-striped-color: $table-color !default;
260
- $table-striped-bg: semantic-tokens.$element-base-0 !default;
260
+ $table-striped-bg: system-tokens.$si-sys-background-0 !default;
261
261
 
262
262
  $table-active-color: $table-color !default;
263
- $table-active-bg: semantic-tokens.$element-base-1-selected !default;
263
+ $table-active-bg: system-tokens.$si-sys-background-selected !default;
264
264
 
265
265
  $table-hover-color: $table-color !default;
266
- $table-hover-bg: semantic-tokens.$element-base-1-hover !default;
266
+ $table-hover-bg: system-tokens.$si-sys-background-hover !default;
267
267
 
268
268
  $table-border-width: $border-width !default;
269
269
  $table-border-color: $border-color !default;
@@ -272,13 +272,13 @@ $table-striped-order: odd !default;
272
272
 
273
273
  $table-group-separator-color: currentColor !default;
274
274
 
275
- $table-caption-color: $text-muted !default;
275
+ $table-caption-color: semantic-tokens.$element-text-secondary !default;
276
276
 
277
277
  $table-variants: (
278
- 'success': semantic-tokens.$element-base-success,
279
- 'info': semantic-tokens.$element-base-information,
280
- 'warning': semantic-tokens.$element-base-warning,
281
- 'danger': semantic-tokens.$element-base-danger
278
+ 'success': system-tokens.$si-sys-background-success-subtle,
279
+ 'info': system-tokens.$si-sys-background-information-subtle,
280
+ 'warning': system-tokens.$si-sys-background-warning-subtle,
281
+ 'danger': system-tokens.$si-sys-background-danger-subtle
282
282
  ) !default;
283
283
 
284
284
  // Buttons
@@ -296,7 +296,7 @@ $btn-padding-y-lg: map.get(spacers.$spacers, 5);
296
296
 
297
297
  $btn-link-color: $link-color !default;
298
298
  $btn-link-hover-color: $link-hover-color !default;
299
- $btn-link-disabled-color: semantic-tokens.$element-text-disabled !default;
299
+ $btn-link-disabled-color: system-tokens.$si-sys-text-disabled !default;
300
300
 
301
301
  // Allows for customizing button radius independently from global border radius
302
302
  $btn-border-radius: semantic-tokens.$element-button-radius !default;
@@ -316,13 +316,13 @@ $form-text-margin-top: map.get(spacers.$spacers, 2);
316
316
  $form-text-font-size: $small-font-size !default;
317
317
  $form-text-font-style: null !default;
318
318
  $form-text-font-weight: null !default;
319
- $form-text-color: semantic-tokens.$element-text-secondary !default;
319
+ $form-text-color: system-tokens.$si-sys-text-secondary !default;
320
320
 
321
321
  $form-label-margin-bottom: 4px !default;
322
322
  $form-label-font-size: typography.$si-font-size-body !default;
323
323
  $form-label-font-style: null !default;
324
324
  $form-label-font-weight: null !default;
325
- $form-label-color: semantic-tokens.$element-text-secondary !default;
325
+ $form-label-color: system-tokens.$si-sys-text-secondary !default;
326
326
 
327
327
  $input-padding-y: (map.get(spacers.$spacers, 4) - 1px); // 8px including 1px border
328
328
  $input-padding-x: (map.get(spacers.$spacers, 4) - 1px); // 8px including 1px border
@@ -333,12 +333,14 @@ $input-font-weight: $font-weight-base;
333
333
  // rounding differences (Safari rounds 14 × 1.1428... to 15px, Chrome to 16px). See #2031
334
334
  $input-line-height: typography.$si-line-height-body-rem !default;
335
335
 
336
- $input-bg: semantic-tokens.$element-base-1 !default;
337
- $input-disabled-bg: semantic-tokens.$element-base-1 !default;
338
- $input-disabled-border-color: semantic-tokens.$element-ui-4 !default;
336
+ $input-bg: system-tokens.$si-sys-background-1 !default;
337
+ $input-disabled-bg: system-tokens.$si-sys-background-1 !default;
338
+ $input-disabled-color: system-tokens.$si-sys-text-disabled !default;
339
+ $input-disabled-border-color: system-tokens.$si-sys-border-4 !default;
339
340
 
340
- $input-color: semantic-tokens.$element-text-primary !default;
341
- $input-border-color: semantic-tokens.$element-ui-2 !default;
341
+ $input-color: system-tokens.$si-sys-text-primary !default;
342
+ $input-border-color: system-tokens.$si-sys-border-2 !default;
343
+ $input-focus-border-color: system-tokens.$si-sys-border-1 !default;
342
344
  $input-border-width: $border-width !default;
343
345
  $input-box-shadow: $box-shadow-inset !default;
344
346
 
@@ -347,7 +349,7 @@ $input-border-radius: semantic-tokens.$element-input-radius !default;
347
349
  $input-focus-bg: $input-bg !default;
348
350
  $input-focus-color: $input-color !default;
349
351
 
350
- $input-placeholder-color: semantic-tokens.$element-text-secondary !default;
352
+ $input-placeholder-color: system-tokens.$si-sys-text-secondary !default;
351
353
  $input-placeholder-disabled-color: transparent !default;
352
354
  $input-plaintext-color: $body-color !default;
353
355
 
@@ -374,15 +376,15 @@ $input-group-addon-padding-y: $input-padding-y !default;
374
376
  $input-group-addon-padding-x: $input-padding-x !default;
375
377
  $input-group-addon-font-weight: $input-font-weight !default;
376
378
  $input-group-addon-color: $input-color !default;
377
- $input-group-addon-bg: semantic-tokens.$element-ui-4 !default;
379
+ $input-group-addon-bg: system-tokens.$si-sys-background-1 !default;
378
380
  $input-group-addon-border-color: $input-border-color !default;
379
381
 
380
382
  // Form validation
381
383
 
382
384
  $form-feedback-font-size: $form-text-font-size !default;
383
385
  $form-feedback-valid-color: null !default;
384
- $form-feedback-warning-color: semantic-tokens.$element-text-warning !default;
385
- $form-feedback-invalid-color: semantic-tokens.$element-text-danger !default;
386
+ $form-feedback-warning-color: system-tokens.$si-sys-text-warning !default;
387
+ $form-feedback-invalid-color: system-tokens.$si-sys-text-danger !default;
386
388
 
387
389
  $form-feedback-icon-valid: semantic-tokens.$element-feedback-icon-valid;
388
390
  $form-feedback-icon-invalid: semantic-tokens.$element-feedback-icon-invalid;
@@ -395,12 +397,12 @@ $form-validation-states: (
395
397
  'icon': $form-feedback-icon-valid
396
398
  ),
397
399
  'invalid': (
398
- 'color': semantic-tokens.$element-status-danger,
400
+ 'color': system-tokens.$si-sys-border-danger,
399
401
  'text-color': $form-feedback-invalid-color,
400
402
  'icon': $form-feedback-icon-invalid
401
403
  ),
402
404
  'warning': (
403
- 'color': semantic-tokens.$element-status-warning,
405
+ 'color': system-tokens.$si-sys-border-warning,
404
406
  'text-color': $form-feedback-warning-color,
405
407
  'icon': $form-feedback-icon-warning
406
408
  )
@@ -420,22 +422,22 @@ $nav-link-padding-x: map.get(spacers.$spacers, 8);
420
422
  $nav-link-font-size: typography.$si-font-size-h4;
421
423
  $nav-link-font-weight: typography.$si-font-weight-h4;
422
424
  $nav-link-line-height: typography.$si-line-height-h4;
423
- $nav-link-color: semantic-tokens.$element-text-primary !default;
425
+ $nav-link-color: system-tokens.$si-sys-text-primary !default;
424
426
  $nav-link-hover-color: $link-hover-color !default;
425
427
  $nav-link-transition: ();
426
- $nav-link-disabled-color: semantic-tokens.$element-text-disabled !default;
428
+ $nav-link-disabled-color: system-tokens.$si-sys-text-disabled !default;
427
429
 
428
430
  $nav-tabs-border-color: transparent;
429
431
  $nav-tabs-border-width: 2px;
430
432
  $nav-tabs-border-radius: 0;
431
433
  $nav-tabs-link-hover-border-color: transparent transparent $nav-tabs-border-color !default;
432
- $nav-tabs-link-active-color: semantic-tokens.$element-action-secondary-text-hover !default;
434
+ $nav-tabs-link-active-color: system-tokens.$si-sys-text-accent-active !default;
433
435
  $nav-tabs-link-active-bg: transparent !default;
434
436
 
435
437
  // Badges
436
438
  $badge-font-size: typography.$si-font-size-body;
437
439
  $badge-font-weight: typography.$si-font-weight-body;
438
- $badge-color: semantic-tokens.$element-text-inverse !default;
440
+ $badge-color: system-tokens.$si-sys-text-inverse !default;
439
441
  $badge-padding-y: map.get(spacers.$spacers, 1);
440
442
  $badge-padding-x: map.get(spacers.$spacers, 4);
441
443
  $badge-border-radius: 0.75rem;
@@ -454,16 +456,16 @@ $dropdown-font-size: $font-size-base !default;
454
456
  // this is to have room for icon and badges
455
457
  $dropdown-line-height: $badge-height;
456
458
  $dropdown-color: $body-color !default;
457
- $dropdown-bg: semantic-tokens.$element-base-1 !default;
459
+ $dropdown-bg: system-tokens.$si-sys-background-1 !default;
458
460
  $dropdown-border-radius: semantic-tokens.$element-radius-2 !default;
459
- $dropdown-divider-bg: semantic-tokens.$element-ui-4 !default;
461
+ $dropdown-divider-bg: system-tokens.$si-sys-border-4 !default;
460
462
  $dropdown-divider-margin-y: 4px !default;
461
463
  $dropdown-box-shadow: elevation.$element-elevation-2 !default;
462
- $dropdown-link-color: semantic-tokens.$element-text-primary !default;
463
- $dropdown-link-disabled-color: semantic-tokens.$element-text-disabled !default;
464
+ $dropdown-link-color: system-tokens.$si-sys-text-primary !default;
465
+ $dropdown-link-disabled-color: system-tokens.$si-sys-text-disabled !default;
464
466
  $dropdown-item-padding-y: map.get(spacers.$spacers, 2);
465
467
  $dropdown-item-padding-x: map.get(spacers.$spacers, 5);
466
- $dropdown-header-color: semantic-tokens.$element-text-primary !default;
468
+ $dropdown-header-color: system-tokens.$si-sys-text-primary !default;
467
469
 
468
470
  // Cards
469
471
 
@@ -474,11 +476,11 @@ $card-border-radius: $border-radius !default;
474
476
  $card-inner-border-radius: $card-border-radius;
475
477
  $card-cap-padding-y: map.get(spacers.$spacers, 5) !default;
476
478
  $card-cap-padding-x: $card-spacer-x !default;
477
- $card-cap-bg: semantic-tokens.$element-base-1 !default;
479
+ $card-cap-bg: system-tokens.$si-sys-background-1 !default;
478
480
  $card-cap-color: null !default;
479
481
  $card-height: null !default;
480
482
  $card-color: null !default;
481
- $card-bg: semantic-tokens.$element-base-1 !default;
483
+ $card-bg: system-tokens.$si-sys-background-1 !default;
482
484
  $card-img-overlay-padding: spacers.$spacer !default;
483
485
  $card-group-margin: $grid-gutter-width !default;
484
486
 
@@ -486,8 +488,8 @@ $card-group-margin: $grid-gutter-width !default;
486
488
 
487
489
  $tooltip-font-size: $font-size-base !default;
488
490
  $tooltip-max-width: 200px !default;
489
- $tooltip-color: semantic-tokens.$element-ui-5 !default;
490
- $tooltip-bg: semantic-tokens.$element-ui-1 !default;
491
+ $tooltip-color: system-tokens.$si-sys-text-inverse !default;
492
+ $tooltip-bg: system-tokens.$si-sys-background-inverse !default;
491
493
  $tooltip-border-radius: semantic-tokens.$element-radius-2 !default;
492
494
  $tooltip-opacity: 0.9 !default;
493
495
  $tooltip-padding-y: map.get(spacers.$spacers, 4) !default;
@@ -501,10 +503,10 @@ $tooltip-arrow-color: $tooltip-bg !default;
501
503
  // Popovers
502
504
 
503
505
  $popover-font-size: $font-size-base;
504
- $popover-bg: semantic-tokens.$element-base-3 !default;
506
+ $popover-bg: system-tokens.$si-sys-background-3 !default;
505
507
  $popover-max-width: 276px !default;
506
508
  $popover-border-width: $border-width !default;
507
- $popover-border-color: semantic-tokens.$element-ui-4 !default;
509
+ $popover-border-color: system-tokens.$si-sys-border-4 !default;
508
510
  $popover-border-radius: $border-radius-lg !default;
509
511
  $popover-inner-border-radius: functions.subtract(
510
512
  $popover-border-radius,
@@ -512,12 +514,12 @@ $popover-inner-border-radius: functions.subtract(
512
514
  ) !default;
513
515
  $popover-box-shadow: $box-shadow !default;
514
516
 
515
- $popover-header-bg: semantic-tokens.$element-base-3 !default;
516
- $popover-header-color: semantic-tokens.$element-text-active;
517
+ $popover-header-bg: system-tokens.$si-sys-background-3 !default;
518
+ $popover-header-color: system-tokens.$si-sys-text-accent;
517
519
  $popover-header-padding-y: map.get(spacers.$spacers, 5) !default;
518
520
  $popover-header-padding-x: map.get(spacers.$spacers, 5) !default;
519
521
 
520
- $popover-body-color: semantic-tokens.$element-text-primary !default;
522
+ $popover-body-color: system-tokens.$si-sys-text-primary !default;
521
523
  $popover-body-padding-y: $popover-header-padding-y !default;
522
524
  $popover-body-padding-x: $popover-header-padding-x !default;
523
525
 
@@ -541,7 +543,7 @@ $modal-dialog-margin-y-sm-up: map.get(spacers.$spacers, 9);
541
543
  $modal-title-line-height: typography.$si-line-height-h4 !default;
542
544
 
543
545
  $modal-content-color: null !default;
544
- $modal-content-bg: semantic-tokens.$element-base-1 !default;
546
+ $modal-content-bg: system-tokens.$si-sys-background-1 !default;
545
547
  $modal-content-border-width: $border-width !default;
546
548
  $modal-content-border-radius: $border-radius-lg !default;
547
549
  $modal-content-inner-border-radius: functions.subtract(
@@ -551,7 +553,7 @@ $modal-content-inner-border-radius: functions.subtract(
551
553
  $modal-content-box-shadow-xs: $box-shadow-sm !default;
552
554
  $modal-content-box-shadow-sm-up: $box-shadow !default;
553
555
 
554
- $modal-backdrop-bg: semantic-tokens.$element-base-translucent-1 !default;
556
+ $modal-backdrop-bg: system-tokens.$si-sys-effects-backdrop !default;
555
557
  $modal-backdrop-opacity: 1 !default;
556
558
  $modal-header-border-color: $border-color !default;
557
559
  $modal-footer-border-color: $modal-header-border-color !default;
@@ -586,18 +588,18 @@ $alert-dismissible-padding-r: $alert-padding-x * 3 !default; // 3x covers width
586
588
 
587
589
  $progress-height: 0.5rem !default;
588
590
  $progress-font-size: $font-size-base * 0.75 !default;
589
- $progress-bg: semantic-tokens.$element-ui-4 !default;
591
+ $progress-bg: system-tokens.$si-sys-border-4 !default;
590
592
  $progress-border-radius: $progress-height * 0.5 !default;
591
593
  $progress-box-shadow: none !default;
592
- $progress-bar-color: semantic-tokens.$element-text-inverse !default;
593
- $progress-bar-bg: semantic-tokens.$element-ui-0 !default;
594
+ $progress-bar-color: system-tokens.$si-sys-background-accent !default;
595
+ $progress-bar-bg: system-tokens.$si-sys-background-accent !default;
594
596
  $progress-bar-animation-timing: 1s linear infinite !default;
595
597
  $progress-bar-transition: width animations.element-transition-duration(0.6s) ease;
596
598
 
597
599
  // List group
598
600
 
599
- $list-group-color: semantic-tokens.$element-text-primary !default;
600
- $list-group-bg: semantic-tokens.$element-base-1 !default;
601
+ $list-group-color: system-tokens.$si-sys-text-primary !default;
602
+ $list-group-bg: system-tokens.$si-sys-background-1 !default;
601
603
  $list-group-border-color: $border-color !default;
602
604
  $list-group-border-width: $border-width !default;
603
605
  $list-group-border-radius: $border-radius !default;
@@ -605,19 +607,19 @@ $list-group-border-radius: $border-radius !default;
605
607
  $list-group-item-padding-y: map.get(spacers.$spacers, 4) !default;
606
608
  $list-group-item-padding-x: map.get(spacers.$spacers, 6) !default; // 1.25rem !default;
607
609
 
608
- $list-group-hover-bg: semantic-tokens.$element-base-1-hover !default;
610
+ $list-group-hover-bg: system-tokens.$si-sys-background-hover !default;
609
611
  $list-group-active-color: $body-color !default;
610
- $list-group-active-bg: semantic-tokens.$element-base-1-selected !default;
612
+ $list-group-active-bg: system-tokens.$si-sys-background-selected !default;
611
613
  $list-group-active-border-color: $border-color !default;
612
614
 
613
- $list-group-disabled-color: semantic-tokens.$element-text-disabled !default;
615
+ $list-group-disabled-color: system-tokens.$si-sys-text-disabled !default;
614
616
  $list-group-disabled-bg: $list-group-bg !default;
615
617
 
616
- $list-group-action-color: semantic-tokens.$element-text-primary !default;
618
+ $list-group-action-color: system-tokens.$si-sys-text-primary !default;
617
619
  $list-group-action-hover-color: $list-group-action-color !important !default;
618
620
 
619
621
  $list-group-action-active-color: $body-color !default;
620
- $list-group-action-active-bg: semantic-tokens.$element-base-0 !default;
622
+ $list-group-action-active-bg: system-tokens.$si-sys-background-0 !default;
621
623
 
622
624
  // Image thumbnails
623
625
 
@@ -631,7 +633,7 @@ $thumbnail-box-shadow: $box-shadow-sm !default;
631
633
  // Figures
632
634
 
633
635
  $figure-caption-font-size: $small-font-size !default;
634
- $figure-caption-color: semantic-tokens.$element-text-secondary !default;
636
+ $figure-caption-color: system-tokens.$si-sys-text-secondary !default;
635
637
 
636
638
  // Breadcrumbs
637
639
 
@@ -641,7 +643,7 @@ $breadcrumb-padding-x: 0;
641
643
  $breadcrumb-item-padding-x: map.get(spacers.$spacers, 5);
642
644
  $breadcrumb-margin-bottom: 0;
643
645
  $breadcrumb-bg: inherit !default;
644
- $breadcrumb-divider-color: semantic-tokens.$element-ui-2 !default;
646
+ $breadcrumb-divider-color: system-tokens.$si-sys-text-secondary !default;
645
647
  $breadcrumb-active-color: $link-color !default;
646
648
  $breadcrumb-divider: string.quote('>') !default;
647
649
  $breadcrumb-divider-flipped: $breadcrumb-divider !default;
@@ -651,22 +653,22 @@ $breadcrumb-border-radius: 0 !default;
651
653
 
652
654
  $code-font-size: typography.$si-font-size-body !default;
653
655
  $code-line-height: typography.$si-line-height-body !default;
654
- $code-color: semantic-tokens.$element-text-primary !default;
655
- $code-background: semantic-tokens.$element-ui-4 !default;
656
+ $code-color: system-tokens.$si-sys-text-primary !default;
657
+ $code-background: system-tokens.$si-sys-background-selected !default;
656
658
  $code-padding-y: map.get(spacers.$spacers, 1) !default;
657
659
  $code-padding-x: map.get(spacers.$spacers, 2) !default;
658
660
  $code-border-radius: semantic-tokens.$element-radius-1 !default;
659
661
 
660
662
  $kbd-padding-y: 0.2rem !default;
661
663
  $kbd-padding-x: 0.4rem !default;
662
- $kbd-color: semantic-tokens.$element-text-primary !default;
663
- $kbd-bg: semantic-tokens.$element-ui-1 !default;
664
+ $kbd-color: system-tokens.$si-sys-text-primary !default;
665
+ $kbd-bg: system-tokens.$si-sys-background-3 !default;
664
666
  // variable is unused. TODO: remove it.
665
667
  $kbd-font-size: $code-font-size !default;
666
668
 
667
- $pre-color: semantic-tokens.$element-text-primary !default;
669
+ $pre-color: system-tokens.$si-sys-text-primary !default;
668
670
  $pre-padding-y: map.get(spacers.$spacers, 4) !default;
669
671
  $pre-padding-x: map.get(spacers.$spacers, 4) !default;
670
- $pre-border-color: semantic-tokens.$element-ui-4 !default;
672
+ $pre-border-color: system-tokens.$si-sys-border-4 !default;
671
673
  $pre-border-width: $border-width !default;
672
674
  $pre-border-radius: semantic-tokens.$element-radius-1 !default;
@@ -1,4 +1,5 @@
1
1
  @use '../../variables/semantic-tokens';
2
+ @use '../../variables/system-tokens';
2
3
  @use '../../variables/spacers';
3
4
  @use '../functions';
4
5
  @use '../variables';
@@ -25,6 +26,7 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
25
26
  .form-check {
26
27
  padding-block: map.get(spacers.$spacers, 1);
27
28
  padding-inline-start: calc($form-check-size + map.get(spacers.$spacers, 4));
29
+ margin-block-end: map.get(spacers.$spacers, 2);
28
30
 
29
31
  @extend %form-check-spacing;
30
32
 
@@ -35,6 +37,7 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
35
37
 
36
38
  .form-check-inline {
37
39
  display: inline-block;
40
+ margin-block-end: 0;
38
41
  margin-inline-end: variables.$form-check-inline-margin-end;
39
42
  @extend %form-check-spacing;
40
43
  }
@@ -42,24 +45,22 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
42
45
  %form-check-base {
43
46
  position: relative;
44
47
  appearance: none;
45
- background-color: semantic-tokens.$element-base-1;
46
- border: 1px solid semantic-tokens.$element-ui-1;
48
+ background-color: system-tokens.$si-sys-background-1;
49
+ border: 1px solid system-tokens.$si-sys-border-2;
47
50
  flex-shrink: 0;
48
51
  float: inline-start;
49
52
 
50
53
  &:is(:hover, .hover) {
51
- border-color: semantic-tokens.$element-ui-1;
52
- background: semantic-tokens.$element-base-1-hover;
54
+ background: system-tokens.$si-sys-background-hover;
53
55
  }
54
56
 
55
57
  &:is(:active, .active) {
56
- border-color: semantic-tokens.$element-action-primary-active;
57
- background: semantic-tokens.$element-action-primary-active;
58
+ background: system-tokens.$si-sys-background-selected;
58
59
  }
59
60
 
60
61
  &:is([disabled], .disabled) {
61
- border-color: semantic-tokens.$element-ui-3;
62
- background-color: semantic-tokens.$element-ui-5;
62
+ border-color: system-tokens.$si-sys-text-disabled;
63
+ background-color: transparent;
63
64
  }
64
65
  }
65
66
 
@@ -80,60 +81,40 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
80
81
  opacity: 0;
81
82
  }
82
83
 
83
- &:is(:checked, .checked) {
84
- background-color: semantic-tokens.$element-action-primary;
85
- border-color: semantic-tokens.$element-action-primary;
84
+ &:is(:checked, .checked, :indeterminate) {
85
+ background-color: system-tokens.$si-sys-background-accent;
86
+ border-color: transparent;
86
87
 
87
88
  &:hover {
88
- background-color: semantic-tokens.$element-action-primary-hover;
89
- border-color: semantic-tokens.$element-action-primary-hover;
89
+ background-color: system-tokens.$si-sys-background-accent-hover;
90
+ border-color: transparent;
90
91
  }
91
92
 
92
93
  &:active {
93
- background-color: semantic-tokens.$element-action-primary-active;
94
- border-color: semantic-tokens.$element-action-primary-active;
94
+ background-color: system-tokens.$si-sys-background-accent-active;
95
+ border-color: transparent;
95
96
  }
96
97
 
97
98
  &::after {
98
- background-color: semantic-tokens.$element-text-inverse;
99
+ background-color: system-tokens.$si-sys-text-on-accent;
99
100
  opacity: 1;
100
101
  }
101
102
 
102
103
  &[disabled] {
103
- background-color: semantic-tokens.$element-ui-3;
104
- border-color: semantic-tokens.$element-ui-3;
104
+ border-color: transparent;
105
+ background-color: system-tokens.$si-sys-text-disabled;
105
106
  }
106
107
  }
107
108
 
108
109
  &:indeterminate {
109
- background-color: semantic-tokens.$element-base-1;
110
- border-color: semantic-tokens.$element-action-primary;
111
-
112
110
  &::after {
113
111
  mask-image: none;
114
- background-color: semantic-tokens.$element-action-primary;
115
112
  inline-size: 0.625rem;
116
113
  block-size: 0.125rem;
117
114
  opacity: 1;
118
115
  inset-inline-start: 0.125rem;
119
116
  inset-block-start: 0.375rem;
120
117
  }
121
-
122
- &:hover {
123
- border-color: semantic-tokens.$element-action-primary-hover;
124
-
125
- &::after {
126
- background-color: semantic-tokens.$element-action-primary-hover;
127
- }
128
- }
129
-
130
- &:disabled {
131
- border-color: semantic-tokens.$element-ui-3;
132
-
133
- &::after {
134
- background-color: semantic-tokens.$element-ui-3;
135
- }
136
- }
137
118
  }
138
119
  }
139
120
 
@@ -155,36 +136,27 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
155
136
  }
156
137
 
157
138
  &:checked {
158
- border-color: semantic-tokens.$element-action-primary;
159
- background-color: semantic-tokens.$element-action-primary;
139
+ border-color: transparent;
140
+ background-color: system-tokens.$si-sys-background-accent;
160
141
 
161
142
  &::after {
162
- background-color: semantic-tokens.$element-action-primary-text;
143
+ border-color: transparent;
144
+ background-color: system-tokens.$si-sys-text-on-accent;
163
145
  }
164
146
 
165
147
  &:hover {
166
- background-color: semantic-tokens.$element-action-primary-hover;
167
- border-color: semantic-tokens.$element-action-primary-hover;
168
-
169
- &::after {
170
- background-color: semantic-tokens.$element-action-primary-text;
171
- }
148
+ border-color: transparent;
149
+ background-color: system-tokens.$si-sys-background-accent-hover;
172
150
  }
173
151
 
174
152
  &:active {
175
- border-color: semantic-tokens.$element-action-primary-active;
176
-
177
- &::after {
178
- background-color: semantic-tokens.$element-action-primary-text;
179
- }
153
+ border-color: transparent;
154
+ background-color: system-tokens.$si-sys-border-accent-active;
180
155
  }
181
156
 
182
157
  &[disabled] {
183
- border-color: semantic-tokens.$element-ui-3;
184
-
185
- &::after {
186
- background-color: semantic-tokens.$element-ui-3;
187
- }
158
+ border-color: transparent;
159
+ background-color: system-tokens.$si-sys-text-disabled;
188
160
  }
189
161
  }
190
162
  }
@@ -193,7 +165,7 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
193
165
  display: inline-block;
194
166
  position: relative;
195
167
  padding-inline-end: $form-check-padding-x;
196
- color: semantic-tokens.$element-text-primary;
168
+ color: system-tokens.$si-sys-text-primary;
197
169
  }
198
170
 
199
171
  .form-check-input {
@@ -204,7 +176,7 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
204
176
  }
205
177
 
206
178
  &[disabled] ~ .form-check-label {
207
- color: semantic-tokens.$element-text-disabled;
179
+ color: system-tokens.$si-sys-text-disabled;
208
180
  }
209
181
 
210
182
  &:is([type='checkbox'], .si-form-checkbox) {
@@ -239,7 +211,7 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
239
211
  + .btn {
240
212
  pointer-events: none;
241
213
  filter: none;
242
- color: semantic-tokens.$element-text-disabled;
214
+ color: system-tokens.$si-sys-text-disabled;
243
215
  }
244
216
  }
245
217
  }
@@ -271,7 +243,7 @@ formly-field-multicheckbox {
271
243
  }
272
244
 
273
245
  &[disabled] ~ label {
274
- color: semantic-tokens.$element-text-disabled;
246
+ color: system-tokens.$si-sys-text-disabled;
275
247
  }
276
248
  }
277
249
  }
@@ -286,7 +258,7 @@ formly-field-radio {
286
258
  }
287
259
 
288
260
  &[disabled] ~ label {
289
- color: semantic-tokens.$element-text-disabled;
261
+ color: system-tokens.$si-sys-text-disabled;
290
262
  }
291
263
  }
292
264
  }