igniteui-theming 22.0.0-beta.1 → 22.0.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 (34) hide show
  1. package/package.json +1 -1
  2. package/sass/themes/components/button/_contained-button-theme.scss +25 -25
  3. package/sass/themes/components/button/_fab-button-theme.scss +26 -26
  4. package/sass/themes/components/button/_flat-button-theme.scss +7 -7
  5. package/sass/themes/components/button/_outlined-button-theme.scss +8 -8
  6. package/sass/themes/components/button-group/_button-group-theme.scss +6 -6
  7. package/sass/themes/components/calendar/_calendar-theme.scss +10 -10
  8. package/sass/themes/components/card/_card-theme.scss +2 -2
  9. package/sass/themes/components/carousel/_carousel-theme.scss +3 -3
  10. package/sass/themes/components/checkbox/_checkbox-theme.scss +4 -4
  11. package/sass/themes/components/chip/_chip-theme.scss +9 -9
  12. package/sass/themes/components/combo/_combo-theme.scss +1 -1
  13. package/sass/themes/components/expansion-panel/_expansion-panel-theme.scss +1 -1
  14. package/sass/themes/components/grid/_grid-theme.scss +7 -7
  15. package/sass/themes/components/icon-button/_contained-icon-button-theme.scss +8 -8
  16. package/sass/themes/components/icon-button/_flat-icon-button-theme.scss +2 -2
  17. package/sass/themes/components/icon-button/_outlined-icon-button-theme.scss +3 -3
  18. package/sass/themes/components/input/_input-theme.scss +4 -4
  19. package/sass/themes/components/list/_list-theme.scss +1 -1
  20. package/sass/themes/components/navbar/_navbar-theme.scss +1 -1
  21. package/sass/themes/components/navdrawer/_navdrawer-theme.scss +2 -2
  22. package/sass/themes/components/query-builder/_query-builder-theme.scss +3 -3
  23. package/sass/themes/components/radio/_radio-theme.scss +4 -4
  24. package/sass/themes/components/select/_select-theme.scss +1 -1
  25. package/sass/themes/components/slider/_slider-theme.scss +5 -5
  26. package/sass/themes/components/splitter/_splitter-theme.scss +1 -1
  27. package/sass/themes/components/stepper/_stepper-theme.scss +9 -9
  28. package/sass/themes/components/switch/_switch-theme.scss +14 -14
  29. package/sass/themes/components/tabs/_tabs-theme.scss +5 -5
  30. package/sass/themes/components/tree/_tree-theme.scss +4 -4
  31. package/tailwind/utilities/bootstrap.css +1 -1
  32. package/tailwind/utilities/fluent.css +1 -1
  33. package/tailwind/utilities/indigo.css +1 -1
  34. package/tailwind/utilities/material.css +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-theming",
3
- "version": "22.0.0-beta.1",
3
+ "version": "22.0.0",
4
4
  "description": "A set of Sass variables, mixins, and functions for generating palettes, typography, and elevations used by Ignite UI components.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -154,24 +154,8 @@
154
154
  $icon-color: adaptive-contrast(var(--background));
155
155
  }
156
156
 
157
- @if $variant == 'indigo' {
158
- @if not($hover-background) and $background {
159
- $hover-background: hsl(from var(--background) h s calc(l * 1.08));
160
- }
161
- } @else {
162
- @if not($hover-background) and $background {
163
- $hover-background: hsl(from var(--background) h s calc(l * 1.05));
164
- }
165
- }
166
-
167
- @if $variant == 'indigo' {
168
- @if not($focus-background) and $background {
169
- $focus-background: var(--background);
170
- }
171
- } @else {
172
- @if not($focus-background) and $background {
173
- $focus-background: hsl(from var(--background) h s calc(l * 1.1));
174
- }
157
+ @if not($hover-background) and $background {
158
+ $hover-background: dynamic-shade(var(--background));
175
159
  }
176
160
 
177
161
  @if not($hover-foreground) and $hover-background {
@@ -182,10 +166,6 @@
182
166
  $icon-color-hover: adaptive-contrast(var(--hover-background));
183
167
  }
184
168
 
185
- @if not($focus-foreground) and $focus-background {
186
- $focus-foreground: adaptive-contrast(var(--focus-background));
187
- }
188
-
189
169
  @if not($focus-hover-background) and $hover-background {
190
170
  $focus-hover-background: var(--hover-background);
191
171
  }
@@ -194,8 +174,28 @@
194
174
  $focus-hover-foreground: adaptive-contrast(var(--focus-hover-background));
195
175
  }
