@siemens/element-theme 51.6.0 → 51.8.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.
Files changed (54) hide show
  1. package/package.json +1 -1
  2. package/src/styles/_density.scss +43 -130
  3. package/src/styles/_variables.scss +2 -1
  4. package/src/styles/bootstrap/_alert.scss +22 -23
  5. package/src/styles/bootstrap/_badges.scss +42 -43
  6. package/src/styles/bootstrap/_button-group.scss +14 -15
  7. package/src/styles/bootstrap/_buttons.scss +70 -71
  8. package/src/styles/bootstrap/_card.scss +23 -16
  9. package/src/styles/bootstrap/_dropdowns.scss +6 -7
  10. package/src/styles/bootstrap/_functions.scss +4 -8
  11. package/src/styles/bootstrap/_images.scss +2 -2
  12. package/src/styles/bootstrap/_list-group.scss +14 -15
  13. package/src/styles/bootstrap/_modals.scss +4 -9
  14. package/src/styles/bootstrap/_nav.scss +12 -14
  15. package/src/styles/bootstrap/_pagination.scss +6 -8
  16. package/src/styles/bootstrap/_popovers.scss +4 -5
  17. package/src/styles/bootstrap/_reboot.scss +4 -3
  18. package/src/styles/bootstrap/_root.scss +11 -0
  19. package/src/styles/bootstrap/_tables.scss +4 -4
  20. package/src/styles/bootstrap/_type.scss +92 -91
  21. package/src/styles/bootstrap/_utilities.scss +39 -39
  22. package/src/styles/bootstrap/_variables.scss +129 -126
  23. package/src/styles/bootstrap/forms/_form-check.scss +22 -23
  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-range.scss +13 -13
  27. package/src/styles/bootstrap/forms/_validation.scss +2 -2
  28. package/src/styles/bootstrap/mixins/_badge-text.scss +2 -1
  29. package/src/styles/components/_application-header.scss +24 -25
  30. package/src/styles/components/_datatable.scss +19 -21
  31. package/src/styles/components/_drag_drop.scss +1 -1
  32. package/src/styles/components/_elevation.scss +5 -5
  33. package/src/styles/components/_layout.scss +9 -9
  34. package/src/styles/components/_links.scss +2 -2
  35. package/src/styles/components/_list-item.scss +8 -8
  36. package/src/styles/components/_markdown.scss +1 -1
  37. package/src/styles/components/_scrollbar.scss +4 -4
  38. package/src/styles/components/_search-bar.scss +10 -10
  39. package/src/styles/components/_skeleton.scss +5 -6
  40. package/src/styles/components/_widgets.scss +6 -3
  41. package/src/styles/mixins/_utilities.scss +87 -87
  42. package/src/styles/variables/_elevation.scss +9 -9
  43. package/src/styles/variables/_focus.scss +20 -19
  44. package/src/styles/variables/_si-sys-variables-compat.scss +10 -0
  45. package/src/styles/variables/_sizing.scss +22 -20
  46. package/src/styles/variables/_spacers.scss +29 -28
  47. package/src/styles/variables/_system-tokens.scss +2 -202
  48. package/src/styles/variables/_typography.scss +97 -95
  49. package/src/styles/variables/_utilities.scss +56 -56
  50. package/src/styles/variables/si-sys-sizing.compact.map-flat.scss +86 -0
  51. package/src/styles/variables/si-sys-sizing.default.map-flat.scss +86 -0
  52. package/src/styles/variables/si-sys-typography.compact.map-flat.scss +140 -0
  53. package/src/styles/variables/si-sys-typography.default.map-flat.scss +140 -0
  54. package/src/styles/variables/si-sys-variables.scss +400 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siemens/element-theme",
3
- "version": "51.6.0",
3
+ "version": "51.8.0",
4
4
  "description": "Element CSS theme.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,144 +1,57 @@
1
+ @use 'sass:string';
1
2
  @use 'selectors';
3
+ @use 'variables/si-sys-sizing.default.map-flat' as sizing-default;
4
+ @use 'variables/si-sys-sizing.compact.map-flat' as sizing-compact;
5
+ @use 'variables/si-sys-typography.default.map-flat' as typography-default;
6
+ @use 'variables/si-sys-typography.compact.map-flat' as typography-compact;
2
7
  @use 'variables/typography';
3
8
 
