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

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 (53) hide show
  1. package/package.json +1 -1
  2. package/src/styles/_density.scss +144 -0
  3. package/src/styles/_utilities.scss +5 -0
  4. package/src/styles/_variables.scss +1 -0
  5. package/src/styles/bootstrap/_badges.scss +3 -3
  6. package/src/styles/bootstrap/_button-group.scss +3 -3
  7. package/src/styles/bootstrap/_buttons.scss +5 -6
  8. package/src/styles/bootstrap/_card.scss +19 -12
  9. package/src/styles/bootstrap/_dropdowns.scss +13 -13
  10. package/src/styles/bootstrap/_images.scss +4 -2
  11. package/src/styles/bootstrap/_list-group.scss +1 -1
  12. package/src/styles/bootstrap/_modals.scss +11 -10
  13. package/src/styles/bootstrap/_nav.scss +3 -3
  14. package/src/styles/bootstrap/_pagination.scss +4 -4
  15. package/src/styles/bootstrap/_popovers.scss +3 -2
  16. package/src/styles/bootstrap/_reboot.scss +4 -4
  17. package/src/styles/bootstrap/_tables.scss +8 -6
  18. package/src/styles/bootstrap/_type.scss +69 -1
  19. package/src/styles/bootstrap/_utilities.scss +2 -7
  20. package/src/styles/bootstrap/_variables.scss +78 -64
  21. package/src/styles/bootstrap/forms/_form-check.scss +12 -14
  22. package/src/styles/bootstrap/forms/_form-control.scss +19 -13
  23. package/src/styles/bootstrap/forms/_form-file.scss +2 -2
  24. package/src/styles/bootstrap/forms/_form-label.scss +1 -1
  25. package/src/styles/bootstrap/forms/_form-layout.scss +2 -2
  26. package/src/styles/bootstrap/forms/_form-range.scss +0 -1
  27. package/src/styles/bootstrap/forms/_validation.scss +3 -3
  28. package/src/styles/bootstrap/mixins/_badge-text.scss +3 -3
  29. package/src/styles/bootstrap/mixins/_form-layout.scss +4 -4
  30. package/src/styles/bootstrap/mixins/_grid.scss +3 -3
  31. package/src/styles/bootstrap/mixins/_utilities.scss +14 -3
  32. package/src/styles/components/_application-header.scss +8 -9
  33. package/src/styles/components/_datatable.scss +23 -11
  34. package/src/styles/components/_drag_drop.scss +1 -1
  35. package/src/styles/components/_elevation.scss +11 -6
  36. package/src/styles/components/_layout.scss +12 -12
  37. package/src/styles/components/_list-item.scss +48 -18
  38. package/src/styles/components/_markdown.scss +8 -8
  39. package/src/styles/components/_pills.scss +4 -4
  40. package/src/styles/components/_search-bar.scss +67 -0
  41. package/src/styles/components/_skeleton.scss +1 -1
  42. package/src/styles/components/_switch.scss +4 -4
  43. package/src/styles/components/_widgets.scss +11 -9
  44. package/src/styles/mixins/_utilities.scss +259 -0
  45. package/src/styles/variables/_elevation.scss +14 -12
  46. package/src/styles/variables/_si-vars.scss +13 -7
  47. package/src/styles/variables/_sizing.scss +22 -0
  48. package/src/styles/variables/_spacers.scss +53 -25
  49. package/src/styles/variables/_system-tokens.scss +18 -18
  50. package/src/styles/variables/_typography.scss +91 -53
  51. package/src/styles/variables/_utilities.scss +64 -51
  52. package/src/theme/_theme-element.scss +36 -36
  53. package/src/theme.scss +3 -0
@@ -4,24 +4,48 @@
4
4
 
5
5
  @use 'sass:map';
6
6
 
7
+ .list,
7
8
  ul:has(.list-item),
8
9
  ol:has(.list-item) {
10
+ display: flex;
11
+ flex-direction: column;
9
12
  margin: 0;
10
13
  padding: 0;
11
14
  list-style: none;
12
15
  }
13
16
 