196
176
 
197
- @if not($focus-visible-background) and $focus-background {
198
- $focus-visible-background: var(--focus-background);
177
+ @if $variant != 'indigo' {
178
+ @if not($focus-background) and $background {
179
+ $focus-background: dynamic-shade(var(--background), $offset: 10);
180
+ }
181
+ } @else {
182
+ @if not($focus-background) and $focus-hover-background {
183
+ $focus-background: var(--focus-hover-background);
184
+ }
185
+ }
186
+
187
+ @if $variant == 'fluent' or $variant == 'indigo' {
188
+ @if not($focus-visible-background) and $background {
189
+ $focus-visible-background: var(--background);
190
+ }
191
+ } @else {
192
+ @if not($focus-visible-background) and $focus-background {
193
+ $focus-visible-background: var(--focus-background);
194
+ }
195
+ }
196
+
197
+ @if not($focus-foreground) and $focus-background {
198
+ $focus-foreground: adaptive-contrast(var(--focus-background));
199
199
  }
200
200
 
201
201
  @if not($focus-visible-foreground) and $focus-visible-background {
@@ -210,7 +210,7 @@
210
210
 
211
211
  @if $variant == 'fluent' or $variant == 'bootstrap' {
212
212
  @if not($active-background) and $background {
213
- $active-background: hsl(from var(--background) h s calc(l * 0.9));
213
+ $active-background: dynamic-shade(var(--background), $offset: 10);
214
214
  }
215
215
  } @else if $variant == 'material' {
216
216
  @if not($active-background) and $focus-background {
@@ -130,50 +130,50 @@
130
130
  $icon-color: adaptive-contrast(var(--background));
131
131
  }
132
132
 
133
- @if $variant == 'indigo' {
134
- @if not($hover-background) and $background {
135
- $hover-background: hsl(from var(--background) h s calc(l * 1.08));
136
- }
137
- } @else {
138
- @if not($hover-background) and $background {
139
- $hover-background: hsl(from var(--background) h s calc(l * 1.05));
140
- }
133
+ @if not($hover-background) and $background {
134
+ $hover-background: dynamic-shade(var(--background));
135
+ }
136
+
137
+ @if not($hover-foreground) and $hover-background {
138
+ $hover-foreground: if($foreground, var(--foreground), adaptive-contrast(var(--hover-background)));
139
+ }
140
+
141
+ @if not($icon-color-hover) and $hover-background {
142
+ $icon-color-hover: if($icon-color, var(--icon-color), adaptive-contrast(var(--hover-background)));
143
+ }
144
+
145
+ @if not($focus-hover-background) and $hover-background {
146
+ $focus-hover-background: var(--hover-background);
141
147
  }
142
148
 
143
149
  @if $variant == 'indigo' {
144
- @if not($focus-background) and $background {
145
- $focus-background: var(--background);
150
+ @if not($focus-background) and $focus-hover-background {
151
+ $focus-background: var(--focus-hover-background);
146
152
  }
147
153
  } @else {
148
154
  @if not($focus-background) and $background {
149
- $focus-background: hsl(from var(--background) h s calc(l * 1.1));
155
+ $focus-background: dynamic-shade(var(--background), $offset: 10);
150
156
  }
151
157
  }
152
158
 
153
- @if not($hover-foreground) and $hover-background {
154
- $hover-foreground: if($foreground, var(--foreground), adaptive-contrast(var(--hover-background)));
155
- }
156
-
157
- @if not($icon-color-hover) and $hover-background {
158
- $icon-color-hover: if($icon-color, var(--icon-color), adaptive-contrast(var(--hover-background)));
159
+ @if $variant == 'fluent' {
160
+ @if not($focus-visible-background) and $background {
161
+ $focus-visible-background: var(--background);
162
+ }
163
+ } @else {
164
+ @if not($focus-visible-background) and $focus-background {
165
+ $focus-visible-background: var(--focus-background);
166
+ }
159
167
  }
160
168
 
161
169
  @if not($focus-foreground) and $focus-background {
162
170
  $focus-foreground: if($foreground, var(--foreground), adaptive-contrast(var(--focus-background)));
163
171
  }
164
172
 
165
- @if not($focus-hover-background) and $hover-background {
166
- $focus-hover-background: var(--hover-background);
167
- }
168
-
169
173
  @if not($focus-hover-foreground) and $focus-hover-background {
170
174
  $focus-hover-foreground: if($foreground, var(--foreground), adaptive-contrast(var(--focus-hover-background)));
171
175
  }
172
176
 
173
- @if not($focus-visible-background) and $focus-background {
174
- $focus-visible-background: var(--focus-background);
175
- }
176
-
177
177
  @if not($focus-visible-foreground) and $focus-visible-background {
178
178
  $focus-visible-foreground: adaptive-contrast(var(--focus-visible-background));
179
179
  }
@@ -186,7 +186,7 @@
186
186
 
187
187
  @if $variant == 'fluent' or $variant == 'bootstrap' {
188
188
  @if not($active-background) and $background {
189
- $active-background: hsl(from var(--background) h s calc(l * 0.9));
189
+ $active-background: dynamic-shade(var(--background), $offset: 10);
190
190
  }
191
191
  } @else if $variant == 'material' {
192
192
  @if not($active-background) and $focus-background {
@@ -231,7 +231,7 @@
231
231
 
232
232
  @if $variant == 'bootstrap' or $variant == 'indigo' {
233
233
  @if not($hover-foreground) and $foreground {
234
- $hover-foreground: hsl(from var(--foreground) h s calc(l * 0.9));
234
+ $hover-foreground: dynamic-shade(var(--foreground));
235
235
  }
236
236
 
237
237
  @if not($icon-color-hover) and $hover-foreground {
@@ -240,16 +240,16 @@
240
240
 
241
241
  @if $variant == 'bootstrap' {
242
242
  @if not($focus-foreground) and $foreground {
243
- $focus-foreground: hsl(from var(--foreground) h s calc(l * 0.7));
243
+ $focus-foreground: dynamic-shade(var(--foreground), $offset: 10);
244
244
  }
245
245
  } @else {
246
246
  @if not($focus-foreground) and $foreground {
247
- $focus-foreground: hsl(from var(--foreground) h s calc(l * 0.9));
247
+ $focus-foreground: dynamic-shade(var(--foreground));
248
248
  }
249
249
  }
250
250
 
251
251
  @if not($focus-hover-foreground) and $foreground {
252
- $focus-hover-foreground: hsl(from var(--foreground) h s calc(l * 0.9));
252
+ $focus-hover-foreground: dynamic-shade(var(--foreground));
253
253
  }
254
254
 
255
255
  @if not($focus-visible-foreground) and $foreground {
@@ -257,7 +257,7 @@
257
257
  }
258
258
 
259
259
  @if not($disabled-foreground) and $foreground {
260
- $disabled-foreground: hsl(from (var(--foreground) h s l / 0.5));
260
+ $disabled-foreground: hsla(from (var(--foreground) h s l / 0.5));
261
261
  }
262
262
 
263
263
  @if not($disabled-icon-color) and $disabled-foreground {
@@ -266,7 +266,7 @@
266
266
 
267
267
  @if $variant == 'bootstrap' {
268
268
  @if not($active-foreground) and $foreground {
269
- $active-foreground: hsl(from var(--foreground) h s calc(l * 0.7));
269
+ $active-foreground: dynamic-shade(var(--foreground), $offset: 10);
270
270
  }
271
271
 
272
272
  @if not($shadow-color) and $focus-visible-foreground {
@@ -274,7 +274,7 @@
274
274
  }
275
275
  } @else {
276
276
  @if not($active-foreground) and $foreground {
277
- $active-foreground: hsl(from var(--foreground) h s calc(l * 0.9));
277
+ $active-foreground: dynamic-shade(var(--foreground));
278
278
  }
279
279
 
280
280
  @if not($shadow-color) and $focus-visible-foreground {
@@ -225,15 +225,15 @@
225
225
  }
226
226
 
227
227
  @if not($hover-foreground) and $foreground {
228
- $hover-foreground: hsl(from var(--foreground) h s calc(l * 0.9));
228
+ $hover-foreground: dynamic-shade(var(--foreground));
229
229
  }
230
230
 
231
231
  @if not($focus-foreground) and $foreground {
232
- $focus-foreground: hsl(from var(--foreground) h s calc(l * 0.9));
232
+ $focus-foreground: dynamic-shade(var(--foreground));
233
233
  }
234
234
 
235
235
  @if not($focus-hover-foreground) and $foreground {
236
- $focus-hover-foreground: hsl(from var(--foreground) h s calc(l * 0.9));
236
+ $focus-hover-foreground: dynamic-shade(var(--foreground));
237
237
  }
238
238
 
239
239
  @if not($focus-visible-foreground) and $foreground {
@@ -241,7 +241,7 @@
241
241
  }
242
242
 
243
243
  @if not($active-foreground) and $foreground {
244
- $active-foreground: hsl(from var(--foreground) h s calc(l * 0.9));
244
+ $active-foreground: dynamic-shade(var(--foreground));
245
245
  }
246
246
 
247
247
  @if not($shadow-color) and $focus-visible-foreground {
@@ -259,7 +259,7 @@
259
259
  }
260
260
 
261
261
  @if not($focus-background) and $foreground {
262
- $focus-background: hsl(from var(--foreground) h s calc(l * 0.8));
262
+ $focus-background: dynamic-shade(var(--foreground), $offset: 10);
263
263
  }
264
264
 
265
265
  @if not($focus-foreground) and $focus-background {
@@ -267,7 +267,7 @@
267
267
  }
268
268
 
269
269
  @if not($focus-hover-background) and $hover-background {
270
- $focus-hover-background: hsl(from var(--hover-background) h s calc(l * 0.9));
270
+ $focus-hover-background: dynamic-shade(var(--hover-background));
271
271
  }
272
272
 
273
273
  @if not($focus-hover-foreground) and $focus-hover-background {
@@ -283,7 +283,7 @@
283
283
  }
284
284
 
285
285
  @if not($active-background) and $foreground {
286
- $active-background: hsl(from var(--foreground) h s calc(l * 0.8));
286
+ $active-background: dynamic-shade(var(--foreground), $offset: 10);
287
287
  }
288
288
 
289
289
  @if not($active-foreground) and $active-background {
@@ -291,7 +291,7 @@
291
291
  }
292
292
 
293
293
  @if not($disabled-foreground) and $foreground {
294
- $disabled-foreground: hsl(from (var(--foreground) h s l / 0.5));
294
+ $disabled-foreground: hsla(from (var(--foreground) h s l / 0.5));
295
295
  }
296
296
 
297
297
  @if not($disabled-icon-color) and $disabled-foreground {
@@ -127,15 +127,15 @@
127
127
 
128
128
  // background colors
129
129
  @if not($item-hover-background) and $item-background {
130
- $item-hover-background: hsl(from var(--item-background) h s calc(l * 0.9));
130
+ $item-hover-background: dynamic-shade(var(--item-background));
131
131
  }
132
132
 
133
133
  @if not($item-selected-background) and $item-background {
134
- $item-selected-background: hsl(from var(--item-background) h s calc(l * 0.7));
134
+ $item-selected-background: dynamic-shade(var(--item-background), $offset: 10);
135
135
  }
136
136
 
137
137
  @if not($item-selected-hover-background) and $item-selected-background {
138
- $item-selected-hover-background: hsl(from var(--item-selected-background) h s calc(l * 1.1));
138
+ $item-selected-hover-background: dynamic-shade(var(--item-selected-background));
139
139
  }
140
140
 
141
141
  @if not($item-selected-focus-background) and $item-selected-background {
@@ -150,8 +150,8 @@
150
150
  $item-focused-background: var(--item-hover-background);
151
151
  }
152
152
 
153
- @if not($item-focused-hover-background) and $item-hover-background {
154
- $item-focused-hover-background: hsl(from var(--item-focused-background) h s calc(l * 0.9));
153
+ @if not($item-focused-hover-background) and $item-focused-background {
154
+ $item-focused-hover-background: dynamic-shade(var(--item-focused-background));
155
155
  }
156
156
 
157
157
  @if not($disabled-background-color) and $item-background {
@@ -164,7 +164,7 @@
164
164
 
165
165
  // border colors
166
166
  @if not($item-border-color) and $item-background {
167
- $item-border-color: hsl(from var(--item-background) h s calc(l * 0.8));
167
+ $item-border-color: dynamic-shade(var(--item-background), $offset: 7);
168
168
  }
169
169
 
170
170
  @if not($item-hover-border-color) and $item-border-color {
@@ -437,7 +437,7 @@
437
437
 
438
438
  // date start
439
439
  @if not($date-hover-background) and $content-background {
440
- $date-hover-background: hsl(from var(--content-background) h s calc(l * 0.9));
440
+ $date-hover-background: dynamic-shade(var(--content-background));
441
441
  }
442
442
 
443
443
  @if not($date-hover-foreground) and $date-hover-background {
@@ -473,11 +473,11 @@
473
473
  }
474
474
 
475
475
  @if not($date-current-hover-background) and $date-current-background {
476
- $date-current-hover-background: hsl(from var(--date-current-background) h s calc(l * 0.9));
476
+ $date-current-hover-background: dynamic-shade(var(--date-current-background));
477
477
  }
478
478
 
479
479
  @if not($date-current-hover-border-color) and $date-current-border-color {
480
- $date-current-hover-border-color: hsl(from var(--date-current-border-color) h s calc(l * 0.9));
480
+ $date-current-hover-border-color: dynamic-shade(var(--date-current-border-color));
481
481
  }
482
482
 
483
483
  @if not($date-current-focus-background) and $date-current-hover-background {
@@ -581,7 +581,7 @@
581
581
  }
582
582
 
583
583
  @if not($date-selected-hover-background) and $date-selected-background {
584
- $date-selected-hover-background: hsl(from var(--date-selected-background) h s calc(l * 0.9));
584
+ $date-selected-hover-background: dynamic-shade(var(--date-selected-background));
585
585
  }
586
586
 
587
587
  @if not($date-selected-current-hover-background) and $date-selected-hover-background {
@@ -687,7 +687,7 @@
687
687
  }
688
688
 
689
689
  @if not($date-special-hover-foreground) and $date-special-foreground {
690
- $date-special-hover-foreground: hsl(from var(--date-special-foreground) h s calc(l * 0.8));
690
+ $date-special-hover-foreground: dynamic-shade(var(--date-special-foreground), $offset: 7);
691
691
  }
692
692
 
693
693
  @if not($date-special-hover-border-color) and $date-special-hover-foreground {
@@ -700,7 +700,7 @@
700
700
  }
701
701
 
702
702
  @if not($date-special-hover-foreground) and $date-special-foreground {
703
- $date-special-hover-foreground: hsl(from var(--date-special-foreground) h s calc(l * 0.8));
703
+ $date-special-hover-foreground: dynamic-shade(var(--date-special-foreground), $offset: 7);
704
704
  }
705
705
 
706
706
  @if not($date-special-hover-background) and $date-hover-background {
@@ -750,7 +750,7 @@
750
750
  }
751
751
 
752
752
  @if not($ym-selected-hover-background) and $ym-selected-background {
753
- $ym-selected-hover-background: hsl(from var(--ym-selected-background) h s calc(l * 0.9));
753
+ $ym-selected-hover-background: dynamic-shade(var(--ym-selected-background));
754
754
  }
755
755
 
756
756
  @if not($ym-current-background) and $date-current-background {
@@ -794,11 +794,11 @@
794
794
  }
795
795
 
796
796
  @if not($ym-current-hover-background) and $ym-current-background {
797
- $ym-current-hover-background: hsl(from var(--ym-current-background) h s calc(l * 0.9));
797
+ $ym-current-hover-background: dynamic-shade(var(--ym-current-background));
798
798
  }
799
799
 
800
800
  @if not($ym-selected-hover-background) and $ym-selected-background {
801
- $ym-selected-hover-background: hsla(from var(--ym-selected-background) h s calc(l * 0.9) / 0.5);
801
+ $ym-selected-hover-background: hsla(from dynamic-shade(var(--ym-selected-background)) h s l / 0.5);
802
802
  }
803
803
 
804
804
  @if not($ym-selected-current-outline-color) and $ym-selected-current-foreground {
@@ -940,7 +940,7 @@
940
940
  }
941
941
 
942
942
  @if not($date-special-range-foreground) and $date-special-foreground {
943
- $date-special-range-foreground: hsl(from var(--date-special-foreground) h s calc(l * 0.8));
943
+ $date-special-range-foreground: dynamic-shade(var(--date-special-foreground), $offset: 7);
944
944
  }
945
945
 
946
946
  @if not($date-special-range-border-color) and $date-special-range-foreground {
@@ -67,11 +67,11 @@
67
67
  }
68
68
 
69
69
  @if not($content-text-color) and $background {
70
- $content-text-color: hsl(from adaptive-contrast(var(--background)) h s calc(l * 0.85));
70
+ $content-text-color: dynamic-shade(adaptive-contrast(var(--background)), $offset: 7);
71
71
  }
72
72
 
73
73
  @if not($subtitle-text-color) and $background {
74
- $subtitle-text-color: hsl(from adaptive-contrast(var(--background)) h s calc(l * 0.85));
74
+ $subtitle-text-color: dynamic-shade(adaptive-contrast(var(--background)), $offset: 7);
75
75
  }
76
76
 
77
77
  @if not($resting-shadow) {
@@ -93,15 +93,15 @@
93
93
 
94
94
  @if $variant == 'indigo' {
95
95
  @if not($button-hover-background) and $button-background {
96
- $button-hover-background: hsl(from var(--button-background) h s calc(l * 0.9));
96
+ $button-hover-background: dynamic-shade(var(--button-background));
97
97
  }
98
98
 
99
99
  @if not($button-border-color) and $button-background {
100
- $button-border-color: hsl(from var(--button-background) h s calc(l * 0.9));
100
+ $button-border-color: dynamic-shade(var(--button-background));
101
101
  }
102
102
 
103
103
  @if not($button-hover-border-color) and $button-border-color {
104
- $button-hover-border-color: hsl(from var(--button-border-color) h s calc(l * 0.9));
104
+ $button-hover-border-color: dynamic-shade(var(--button-border-color));
105
105
  }
106
106
 
107
107
  @if not($indicator-active-dot-color) and not($indicator-background) and $button-background {
@@ -86,11 +86,11 @@
86
86
  $variant: map.get($theme, '_meta', 'theme');
87
87
 
88
88
  @if not($empty-color-hover) and $empty-color {
89
- $empty-color-hover: hsl(from var(--empty-color) h s calc(l * 0.9));
89
+ $empty-color-hover: dynamic-shade(var(--empty-color));
90
90
  }
91
91
 
92
92
  @if not($fill-color-hover) and $fill-color {
93
- $fill-color-hover: hsl(from var(--fill-color) h s calc(l * 0.9));
93
+ $fill-color-hover: dynamic-shade(var(--fill-color));
94
94
  }
95
95
 
96
96
  @if not($tick-color) and $fill-color {
@@ -98,7 +98,7 @@
98
98
  }
99
99
 
100
100
  @if not($label-color-hover) and $label-color {
101
- $label-color-hover: hsl(from var(--label-color) h s calc(l * 0.9));
101
+ $label-color-hover: dynamic-shade(var(--label-color));
102
102
  }
103
103
 
104
104
  @if not($focus-border-color) and $fill-color {
@@ -110,7 +110,7 @@
110
110
  }
111
111
 
112
112
  @if not($error-color-hover) and $error-color {
113
- $error-color-hover: hsl(from var(--error-color) h s calc(l * 0.9));
113
+ $error-color-hover: dynamic-shade(var(--error-color));
114
114
  }
115
115
 
116
116
  @if not($focus-outline-color-error) and $error-color {
@@ -119,7 +119,7 @@
119
119
  }
120
120
 
121
121
  @if not($hover-background) and $background {
122
- $hover-background: hsl(from var(--background) h s calc(l * 0.9));
122
+ $hover-background: dynamic-shade(var(--background));
123
123
  }
124
124
 
125
125
  @if not($hover-text-color) and $hover-background {
@@ -127,7 +127,7 @@
127
127
  }
128
128
 
129
129
  @if not($focus-background) and $background {
130
- $focus-background: hsl(from var(--background) h s calc(l * 0.8));
130
+ $focus-background: dynamic-shade(var(--background), $offset: 7);
131
131
  }
132
132
 
133
133
  @if $variant == 'fluent' {
@@ -146,7 +146,7 @@
146
146
  }
147
147
  } @else {
148
148
  @if not($selected-background) and $background {
149
- $selected-background: hsl(from var(--background) h s calc(l * 1.1));
149
+ $selected-background: dynamic-shade(var(--background));
150
150
  }
151
151
  }
152
152
 
@@ -155,7 +155,7 @@
155
155
  }
156
156
 
157
157
  @if not($hover-selected-background) and $selected-background {
158
- $hover-selected-background: hsl(from var(--selected-background) h s calc(l * 0.9));
158
+ $hover-selected-background: dynamic-shade(var(--selected-background));
159
159
  }
160
160
 
161
161
  @if not($hover-selected-text-color) and $hover-selected-background {
@@ -164,7 +164,7 @@
164
164
 
165
165
  @if $variant != 'indigo' {
166
166
  @if not($focus-selected-background) and $selected-background {
167
- $focus-selected-background: hsl(from var(--selected-background) h s calc(l * 0.8));
167
+ $focus-selected-background: dynamic-shade(var(--selected-background), $offset: 7);
168
168
  }
169
169
  } @else {
170
170
  @if not($focus-selected-background) and $selected-background {
@@ -176,12 +176,12 @@
176
176
  $focus-selected-text-color: adaptive-contrast(var(--focus-selected-background));
177
177
  }
178
178
 
179
- @if not($hover-border-color) and $border-color {
180
- $hover-border-color: var(--border-color);
179
+ @if not($hover-border-color) and $hover-background {
180
+ $hover-border-color: var(--hover-background);
181
181
  }
182
182
 
183
- @if not($focus-border-color) and $border-color {
184
- $focus-border-color: var(--border-color);
183
+ @if not($focus-border-color) and $focus-background {
184
+ $focus-border-color: var(--focus-background);
185
185
  }
186
186
 
187
187
  @if not($selected-border-color) and $selected-background {
@@ -76,7 +76,7 @@
76
76
 
77
77
  @if $variant == 'material' {
78
78
  @if not($toggle-button-background-focus) and $toggle-button-background {
79
- $toggle-button-background-focus: hsl(from var(--toggle-button-background) h s calc(l * 0.9));
79
+ $toggle-button-background-focus: dynamic-shade(var(--toggle-button-background));
80
80
  }
81
81
  } @else {
82
82
  @if not($toggle-button-background-focus) and $toggle-button-background {
@@ -71,7 +71,7 @@
71
71
  }
72
72
 
73
73
  @if not($header-focus-background) and $header-background {
74
- $header-focus-background: hsl(from var(--header-background) h s calc(l * 1.1));
74
+ $header-focus-background: dynamic-shade(var(--header-background));
75
75
  }
76
76
 
77
77
  @if not($body-color) and $body-background {
@@ -239,7 +239,7 @@
239
239
  }
240
240
 
241
241
  @if not($header-selected-background) and $header-background {
242
- $header-selected-background: hsl(from var(--header-background) h s calc(l * 0.9));
242
+ $header-selected-background: dynamic-shade(var(--header-background));
243
243
  }
244
244
 
245
245
  @if not($header-selected-text-color) and $header-selected-background {
@@ -271,7 +271,7 @@
271
271
  }
272
272
 
273
273
  @if not($row-hover-background) and $content-background {
274
- $row-hover-background: hsl(from var(--content-background) h s calc(l * 0.85));
274
+ $row-hover-background: dynamic-shade(var(--content-background), $offset: 7);
275
275
  }
276
276
 
277
277
  @if not($row-hover-text-color) and $row-hover-background {
@@ -279,7 +279,7 @@
279
279
  }
280
280
 
281
281
  @if not($cell-selected-background) and $content-background {
282
- $cell-selected-background: hsl(from var(--content-background) h s calc(l * 0.9));
282
+ $cell-selected-background: dynamic-shade(var(--content-background));
283
283
  }
284
284
 
285
285
  @if not($cell-selected-text-color) and $cell-selected-background {
@@ -287,7 +287,7 @@
287
287
  }
288
288
 
289
289
  @if not($row-selected-background) and $content-background {
290
- $row-selected-background: hsl(from var(--content-background) h s calc(l * 0.9));
290
+ $row-selected-background: dynamic-shade(var(--content-background));
291
291
  }
292
292
 
293
293
  @if not($row-selected-text-color) and $row-selected-background {
@@ -295,7 +295,7 @@
295
295
  }
296
296
 
297
297
  @if not($row-selected-hover-background) and $row-selected-background {
298
- $row-selected-hover-background: hsl(from var(--row-selected-background) h s calc(l * 0.85));
298
+ $row-selected-hover-background: dynamic-shade(var(--row-selected-background), $offset: 7);
299
299
  }
300
300
 
301
301
  @if not($row-selected-hover-text-color) and $row-selected-hover-background {
@@ -307,7 +307,7 @@
307
307
  }
308
308
 
309
309
  @if not($cell-selected-within-background) and $row-selected-background {
310
- $cell-selected-within-background: hsl(from var(--row-selected-background) h s calc(l * 0.85));
310
+ $cell-selected-within-background: dynamic-shade(var(--row-selected-background), $offset: 7);
311
311
  }
312
312
 
313
313
  @if not($cell-selected-within-text-color) and $cell-selected-within-background {
@@ -343,7 +343,7 @@
343
343
  }
344
344
 
345
345
  @if not($group-row-selected-background) and $group-row-background {
346
- $group-row-selected-background: hsl(from var(--group-row-background) h s calc(l * 0.8));
346
+ $group-row-selected-background: dynamic-shade(var(--group-row-background), $offset: 10);
347
347
  }
348
348
 
349
349
  @if not($group-label-text) and $group-row-selected-background {