4
- @mixin define-spacer($spacer, $block-size, $inline-size) {
5
- --si-sys-sizing-spacing-y-#{$spacer}: #{$block-size};
6
- --si-sys-sizing-spacing-x-#{$spacer}: #{$inline-size};
9
+ @mixin define-sizing($tokens) {
10
+ // Emit spacing, size, icon, focus-ring, and border-radius tokens until other categories migrate.
11
+ @each $name, $value in $tokens {
12
+ $is-spacing: string.index($name, 'si-sys-sizing-spacing-') == 1;
13
+ $is-size: string.index($name, 'si-sys-sizing-size-') == 1;
14
+ $is-icon: string.index($name, 'si-sys-sizing-icon-') == 1;
15
+ $is-focus-ring: string.index($name, 'si-sys-sizing-focus-ring-') == 1;
16
+ $is-radius: string.index($name, 'si-sys-sizing-border-radius-') == 1;
17
+
18
+ @if $is-icon {
19
+ // Keep icons in rem so they scale with the root font size.
20
+ --#{$name}: #{typography.px-to-rem($value)};
21
+ } @else if $is-spacing or $is-size or $is-focus-ring or $is-radius {
22
+ --#{$name}: #{$value};
23
+ }
24
+ }
7
25
  }
8
26
 
9
- @mixin define-font($name, $font-size, $line-height) {
10
- --si-sys-typography-font-size-#{$name}: #{typography.px-to-rem($font-size)};
11
- --si-sys-typography-line-height-#{$name}: #{typography.px-to-ratio($font-size, $line-height)};
12
- }
13
-
14
- @mixin define-sizing($name, $size) {
15
- --si-sys-sizing-sizing-#{$name}: #{$size};
16
- }
17
-
18
- @mixin define-icon-size($name, $size) {
19
- --si-sys-sizing-icon-#{$name}: #{typography.px-to-rem($size)};
27
+ @mixin define-typography($tokens) {
28
+ // Emit all typography tokens except letter spacing and font families other than body/code,
29
+ // because they are unused.
30
+ @each $name, $value in $tokens {
31
+ @each $property in 'font-size', 'line-height', 'font-weight' {
32
+ $suffix: '-#{$property}';
33
+
34
+ @if string.slice($name, - string.length($suffix)) == $suffix {
35
+ --#{$name}: #{$value};
36
+ }
37
+ }
38
+
39
+ @if $name == 'si-sys-typography-body-font-family' or
40
+ $name == 'si-sys-typography-code-font-family'
41
+ {
42
+ --#{$name}: #{$value};
43
+ }
44
+ }
20
45
  }
21
46
 
22
47
  #{selectors.$root} {
23
- @include define-spacer(10, 2px, 2px);
24
- @include define-spacer(20, 4px, 4px);
25
- @include define-spacer(30, 6px, 6px);
26
- @include define-spacer(40, 8px, 8px);
27
- @include define-spacer(50, 12px, 12px);
28
- @include define-spacer(60, 16px, 16px);
29
- @include define-spacer(70, 20px, 20px);
30
- @include define-spacer(80, 24px, 24px);
31
- @include define-spacer(90, 32px, 32px);
32
- @include define-spacer(100, 40px, 40px);
33
- @include define-spacer(110, 48px, 48px);
34
- @include define-spacer(120, 56px, 56px);
35
- @include define-spacer(130, 64px, 64px);
36
- @include define-spacer(140, 96px, 96px);
48
+ @include define-sizing(sizing-default.$tokens);
37
49
 
38
- @include define-font(body-sm, 12px, 16px);
39
- @include define-font(body, 14px, 16px);
40
- @include define-font(body-lg, 16px, 20px);
41
- @include define-font(body-paragraph, 14px, 20px);
42
- @include define-font(h1, 28px, 36px);
43
- @include define-font(h2, 24px, 32px);
44
- @include define-font(h3, 20px, 24px);
45
- @include define-font(h4, 16px, 20px);
46
- @include define-font(h5, 14px, 20px);
47
- @include define-font(h6, 12px, 16px);
48
- @include define-font(display, 32px, 40px);
49
- @include define-font(display-lg, 40px, 52px);
50
- @include define-font(display-xl, 48px, 64px);
51
- @include define-font(display-xxl, 58px, 72px);
52
- @include define-font(code-sm, 12px, 16px);
53
- @include define-font(code, 14px, 20px);
54
- @include define-font(code-lg, 16px, 20px);
55
-
56
- @include define-sizing(10, 2px);
57
- @include define-sizing(20, 4px);
58
- @include define-sizing(30, 8px);
59
- @include define-sizing(40, 12px);
60
- @include define-sizing(50, 16px);
61
- @include define-sizing(60, 20px);
62
- @include define-sizing(70, 24px);
63
- @include define-sizing(80, 32px);
64
- @include define-sizing(90, 40px);
65
- @include define-sizing(100, 48px);
66
- @include define-sizing(110, 64px);
67
- @include define-sizing(120, 80px);
68
- @include define-sizing(130, 96px);
69
- @include define-sizing(140, 120px);
70
- @include define-sizing(150, 160px);
71
- @include define-sizing(160, 240px);
72
- @include define-sizing(170, 320px);
73
- @include define-sizing(180, 480px);
74
- @include define-sizing(190, 600px);
75
- @include define-sizing(200, 720px);
76
-
77
- @include define-icon-size(sm, 16px);
78
- @include define-icon-size(md, 20px);
79
- @include define-icon-size(lg, 24px);
80
- @include define-icon-size(xl, 32px);
81
- @include define-icon-size(xxl, 48px);
50
+ @include define-typography(typography-default.$tokens);
82
51
  }
83
52
 
84
53
  .density-compact {
85
- @include define-spacer(10, 2px, 2px);
86
- @include define-spacer(20, 2px, 2px);
87
- @include define-spacer(30, 4px, 4px);
88
- @include define-spacer(40, 6px, 6px);
89
- @include define-spacer(50, 8px, 8px);
90
- @include define-spacer(60, 12px, 12px);
91
- @include define-spacer(70, 16px, 16px);
92
- @include define-spacer(80, 20px, 20px);
93
- @include define-spacer(90, 24px, 24px);
94
- @include define-spacer(100, 32px, 32px);
95
- @include define-spacer(110, 40px, 40px);
96
- @include define-spacer(120, 48px, 48px);
97
- @include define-spacer(130, 64px, 64px);
98
- @include define-spacer(140, 80px, 80px);
99
-
100
- @include define-font(body-sm, 10px, 12px);
101
- @include define-font(body, 12px, 14px);
102
- @include define-font(body-lg, 14px, 16px);
103
- @include define-font(body-paragraph, 12px, 16px);
104
- @include define-font(h1, 24px, 28px);
105
- @include define-font(h2, 20px, 24px);
106
- @include define-font(h3, 16px, 18px);
107
- @include define-font(h4, 14px, 16px);
108
- @include define-font(h5, 14px, 16px);
109
- @include define-font(h6, 12px, 16px);
110
- @include define-font(display, 28px, 32px);
111
- @include define-font(display-lg, 32px, 40px);
112
- @include define-font(display-xl, 40px, 48px);
113
- @include define-font(display-xxl, 48px, 56px);
114
- @include define-font(code-sm, 12px, 16px);
115
- @include define-font(code, 14px, 20px);
116
- @include define-font(code-lg, 16px, 20px);
117
-
118
- @include define-sizing(10, 2px);
119
- @include define-sizing(20, 2px);
120
- @include define-sizing(30, 4px);
121
- @include define-sizing(40, 8px);
122
- @include define-sizing(50, 12px);
123
- @include define-sizing(60, 16px);
124
- @include define-sizing(70, 20px);
125
- @include define-sizing(80, 24px);
126
- @include define-sizing(90, 32px);
127
- @include define-sizing(100, 40px);
128
- @include define-sizing(110, 48px);
129
- @include define-sizing(120, 64px);
130
- @include define-sizing(130, 80px);
131
- @include define-sizing(140, 96px);
132
- @include define-sizing(150, 120px);
133
- @include define-sizing(160, 160px);
134
- @include define-sizing(170, 240px);
135
- @include define-sizing(180, 320px);
136
- @include define-sizing(190, 480px);
137
- @include define-sizing(200, 600px);
54
+ @include define-sizing(sizing-compact.$tokens);
138
55
 
139
- @include define-icon-size(sm, 12px);
140
- @include define-icon-size(md, 16px);
141
- @include define-icon-size(lg, 20px);
142
- @include define-icon-size(xl, 24px);
143
- @include define-icon-size(xxl, 32px);
56
+ @include define-typography(typography-compact.$tokens);
144
57
  }
@@ -1,7 +1,8 @@
1
1
  // the minimal set of variables w/o all the heavy bootstrap stuff
2
2
  @forward './variables/animations';
3
3
  @forward './variables/semantic-tokens';
4
- @forward './variables/system-tokens';
4
+ @forward './variables/si-sys-variables';
5
+ @forward './variables/si-sys-variables-compat';
5
6
  @forward './variables/typography';
6
7
  @forward './variables/elevation';
7
8
  @forward './variables/focus';
@@ -1,5 +1,4 @@
1
- @use '../variables/system-tokens';
2
- @use '../variables/typography';
1
+ @use '../variables/si-sys-variables';
3
2
  @use 'variables';
4
3
 
5
4
  .alert {
@@ -22,12 +21,12 @@
22
21
 
23
22
  .alert,
24
23
  .alert-link {
25
- font-size: typography.$si-font-size-h4;
26
- line-height: typography.$si-line-height-h4;
24
+ font-size: si-sys-variables.$si-sys-typography-h4-font-size;
25
+ line-height: si-sys-variables.$si-sys-typography-h4-line-height;
27
26
  }
28
27
 
29
28
  .alert-link {
30
- font-weight: typography.$si-font-weight-h4;
29
+ font-weight: si-sys-variables.$si-sys-typography-h4-font-weight;
31
30
  color: inherit;
32
31
 
33
32
  &:hover {
@@ -36,37 +35,37 @@
36
35
  }
37
36
 
38
37
  .alert-success {
39
- --color-bar: #{system-tokens.$si-sys-color-border-success};
40
- color: system-tokens.$si-sys-color-text-success;
41
- background: system-tokens.$si-sys-color-background-success-subtle;
38
+ --color-bar: #{si-sys-variables.$si-sys-color-border-success};
39
+ color: si-sys-variables.$si-sys-color-text-success;
40
+ background: si-sys-variables.$si-sys-color-background-success-subtle;
42
41
  }
43
42
 
44
43
  .alert-warning {
45
- --color-bar: #{system-tokens.$si-sys-color-border-warning};
46
- color: system-tokens.$si-sys-color-text-warning;
47
- background: system-tokens.$si-sys-color-background-warning-subtle;
44
+ --color-bar: #{si-sys-variables.$si-sys-color-border-warning};
45
+ color: si-sys-variables.$si-sys-color-text-warning;
46
+ background: si-sys-variables.$si-sys-color-background-warning-subtle;
48
47
  }
49
48
 
50
49
  .alert-caution {
51
- --color-bar: #{system-tokens.$si-sys-color-border-caution};
52
- color: system-tokens.$si-sys-color-text-caution;
53
- background: system-tokens.$si-sys-color-background-caution-subtle;
50
+ --color-bar: #{si-sys-variables.$si-sys-color-border-caution};
51
+ color: si-sys-variables.$si-sys-color-text-caution;
52
+ background: si-sys-variables.$si-sys-color-background-caution-subtle;
54
53
  }
55
54
 
56
55
  .alert-danger {
57
- --color-bar: #{system-tokens.$si-sys-color-border-danger};
58
- color: system-tokens.$si-sys-color-text-danger;
59
- background: system-tokens.$si-sys-color-background-danger-subtle;
56
+ --color-bar: #{si-sys-variables.$si-sys-color-border-danger};
57
+ color: si-sys-variables.$si-sys-color-text-danger;
58
+ background: si-sys-variables.$si-sys-color-background-danger-subtle;
60
59
  }
61
60
 
62
61
  .alert-critical {
63
- --color-bar: #{system-tokens.$si-sys-color-border-critical};
64
- color: system-tokens.$si-sys-color-text-critical;
65
- background: system-tokens.$si-sys-color-background-critical-subtle;
62
+ --color-bar: #{si-sys-variables.$si-sys-color-border-critical};
63
+ color: si-sys-variables.$si-sys-color-text-critical;
64
+ background: si-sys-variables.$si-sys-color-background-critical-subtle;
66
65
  }
67
66
 
68
67
  .alert-info {
69
- --color-bar: #{system-tokens.$si-sys-color-border-information};
70
- color: system-tokens.$si-sys-color-text-information;
71
- background: system-tokens.$si-sys-color-background-information-subtle;
68
+ --color-bar: #{si-sys-variables.$si-sys-color-border-information};
69
+ color: si-sys-variables.$si-sys-color-text-information;
70
+ background: si-sys-variables.$si-sys-color-background-information-subtle;
72
71
  }
@@ -1,6 +1,5 @@
1
- @use '../variables/system-tokens';
1
+ @use '../variables/si-sys-variables';
2
2
  @use '../variables/spacers';
3
- @use '../variables/typography';
4
3
  @use './mixins/badge-text';
5
4
  @use './variables';
6
5
 
@@ -9,21 +8,21 @@
9
8
  // stylelint-disable declaration-no-important
10
9
 
11
10
  %badge-text-emphasis {
12
- font-size: typography.$si-font-size-h5;
13
- font-weight: typography.$si-font-weight-h5;
11
+ font-size: si-sys-variables.$si-sys-typography-h5-font-size;
12
+ font-weight: si-sys-variables.$si-sys-typography-h5-font-weight;
14
13
  }
15
14
 
16
15
  .badge {
17
16
  display: inline-block;
18
- color: system-tokens.$si-sys-color-text-primary;
17
+ color: si-sys-variables.$si-sys-color-text-primary;
19
18
  padding-block: variables.$badge-padding-y;
20
19
  padding-inline: variables.$badge-padding-x;
21
20
  margin-block: 0;
22
21
  margin-inline: map.get(spacers.$spacers-inline, 4);
23
22
  line-height: variables.$badge-line-height;
24
23
  flex-shrink: 0;
25
- font-size: typography.$si-font-size-body;
26
- font-weight: typography.$si-font-weight-body;
24
+ font-size: si-sys-variables.$si-sys-typography-body-font-size;
25
+ font-weight: si-sys-variables.$si-sys-typography-body-font-weight;
27
26
  max-inline-size: 24.5ch;
28
27
  // Make min-inline-size equal the badge height to create a circular badge when there's only one character.
29
28
  min-inline-size: variables.$badge-height;
@@ -41,89 +40,89 @@
41
40
  }
42
41
 
43
42
  &.bg-default {
44
- background-color: system-tokens.$si-sys-color-background-0 !important;
45
- color: system-tokens.$si-sys-color-text-primary;
46
- outline: 1px solid system-tokens.$si-sys-color-border-4;
43
+ background-color: si-sys-variables.$si-sys-color-background-0 !important;
44
+ color: si-sys-variables.$si-sys-color-text-primary;
45
+ outline: 1px solid si-sys-variables.$si-sys-color-border-4;
47
46
  }
48
47
 
49
48
  &.bg-primary {
50
- background-color: system-tokens.$si-sys-color-background-accent !important;
51
- color: system-tokens.$si-sys-color-text-on-accent;
49
+ background-color: si-sys-variables.$si-sys-color-background-accent !important;
50
+ color: si-sys-variables.$si-sys-color-text-on-accent;
52
51
  }
53
52
 
54
53
  &.bg-secondary {
55
- background-color: system-tokens.$si-sys-color-background-neutral !important;
56
- color: system-tokens.$si-sys-color-text-on-neutral;
54
+ background-color: si-sys-variables.$si-sys-color-background-neutral !important;
55
+ color: si-sys-variables.$si-sys-color-text-on-neutral;
57
56
  }
58
57
 
59
58
  &.bg-info {
60
- background-color: system-tokens.$si-sys-color-background-information-subtle !important;
61
- color: system-tokens.$si-sys-color-text-information;
59
+ background-color: si-sys-variables.$si-sys-color-background-information-subtle !important;
60
+ color: si-sys-variables.$si-sys-color-text-information;
62
61
  }
63
62
 
64
63
  &.bg-success {
65
- background-color: system-tokens.$si-sys-color-background-success-subtle !important;
66
- color: system-tokens.$si-sys-color-text-success;
64
+ background-color: si-sys-variables.$si-sys-color-background-success-subtle !important;
65
+ color: si-sys-variables.$si-sys-color-text-success;
67
66
  }
68
67
 
69
68
  &.bg-caution {
70
- background-color: system-tokens.$si-sys-color-background-caution-subtle !important;
71
- color: system-tokens.$si-sys-color-text-caution;
69
+ background-color: si-sys-variables.$si-sys-color-background-caution-subtle !important;
70
+ color: si-sys-variables.$si-sys-color-text-caution;
72
71
  }
73
72
 
74
73
  &.bg-warning {
75
- background-color: system-tokens.$si-sys-color-background-warning-subtle !important;
76
- color: system-tokens.$si-sys-color-text-warning;
74
+ background-color: si-sys-variables.$si-sys-color-background-warning-subtle !important;
75
+ color: si-sys-variables.$si-sys-color-text-warning;
77
76
  }
78
77
 
79
78
  &.bg-danger {
80
- background-color: system-tokens.$si-sys-color-background-danger-subtle !important;
81
- color: system-tokens.$si-sys-color-text-danger;
79
+ background-color: si-sys-variables.$si-sys-color-background-danger-subtle !important;
80
+ color: si-sys-variables.$si-sys-color-text-danger;
82
81
  }
83
82
 
84
83
  &.bg-critical {
85
- background-color: system-tokens.$si-sys-color-background-critical-subtle !important;
86
- color: system-tokens.$si-sys-color-text-critical;
84
+ background-color: si-sys-variables.$si-sys-color-background-critical-subtle !important;
85
+ color: si-sys-variables.$si-sys-color-text-critical;
87
86
  }
88
87
 
89
88
  &.bg-inverse {
90
- background-color: system-tokens.$si-sys-color-background-inverse !important;
91
- color: system-tokens.$si-sys-color-text-inverse;
89
+ background-color: si-sys-variables.$si-sys-color-background-inverse !important;
90
+ color: si-sys-variables.$si-sys-color-text-inverse;
92
91
  }
93
92
 
94
93
  &.bg-info-emphasis {
95
- background: system-tokens.$si-sys-color-background-information;
96
- color: system-tokens.$si-sys-color-text-on-information;
94
+ background: si-sys-variables.$si-sys-color-background-information;
95
+ color: si-sys-variables.$si-sys-color-text-on-information;
97
96
  @extend %badge-text-emphasis;
98
97
  }
99
98
 
100
99
  &.bg-success-emphasis {
101
- background: system-tokens.$si-sys-color-background-success;
102
- color: system-tokens.$si-sys-color-text-on-success;
100
+ background: si-sys-variables.$si-sys-color-background-success;
101
+ color: si-sys-variables.$si-sys-color-text-on-success;
103
102
  @extend %badge-text-emphasis;
104
103
  }
105
104
 
106
105
  &.bg-warning-emphasis {
107
- background: system-tokens.$si-sys-color-background-warning;
108
- color: system-tokens.$si-sys-color-text-on-warning;
106
+ background: si-sys-variables.$si-sys-color-background-warning;
107
+ color: si-sys-variables.$si-sys-color-text-on-warning;
109
108
  @extend %badge-text-emphasis;
110
109
  }
111
110
 
112
111
  &.bg-danger-emphasis {
113
- background: system-tokens.$si-sys-color-background-danger;
114
- color: system-tokens.$si-sys-color-text-on-danger;
112
+ background: si-sys-variables.$si-sys-color-background-danger;
113
+ color: si-sys-variables.$si-sys-color-text-on-danger;
115
114
  @extend %badge-text-emphasis;
116
115
  }
117
116
 
118
117
  &.bg-critical-emphasis {
119
- background: system-tokens.$si-sys-color-background-critical;
120
- color: system-tokens.$si-sys-color-text-on-critical;
118
+ background: si-sys-variables.$si-sys-color-background-critical;
119
+ color: si-sys-variables.$si-sys-color-text-on-critical;
121
120
  @extend %badge-text-emphasis;
122
121
  }
123
122
 
124
123
  &.bg-caution-emphasis {
125
- background: system-tokens.$si-sys-color-background-caution;
126
- color: system-tokens.$si-sys-color-text-on-caution;
124
+ background: si-sys-variables.$si-sys-color-background-caution;
125
+ color: si-sys-variables.$si-sys-color-text-on-caution;
127
126
  @extend %badge-text-emphasis;
128
127
  }
129
128
 
@@ -146,14 +145,14 @@
146
145
  position: absolute;
147
146
  inset-block-start: 0;
148
147
  inset-inline-end: 0;
149
- background-color: system-tokens.$si-sys-color-background-danger;
148
+ background-color: si-sys-variables.$si-sys-color-background-danger;
150
149
  }
151
150
  }
152
151
 
153
152
  .badge-text {
154
153
  @include badge-text.badge-text();
155
- background-color: system-tokens.$si-sys-color-background-danger;
156
- color: system-tokens.$si-sys-color-text-on-danger;
154
+ background-color: si-sys-variables.$si-sys-color-background-danger;
155
+ color: si-sys-variables.$si-sys-color-text-on-danger;
157
156
  position: relative;
158
157
  }
159
158
 
@@ -1,7 +1,6 @@
1
1
  @use '../variables/focus';
2
- @use '../variables/semantic-tokens';
3
2
  @use '../variables/spacers';
4
- @use '../variables/system-tokens';
3
+ @use '../variables/si-sys-variables';
5
4
  @use '../variables/typography';
6
5
  @use './variables';
7
6
 
@@ -24,14 +23,14 @@
24
23
 
25
24
  > .btn:first-of-type:not(.btn-circle),
26
25
  > label:first-of-type .btn:not(.btn-circle) {
27
- border-start-start-radius: semantic-tokens.$element-button-radius;
28
- border-end-start-radius: semantic-tokens.$element-button-radius;
26
+ border-start-start-radius: si-sys-variables.$si-sys-sizing-border-radius-xs;
27
+ border-end-start-radius: si-sys-variables.$si-sys-sizing-border-radius-xs;
29
28
  }
30
29
 
31
30
  > .btn:last-of-type:not(.btn-circle),
32
31
  > label:last-of-type .btn:not(.btn-circle) {
33
- border-start-end-radius: semantic-tokens.$element-button-radius;
34
- border-end-end-radius: semantic-tokens.$element-button-radius;
32
+ border-start-end-radius: si-sys-variables.$si-sys-sizing-border-radius-xs;
33
+ border-end-end-radius: si-sys-variables.$si-sys-sizing-border-radius-xs;
35
34
  }
36
35
 
37
36
  > .btn-check:focus + .btn,
@@ -81,18 +80,18 @@
81
80
  }