17
+ .list {
18
+ &.list-divider > li:not(:last-child) {
19
+ border-block-end: 1px solid variables.$si-sys-border-4;
20
+ }
21
+
22
+ &.list-filled,
23
+ &.list-outline {
24
+ gap: map.get(variables.$spacers, 4);
25
+ }
26
+
27
+ &.list-filled .list-item {
28
+ background-color: variables.$si-sys-background-1;
29
+ border-radius: variables.$element-radius-2;
30
+ }
31
+
32
+ &.list-outline .list-item {
33
+ border: 1px solid variables.$si-sys-border-4;
34
+ border-radius: variables.$element-radius-2;
35
+ }
36
+ }
37
+
14
38
  .list-item {
15
39
  display: grid;
16
- grid-template-columns: auto 1fr auto;
40
+ grid-template-columns: auto auto 1fr auto;
17
41
  grid-template-areas:
18
- '. timestamp timestamp'
19
- 'indicator title action'
20
- '. description description'
21
- '. metadata metadata'
22
- '. quick-actions quick-actions';
23
- padding-block: map.get(variables.$spacers, 4);
24
- padding-inline: map.get(variables.$spacers, 6);
42
+ '. . timestamp timestamp'
43
+ 'check indicator title action'
44
+ '. . description description'
45
+ '. . metadata metadata'
46
+ '. . quick-actions quick-actions';
47
+ padding-block: map.get(variables.$spacers-block, 4);
48
+ padding-inline: map.get(variables.$spacers-inline, 6);
25
49
 
26
50
  @include typography.si-font(
27
51
  typography.$si-font-size-body,
@@ -30,7 +54,13 @@ ol:has(.list-item) {
30
54
  );
31
55
 
32
56
  > * {
33
- grid-column: 2 / -1;
57
+ grid-column: 3 / -1;
58
+ }
59
+
60
+ .list-item-check {
61
+ grid-area: check;
62
+ align-self: center;
63
+ margin-inline-end: map.get(variables.$spacers, 4);
34
64
  }
35
65
 
36
66
  .list-item-indicator {
@@ -41,10 +71,10 @@ ol:has(.list-item) {
41
71
  // This restricts the height on purpose.
42
72
  // Content taller than the title remains centered and overflows on both sides.
43
73
  max-block-size: calc(
44
- #{typography.$si-line-height-h5 * typography.$si-font-size-h5} +
45
- #{map.get(variables.$spacers, 4) * 2}
74
+ #{typography.$si-line-height-h5} * #{typography.$si-font-size-h5} +
75
+ #{map.get(variables.$spacers-block, 4)} * 2
46
76
  );
47
- margin-inline-end: map.get(variables.$spacers, 4);
77
+ margin-inline-end: map.get(variables.$spacers-inline, 4);
48
78
  }
49
79
 
50
80
  .list-item-timestamp {
@@ -55,7 +85,7 @@ ol:has(.list-item) {
55
85
 
56
86
  .list-item-title {
57
87
  grid-area: title;
58
- padding-block: map.get(variables.$spacers, 4);
88
+ padding-block: map.get(variables.$spacers-block, 4);
59
89
  margin-block-end: 0;
60
90
 
61
91
  @include typography.si-font(
@@ -94,7 +124,7 @@ ol:has(.list-item) {
94
124
 
95
125
  .list-item-description {
96
126
  grid-area: description;
97
- margin-block-end: map.get(variables.$spacers, 4);
127
+ margin-block-end: map.get(variables.$spacers-block, 4);
98
128
  }
99
129
 
100
130
  .list-item-metadata {
@@ -103,7 +133,7 @@ ol:has(.list-item) {
103
133
  flex-direction: row;
104
134
  align-items: center;
105
135
  color: variables.$si-sys-text-secondary;
106
- margin-block-end: map.get(variables.$spacers, 4);
136
+ margin-block-end: map.get(variables.$spacers-block, 4);
107
137
 
108
138
  a:not(:hover) {
109
139
  color: variables.$si-sys-text-secondary;
@@ -118,14 +148,14 @@ ol:has(.list-item) {
118
148
  block-size: 0.125rem;
119
149
  border-radius: 50%;
120
150
  background-color: variables.$si-sys-text-secondary;
121
- margin-inline: map.get(variables.$spacers, 2);
151
+ margin-inline: map.get(variables.$spacers-inline, 2);
122
152
  }
123
153
  }
124
154
 
125
155
  .list-item-quick-actions {
126
156
  grid-area: quick-actions;
127
157
  display: flex;
128
- gap: map.get(variables.$spacers, 4);
158
+ gap: map.get(variables.$spacers-block, 4) map.get(variables.$spacers-inline, 4);
129
159
  }
130
160
 
131
161
  &.list-item-action {
@@ -138,7 +168,7 @@ ol:has(.list-item) {
138
168
  }
139
169
 
140
170
  &:active {
141
- background-color: variables.$si-sys-background-selected;
171
+ background-color: variables.$si-sys-background-active;
142
172
  }
143
173
 
144
174
  &:focus-visible {
@@ -7,10 +7,10 @@
7
7
  word-wrap: break-word;
8
8
  overflow-wrap: break-word;
9
9
  word-break: break-word;
10
- line-height: variables.px-to-ratio(variables.$si-font-size-body, 20px);
10
+ line-height: variables.$si-line-height-body-paragraph;
11
11
 
12
12
  strong {
13
- font-weight: variables.$si-font-weight-semibold;
13
+ font-weight: variables.$si-font-weight-sbold;
14
14
  }
15
15
 
16
16
  :is(ul, ol) {
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  li {
30
- margin-block: map.get(variables.$spacers, 2);
30
+ margin-block: map.get(variables.$spacers-block, 2);
31
31
  max-inline-size: 100%;
32
32
  overflow-wrap: break-word;
33
33
  }
@@ -36,8 +36,8 @@
36
36
  list-style: none;
37
37
 
38
38
  .form-check-input {
39
- margin-inline-start: calc(-1rem - map.get(variables.$spacers, 2));
40
- margin-inline-end: map.get(variables.$spacers, 2);
39
+ margin-inline-start: calc(-1rem - map.get(variables.$spacers-inline, 2));
40
+ margin-inline-end: map.get(variables.$spacers-inline, 2);
41
41
  vertical-align: text-bottom;
42
42
  pointer-events: none;
43
43
  }
@@ -64,7 +64,7 @@
64
64
 
65
65
  blockquote {
66
66
  border-inline-start: 4px solid variables.$si-sys-border-4;
67
- padding-inline-start: map.get(variables.$spacers, 4);
67
+ padding-inline-start: map.get(variables.$spacers-inline, 4);
68
68
 
69
69
  p {
70
70
  margin-block-end: 0;
@@ -93,7 +93,7 @@
93
93
 
94
94
  :is(ul, ol) {
95
95
  // stylelint-disable-next-line declaration-no-important
96
- padding-inline-start: map.get(variables.$spacers, 6) !important;
96
+ padding-inline-start: map.get(variables.$spacers-inline, 6) !important;
97
97
  }
98
98
 
99
99
  td:last-child,
@@ -126,6 +126,6 @@
126
126
  inline-size: auto;
127
127
  object-fit: contain;
128
128
  display: block;
129
- margin-block: map.get(variables.$spacers, 4);
129
+ margin-block: map.get(variables.$spacers-block, 4);
130
130
  }
131
131
  }
@@ -7,11 +7,11 @@
7
7
  align-items: center;
8
8
  border-radius: 0.75rem;
9
9
  background: var(--filter-pill-background-color, variables.$si-sys-background-0);
10
- padding-inline: map.get(variables.$spacers, 4);
10
+ padding-inline: map.get(variables.$spacers-inline, 4);
11
11
  max-inline-size: 100%;
12
12
 
13
13
  &.active {
14
- background: variables.$si-sys-background-selected;
14
+ background: variables.$si-sys-background-active;
15
15
  }
16
16
 
17
17
  &.pill-interactive {
@@ -23,13 +23,13 @@
23
23
  }
24
24
 
25
25
  :is(.name, .value) {
26
- padding-block: map.get(variables.$spacers, 2);
26
+ padding-block: map.get(variables.$spacers-block, 2);
27
27
  }
28
28
  }
29
29
 
30
30
  .pill-group {
31
31
  display: flex;
32
- gap: map.get(variables.$spacers, 1);
32
+ gap: map.get(variables.$spacers-block, 1) map.get(variables.$spacers-inline, 1);
33
33
 
34
34
  .pill {
35
35
  border-radius: 0;
@@ -0,0 +1,67 @@
1
+ @use '../variables';
2
+ @use '../variables/semantic-tokens';
3
+ @use '../variables/system-tokens';
4
+ @use '../bootstrap/variables' as bootstrap-variables;
5
+
6
+ @use 'sass:map';
7
+
8
+ .search-bar {
9
+ position: relative;
10
+
11
+ &:has(.search-bar-input:disabled) {
12
+ .search-bar-icon,
13
+ .search-bar-input,
14
+ .search-bar-input::placeholder {
15
+ color: system-tokens.$si-sys-text-disabled;
16
+ }
17
+ }
18
+ }
19
+
20
+ .search-bar-input.form-control {
21
+ transition: none;
22
+ background-color: system-tokens.$si-sys-background-1 !important; // stylelint-disable-line declaration-no-important
23
+ border-radius: semantic-tokens.$element-radius-2;
24
+ border-width: 0;
25
+
26
+ &::placeholder {
27
+ color: system-tokens.$si-sys-text-secondary;
28
+ }
29
+
30
+ &:is(:hover, :focus)::placeholder {
31
+ color: system-tokens.$si-sys-text-primary;
32
+ }
33
+
34
+ .search-bar:has(.search-bar-icon) & {
35
+ padding-inline-start: calc(
36
+ #{variables.$si-icon-font-size} + #{map.get(variables.$spacers-inline, 2)} * 2
37
+ );
38
+ }
39
+
40
+ .search-bar:has(.search-bar-clear) & {
41
+ padding-inline-end: calc(
42
+ #{bootstrap-variables.$btn-font-size} * #{bootstrap-variables.$btn-line-height} +
43
+ #{bootstrap-variables.$btn-padding-y-sm} * 2 + #{map.get(variables.$spacers-inline, 2)} * 2
44
+ );
45
+ }
46
+
47
+ .search-bar.variant-background-0 & {
48
+ background-color: system-tokens.$si-sys-background-4 !important; // stylelint-disable-line declaration-no-important
49
+ }
50
+ }
51
+
52
+ .search-bar-icon {
53
+ position: absolute;
54
+ inset-block: 0;
55
+ inset-inline-start: map.get(variables.$spacers-inline, 2);
56
+ align-items: center;
57
+ font-size: variables.$si-icon-font-size;
58
+ color: system-tokens.$si-sys-text-disabled;
59
+ pointer-events: none;
60
+ }
61
+
62
+ .search-bar-clear {
63
+ position: absolute;
64
+ inset-block: 0;
65
+ inset-inline-end: map.get(variables.$spacers-inline, 2);
66
+ margin-block: auto;
67
+ }
@@ -14,7 +14,7 @@
14
14
  background: linear-gradient(
15
15
  90deg,
16
16
  system-tokens.$si-sys-background-hover 0%,
17
- system-tokens.$si-sys-background-selected 25%,
17
+ system-tokens.$si-sys-background-active 25%,
18
18
  system-tokens.$si-sys-background-hover 50%
19
19
  );
20
20
  background-size: 200% 100%;
@@ -2,19 +2,19 @@
2
2
 
3
3
  @use 'sass:map';
4
4
 
5
- $si-switch-size: 1.25rem !default;
5
+ $si-switch-size: max(1.25rem, 20px) !default;
6
6
  $si-switch-inline-size: calc(2 * #{$si-switch-size});
7
- $si-switch-inline-spacing: calc($si-switch-inline-size + map.get(variables.$spacers, 4));
7
+ $si-switch-inline-spacing: calc($si-switch-inline-size + map.get(variables.$spacers-inline, 4));
8
8
  $si-switch-background-off-color: variables.$si-sys-background-1 !default;
9
9
  $si-switch-background-on-color: variables.$si-sys-background-accent !default;
10
- $si-switch-slider-margin: 0.25rem !default;
10
+ $si-switch-slider-margin: calc($si-switch-size / 5);
11
11
  $si-switch-slider-on-color: variables.$si-sys-text-on-accent !default;
12
12
  $si-switch-transition-length: variables.element-transition-duration(0.4s) !default;
13
13
 
14
14
  $si-switch-knob-size: calc(#{$si-switch-size} - 2 * #{$si-switch-slider-margin});
15
15
 
16
16
  .form-switch {
17
- padding-block: map.get(variables.$spacers, 1);
17
+ padding-block: map.get(variables.$spacers-block, 1);
18
18
  padding-inline-start: $si-switch-inline-spacing;
19
19
 
20
20
  .form-check-input {
@@ -7,9 +7,11 @@
7
7
  @use './skeleton';
8
8
 
9
9
  .si-value-widget-value {
10
- @extend .si-display-bold;
10
+ @extend .si-display-lg-sbold;
11
11
  display: inline-block;
12
- min-block-size: variables.$si-font-size-display-bold * variables.$si-line-height-display-bold;
12
+ min-block-size: calc(
13
+ #{variables.$si-font-size-display-lg-sbold} * #{variables.$si-line-height-display-lg-sbold}
14
+ );
13
15
  }
14
16
 
15
17
  /**
@@ -17,10 +19,10 @@
17
19
  * the line height.
18
20
  */
19
21
  .si-value-widget-value-skeleton {
20
- @extend .si-display-bold;
22
+ @extend .si-display-lg-sbold;
21
23
  @extend .si-skeleton;
22
24
  display: inline-block;
23
- block-size: variables.$si-font-size-display-bold;
25
+ block-size: #{variables.$si-font-size-display-lg-sbold};
24
26
  vertical-align: middle;
25
27
  inline-size: 100%;
26
28
  }
@@ -28,26 +30,26 @@
28
30
  .si-value-widget-unit {
29
31
  @extend .si-body-lg;
30
32
  display: inline-block;
31
- margin-inline-start: map.get(variables.$spacers, 2);
33
+ margin-inline-start: map.get(variables.$spacers-inline, 2);
32
34
  }
33
35
 
34
36
  .si-value-widget-description {
35
37
  display: flex;
36
38
  align-items: center;
37
- gap: map.get(variables.$spacers, 2);
38
- margin-block-start: map.get(variables.$spacers, 2);
39
+ gap: map.get(variables.$spacers-block, 2) map.get(variables.$spacers-inline, 2);
40
+ margin-block-start: map.get(variables.$spacers-block, 2);
39
41
  min-block-size: variables.$si-icon-font-size;
40
42
  }
41
43
 
42
44
  .si-link-widget {
43
45
  display: flex;
44
46
  flex-direction: column;
45
- gap: map.get(variables.$spacers, 4);
47
+ gap: map.get(variables.$spacers-block, 4) map.get(variables.$spacers-inline, 4);
46
48
  }
47
49
 
48
50
  .si-link-widget-skeleton {
49
51
  @extend .si-skeleton;
50
- block-size: calc(variables.$si-font-size-body * variables.$si-line-height-body);
52
+ block-size: calc(#{variables.$si-font-size-body} * #{variables.$si-line-height-body});
51
53
  inline-size: 100%;
52
54
  }
53
55
 
@@ -0,0 +1,259 @@
1
+ @use '../variables/system-tokens' as tokens;
2
+
3
+ // This file currently diverges from its original by add !important everywhere.
4
+ // stylelint-disable declaration-no-important
5
+
6
+ @mixin background-utilities($prefix: 'background-') {
7
+ .#{$prefix}0 {
8
+ background-color: tokens.$si-sys-background-0 !important;
9
+ }
10
+ .#{$prefix}1 {
11
+ background-color: tokens.$si-sys-background-1 !important;
12
+ }
13
+ .#{$prefix}2 {
14
+ background-color: tokens.$si-sys-background-2 !important;
15
+ }
16
+ .#{$prefix}3 {
17
+ background-color: tokens.$si-sys-background-3 !important;
18
+ }
19
+ .#{$prefix}4 {
20
+ background-color: tokens.$si-sys-background-4 !important;
21
+ }
22
+ .#{$prefix}accent {
23
+ background-color: tokens.$si-sys-background-accent !important;
24
+ }
25
+ .#{$prefix}accent-active {
26
+ background-color: tokens.$si-sys-background-accent-active !important;
27
+ }
28
+ .#{$prefix}accent-hover {
29
+ background-color: tokens.$si-sys-background-accent-hover !important;
30
+ }
31
+ .#{$prefix}accent-secondary {
32
+ background-color: tokens.$si-sys-background-accent-secondary !important;
33
+ }
34
+ .#{$prefix}accent-secondary-active {
35
+ background-color: tokens.$si-sys-background-accent-secondary-active !important;
36
+ }
37
+ .#{$prefix}accent-secondary-hover {
38
+ background-color: tokens.$si-sys-background-accent-secondary-hover !important;
39
+ }
40
+ .#{$prefix}caution {
41
+ background-color: tokens.$si-sys-background-caution !important;
42
+ }
43
+ .#{$prefix}caution-active {
44
+ background-color: tokens.$si-sys-background-caution-active !important;
45
+ }
46
+ .#{$prefix}caution-hover {
47
+ background-color: tokens.$si-sys-background-caution-hover !important;
48
+ }
49
+ .#{$prefix}caution-subtle {
50
+ background-color: tokens.$si-sys-background-caution-subtle !important;
51
+ }
52
+ .#{$prefix}critical {
53
+ background-color: tokens.$si-sys-background-critical !important;
54
+ }
55
+ .#{$prefix}critical-active {
56
+ background-color: tokens.$si-sys-background-critical-active !important;
57
+ }
58
+ .#{$prefix}critical-hover {
59
+ background-color: tokens.$si-sys-background-critical-hover !important;
60
+ }
61
+ .#{$prefix}critical-subtle {
62
+ background-color: tokens.$si-sys-background-critical-subtle !important;
63
+ }
64
+ .#{$prefix}danger {
65
+ background-color: tokens.$si-sys-background-danger !important;
66
+ }
67
+ .#{$prefix}danger-active {
68
+ background-color: tokens.$si-sys-background-danger-active !important;
69
+ }
70
+ .#{$prefix}danger-hover {
71
+ background-color: tokens.$si-sys-background-danger-hover !important;
72
+ }
73
+ .#{$prefix}danger-secondary {
74
+ background-color: tokens.$si-sys-background-danger-secondary !important;
75
+ }
76
+ .#{$prefix}danger-subtle {
77
+ background-color: tokens.$si-sys-background-danger-subtle !important;
78
+ }
79
+ .#{$prefix}hover {
80
+ background-color: tokens.$si-sys-background-hover !important;
81
+ }
82
+ .#{$prefix}information {
83
+ background-color: tokens.$si-sys-background-information !important;
84
+ }
85
+ .#{$prefix}information-active {
86
+ background-color: tokens.$si-sys-background-information-active !important;
87
+ }
88
+ .#{$prefix}information-hover {
89
+ background-color: tokens.$si-sys-background-information-hover !important;
90
+ }
91
+ .#{$prefix}information-subtle {
92
+ background-color: tokens.$si-sys-background-information-subtle !important;
93
+ }
94
+ .#{$prefix}inverse {
95
+ background-color: tokens.$si-sys-background-inverse !important;
96
+ }
97
+ .#{$prefix}neutral {
98
+ background-color: tokens.$si-sys-background-neutral !important;
99
+ }
100
+ .#{$prefix}success {
101
+ background-color: tokens.$si-sys-background-success !important;
102
+ }
103
+ .#{$prefix}success-active {
104
+ background-color: tokens.$si-sys-background-success-active !important;
105
+ }
106
+ .#{$prefix}success-hover {
107
+ background-color: tokens.$si-sys-background-success-hover !important;
108
+ }
109
+ .#{$prefix}success-subtle {
110
+ background-color: tokens.$si-sys-background-success-subtle !important;
111
+ }
112
+ .#{$prefix}warning {
113
+ background-color: tokens.$si-sys-background-warning !important;
114
+ }
115
+ .#{$prefix}warning-active {
116
+ background-color: tokens.$si-sys-background-warning-active !important;
117
+ }
118
+ .#{$prefix}warning-hover {
119
+ background-color: tokens.$si-sys-background-warning-hover !important;
120
+ }
121
+ .#{$prefix}warning-secondary {
122
+ background-color: tokens.$si-sys-background-warning-secondary !important;
123
+ }
124
+ .#{$prefix}warning-subtle {
125
+ background-color: tokens.$si-sys-background-warning-subtle !important;
126
+ }
127
+ }
128
+
129
+ @mixin text-utilities($prefix: 'text-') {
130
+ .#{$prefix}accent {
131
+ color: tokens.$si-sys-text-accent !important;
132
+ }
133
+ .#{$prefix}accent-active {
134
+ color: tokens.$si-sys-text-accent-active !important;
135
+ }
136
+ .#{$prefix}accent-hover {
137
+ color: tokens.$si-sys-text-accent-hover !important;
138
+ }
139
+ .#{$prefix}caution {
140
+ color: tokens.$si-sys-text-caution !important;
141
+ }
142
+ .#{$prefix}critical {
143
+ color: tokens.$si-sys-text-critical !important;
144
+ }
145
+ .#{$prefix}danger {
146
+ color: tokens.$si-sys-text-danger !important;
147
+ }
148
+ .#{$prefix}disabled {
149
+ color: tokens.$si-sys-text-disabled !important;
150
+ }
151
+ .#{$prefix}information {
152
+ color: tokens.$si-sys-text-information !important;
153
+ }
154
+ .#{$prefix}inverse {
155
+ color: tokens.$si-sys-text-inverse !important;
156
+ }
157
+ .#{$prefix}on-accent {
158
+ color: tokens.$si-sys-text-on-accent !important;
159
+ }
160
+ .#{$prefix}on-accent-secondary {
161
+ color: tokens.$si-sys-text-on-accent-secondary !important;
162
+ }
163
+ .#{$prefix}on-accent-secondary-active {
164
+ color: tokens.$si-sys-text-on-accent-secondary-active !important;
165
+ }
166
+ .#{$prefix}on-accent-secondary-hover {
167
+ color: tokens.$si-sys-text-on-accent-secondary-hover !important;
168
+ }
169
+ .#{$prefix}on-caution {
170
+ color: tokens.$si-sys-text-on-caution !important;
171
+ }
172
+ .#{$prefix}on-critical {
173
+ color: tokens.$si-sys-text-on-critical !important;
174
+ }
175
+ .#{$prefix}on-danger {
176
+ color: tokens.$si-sys-text-on-danger !important;
177
+ }
178
+ .#{$prefix}on-danger-secondary {
179
+ color: tokens.$si-sys-text-on-danger-secondary !important;
180
+ }
181
+ .#{$prefix}on-information {
182
+ color: tokens.$si-sys-text-on-information !important;
183
+ }
184
+ .#{$prefix}on-success {
185
+ color: tokens.$si-sys-text-on-success !important;
186
+ }
187
+ .#{$prefix}on-warning {
188
+ color: tokens.$si-sys-text-on-warning !important;
189
+ }
190
+ .#{$prefix}on-warning-secondary {
191
+ color: tokens.$si-sys-text-on-warning-secondary !important;
192
+ }
193
+ .#{$prefix}primary {
194
+ color: tokens.$si-sys-text-primary !important;
195
+ }
196
+ .#{$prefix}secondary {
197
+ color: tokens.$si-sys-text-secondary !important;
198
+ }
199
+ .#{$prefix}success {
200
+ color: tokens.$si-sys-text-success !important;
201
+ }
202
+ .#{$prefix}warning {
203
+ color: tokens.$si-sys-text-warning !important;
204
+ }
205
+ }
206
+
207
+ @mixin border-utilities($prefix: 'border-') {
208
+ .#{$prefix}1 {
209
+ border-color: tokens.$si-sys-border-1 !important;
210
+ }
211
+ .#{$prefix}2 {
212
+ border-color: tokens.$si-sys-border-2 !important;
213
+ }
214
+ .#{$prefix}3 {
215
+ border-color: tokens.$si-sys-border-3 !important;
216
+ }
217
+ .#{$prefix}4 {
218
+ border-color: tokens.$si-sys-border-4 !important;
219
+ }
220
+ .#{$prefix}accent {
221
+ border-color: tokens.$si-sys-border-accent !important;
222
+ }
223
+ .#{$prefix}accent-active {
224
+ border-color: tokens.$si-sys-border-accent-active !important;
225
+ }
226
+ .#{$prefix}accent-hover {
227
+ border-color: tokens.$si-sys-border-accent-hover !important;
228
+ }
229
+ .#{$prefix}caution {
230
+ border-color: tokens.$si-sys-border-caution !important;
231
+ }
232
+ .#{$prefix}critical {
233
+ border-color: tokens.$si-sys-border-critical !important;
234
+ }
235
+ .#{$prefix}danger {
236
+ border-color: tokens.$si-sys-border-danger !important;
237
+ }
238
+ .#{$prefix}danger-secondary {
239
+ border-color: tokens.$si-sys-border-danger-secondary !important;
240
+ }
241
+ .#{$prefix}information {
242
+ border-color: tokens.$si-sys-border-information !important;
243
+ }
244
+ .#{$prefix}inverse {
245
+ border-color: tokens.$si-sys-border-inverse !important;
246
+ }
247
+ .#{$prefix}neutral {
248
+ border-color: tokens.$si-sys-border-neutral !important;
249
+ }
250
+ .#{$prefix}success {
251
+ border-color: tokens.$si-sys-border-success !important;
252
+ }
253
+ .#{$prefix}warning {
254
+ border-color: tokens.$si-sys-border-warning !important;
255
+ }
256
+ .#{$prefix}warning-secondary {
257
+ border-color: tokens.$si-sys-border-warning-secondary !important;
258
+ }
259
+ }
@@ -1,25 +1,27 @@
1
- $element-elevation-1:
2
- 0 0 4px var(--element-box-shadow-color-1),
3
- 0 4px 4px var(--element-box-shadow-color-2);
4
- $element-elevation-2:
5
- 0 0 8px var(--element-box-shadow-color-1),
6
- 0 8px 8px var(--element-box-shadow-color-2);
7
- $element-elevation-3:
8
- 0 0 16px var(--element-box-shadow-color-1),
9
- 0 16px 16px var(--element-box-shadow-color-2);
10
- $element-elevation-4:
11
- 0 0 32px var(--element-box-shadow-color-1),
12
- 0 32px 32px var(--element-box-shadow-color-2);
1
+ @use 'system-tokens';
13
2
 
3
+ // @deprecated Use $si-sys-effects-shadow-1 instead.
4
+ $element-elevation-1: system-tokens.$si-sys-effects-shadow-1;
5
+ // @deprecated Use $si-sys-effects-shadow-2 instead.
6
+ $element-elevation-2: system-tokens.$si-sys-effects-shadow-2;
7
+ // @deprecated Use $si-sys-effects-shadow-3 instead.
8
+ $element-elevation-3: system-tokens.$si-sys-effects-shadow-3;
9
+ // @deprecated Use $si-sys-effects-shadow-4 instead.
10
+ $element-elevation-4: system-tokens.$si-sys-effects-shadow-4;
11
+
12
+ // @deprecated There is no replacement.
14
13
  $element-elevation-inset-1:
15
14
  inset 0 0 4px var(--element-box-shadow-color-1),
16
15
  inset 0 4px 4px var(--element-box-shadow-color-2);
16
+ // @deprecated There is no replacement.
17
17
  $element-elevation-inset-2:
18
18
  inset 0 0 8px var(--element-box-shadow-color-1),
19
19
  inset 0 8px 8px var(--element-box-shadow-color-2);
20
+ // @deprecated There is no replacement.
20
21
  $element-elevation-inset-3:
21
22
  inset 0 0 16px var(--element-box-shadow-color-1),
22
23
  inset 0 16px 16px var(--element-box-shadow-color-2);
24
+ // @deprecated There is no replacement.
23
25
  $element-elevation-inset-4:
24
26
  inset 0 0 32px var(--element-box-shadow-color-1),
25
27
  inset 0 32px 32px var(--element-box-shadow-color-2);