82
81
 
83
82
  &[inert] {
84
- opacity: semantic-tokens.$element-action-disabled-opacity;
83
+ opacity: si-sys-variables.$si-sys-color-effects-disable-opacity;
85
84
  }
86
85
 
87
86
  // Selection buttons
88
87
  .btn-check + .btn,
89
88
  label.btn:has(.btn-check) {
90
89
  --btn-border-width: 1px;
91
- --btn-border-color: #{system-tokens.$si-sys-color-border-4};
92
- --btn-border-color-hover: #{system-tokens.$si-sys-color-border-4};
90
+ --btn-border-color: #{si-sys-variables.$si-sys-color-border-4};
91
+ --btn-border-color-hover: #{si-sys-variables.$si-sys-color-border-4};
93
92
  cursor: pointer;
94
93
  background: transparent;
95
- color: system-tokens.$si-sys-color-text-primary;
94
+ color: si-sys-variables.$si-sys-color-text-primary;
96
95
  transition: none;
97
96
 
98
97
  &.btn-icon {
@@ -115,20 +114,20 @@
115
114
 
116
115
  .btn-check + .btn:hover,
117
116
  label:has(.btn-check:not(:checked)):hover > * {
118
- color: system-tokens.$si-sys-color-text-accent-hover;
117
+ color: si-sys-variables.$si-sys-color-text-accent-hover;
119
118
  }
120
119
 
121
120
  .btn-check:checked {
122
121
  + .btn {
123
- background: system-tokens.$si-sys-color-background-accent-secondary-active;
124
- border-color: system-tokens.$si-sys-color-border-accent-active;
125
- color: system-tokens.$si-sys-color-text-accent-active;
122
+ background: si-sys-variables.$si-sys-color-background-accent-secondary-active;
123
+ border-color: si-sys-variables.$si-sys-color-border-accent-active;
124
+ color: si-sys-variables.$si-sys-color-text-accent-active;
126
125
  z-index: 2;
127
126
  }
128
127
 
129
128
  + .btn:hover,
130
129
  &:hover + .btn {
131
- color: system-tokens.$si-sys-color-text-primary;
130
+ color: si-sys-variables.$si-sys-color-text-primary;
132
131
  }
133
132
  }
134
133