@progress/kendo-theme-core 10.6.0-dev.6 → 11.0.0-dev.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 (77) hide show
  1. package/dist/all.css +1 -1
  2. package/dist/meta/variables.json +0 -8
  3. package/package.json +2 -2
  4. package/scss/_variables.scss +0 -1
  5. package/scss/color-system/_functions.import.scss +22 -22
  6. package/scss/color-system/_palettes.scss +0 -2
  7. package/scss/color-system/_swatch.scss +4 -6
  8. package/scss/components/adaptive/_theme.scss +4 -4
  9. package/scss/components/appbar/_theme.scss +2 -3
  10. package/scss/components/appbar/_variables.scss +4 -0
  11. package/scss/components/avatar/_theme.scss +1 -1
  12. package/scss/components/avatar/_variables.scss +2 -0
  13. package/scss/components/badge/_layout.scss +3 -3
  14. package/scss/components/badge/_theme.scss +4 -5
  15. package/scss/components/badge/_variables.scss +3 -1
  16. package/scss/components/bottom-navigation/_theme.scss +7 -8
  17. package/scss/components/bottom-navigation/_variables.scss +4 -0
  18. package/scss/components/breadcrumb/_layout.scss +1 -2
  19. package/scss/components/button/_layout.scss +1 -9
  20. package/scss/components/button/_theme.scss +36 -37
  21. package/scss/components/calendar/_theme.scss +2 -3
  22. package/scss/components/card/_theme.scss +8 -5
  23. package/scss/components/card/_variables.scss +2 -0
  24. package/scss/components/chat/_theme.scss +3 -4
  25. package/scss/components/checkbox/_layout.scss +1 -8
  26. package/scss/components/chip/_theme.scss +24 -24
  27. package/scss/components/dataviz/_layout.scss +11 -12
  28. package/scss/components/dataviz/_theme.scss +11 -12
  29. package/scss/components/dataviz/_variables.scss +8 -0
  30. package/scss/components/dialog/_theme.scss +1 -1
  31. package/scss/components/editor/_theme.scss +7 -7
  32. package/scss/components/editor/_variables.scss +4 -0
  33. package/scss/components/fab/_theme.scss +15 -15
  34. package/scss/components/filter/_theme.scss +3 -3
  35. package/scss/components/floating-label/_theme.scss +2 -2
  36. package/scss/components/forms/_layout.scss +8 -2
  37. package/scss/components/forms/_theme.scss +5 -5
  38. package/scss/components/gantt/_theme.scss +3 -4
  39. package/scss/components/grid/_theme.scss +10 -21
  40. package/scss/components/input/_layout.scss +1 -21
  41. package/scss/components/input/_theme.scss +7 -7
  42. package/scss/components/list/_theme.scss +1 -1
  43. package/scss/components/listbox/_theme.scss +2 -2
  44. package/scss/components/loader/_theme.scss +2 -2
  45. package/scss/components/loader/_variables.scss +2 -0
  46. package/scss/components/marquee/_index.scss +16 -0
  47. package/scss/components/marquee/_layout.scss +21 -0
  48. package/scss/components/marquee/_theme.scss +27 -0
  49. package/scss/components/marquee/_variables.scss +3 -0
  50. package/scss/components/mediaplayer/_theme.scss +1 -1
  51. package/scss/components/messagebox/_theme.scss +7 -8
  52. package/scss/components/messagebox/_variables.scss +2 -0
  53. package/scss/components/notification/_variables.scss +1 -1
  54. package/scss/components/panel/_theme.scss +4 -4
  55. package/scss/components/pivotgrid/_theme.scss +7 -7
  56. package/scss/components/progressbar/_theme.scss +1 -1
  57. package/scss/components/radio/_layout.scss +1 -5
  58. package/scss/components/rating/_theme.scss +2 -2
  59. package/scss/components/scheduler/_theme.scss +9 -10
  60. package/scss/components/scheduler/_variables.scss +2 -0
  61. package/scss/components/slider/_theme.scss +2 -2
  62. package/scss/components/spreadsheet/_theme.scss +2 -2
  63. package/scss/components/stepper/_theme.scss +30 -54
  64. package/scss/components/switch/_theme.scss +3 -2
  65. package/scss/components/taskboard/_theme.scss +2 -2
  66. package/scss/components/timeline/_theme.scss +3 -3
  67. package/scss/components/timeselector/_theme.scss +4 -4
  68. package/scss/components/timeselector/_variables.scss +3 -0
  69. package/scss/components/toolbar/_layout.scss +6 -0
  70. package/scss/components/tooltip/_variables.scss +1 -1
  71. package/scss/components/typography/_theme.scss +3 -3
  72. package/scss/components/upload/_theme.scss +3 -3
  73. package/scss/components/window/_theme.scss +1 -1
  74. package/scss/styles/_base.scss +9 -8
  75. package/scss/styles/index.import.scss +0 -3
  76. package/scss/color-system/_swatch-legacy.scss +0 -150
  77. package/scss/styles/_selection.scss +0 -36
@@ -2,7 +2,6 @@
2
2
  @use "sass:meta";
3
3
  @use "../../mixins/index.import.scss" as *;
4
4
  @use "../../functions/index.import.scss" as *;
5
- @use "../../color-system/_swatch-legacy.scss" as *;
6
5
  @use "../../color-system/_functions.import.scss" as *;
7
6
  @use "../../_variables.scss" as *;
8
7
  @use "./_variables.scss" as *;
@@ -77,17 +76,17 @@
77
76
 
78
77
  @each $name, $color in $kendo-button-theme-colors {
79
78
  @if ($name != "base") {
80
- $_button-text: if($kendo-enable-color-system, k-color( on-#{$name} ), k-contrast-legacy( $color ));
81
- $_button-bg: if($kendo-enable-color-system, k-color( $name ), if( $kendo-solid-button-shade-bg-amount, meta.call( $_shade-fn, $color, $kendo-solid-button-shade-bg-amount ), null ));
82
- $_button-border: if($kendo-enable-color-system, k-color( $name ), if( $kendo-solid-button-shade-border-amount, meta.call( $_shade-fn, $color, $kendo-solid-button-shade-border-amount ), null ));
79
+ $_button-text: k-color(on-#{$name});
80
+ $_button-bg: k-color($name);
81
+ $_button-border: k-color($name);
83
82
 
84
83
  $_button-hover-text: null;
85
- $_button-hover-bg: if($kendo-enable-color-system, k-color( #{$name}-hover ), if( $kendo-solid-button-hover-shade-bg-amount, meta.call( $_shade-fn, $color, $kendo-solid-button-hover-shade-bg-amount ), null ));
86
- $_button-hover-border: if($kendo-enable-color-system, k-color( #{$name}-hover ), if( $kendo-solid-button-hover-shade-border-amount, meta.call( $_shade-fn, $color, $kendo-solid-button-hover-shade-border-amount ), null ));
84
+ $_button-hover-bg: k-color(#{$name}-hover);
85
+ $_button-hover-border: k-color(#{$name}-hover);
87
86
 
88
87
  $_button-active-text: null;
89
- $_button-active-bg: if($kendo-enable-color-system, k-color( #{$name}-active ), if( $kendo-solid-button-active-shade-bg-amount, meta.call( $_shade-fn, $color, $kendo-solid-button-active-shade-bg-amount ), null ));
90
- $_button-active-border: if($kendo-enable-color-system, k-color( #{$name}-active ), if( $kendo-solid-button-active-shade-border-amount, meta.call( $_shade-fn, $color, $kendo-solid-button-active-shade-border-amount ), null ));
88
+ $_button-active-bg: k-color(#{$name}-active);
89
+ $_button-active-border: k-color(#{$name}-active);
91
90
 
92
91
  .k-button-solid-#{$name} {
93
92
  @include fill(
@@ -111,7 +110,7 @@
111
110
  &:focus,
112
111
  &.k-focus {
113
112
  @if ( $kendo-solid-button-shadow ) {
114
- @include focus-indicator( 0 0 $kendo-solid-button-shadow-blur $kendo-solid-button-shadow-spread if($kendo-enable-color-system, color-mix(in srgb, k-color( $name ) ( $kendo-solid-button-shadow-opacity * 100% ), transparent), rgba( $_button-border, $kendo-solid-button-shadow-opacity )), true, true );
113
+ @include focus-indicator( 0 0 $kendo-solid-button-shadow-blur $kendo-solid-button-shadow-spread color-mix(in srgb, k-color( $name ) ( $kendo-solid-button-shadow-opacity * 100% ), transparent), true, true );
115
114
  }
116
115
  }
117
116
 
@@ -151,11 +150,11 @@
151
150
 
152
151
 
153
152
  // Outline button
154
- @each $name, $color in map.merge( $kendo-button-theme-colors, ( "base": $kendo-base-text ) ) {
153
+ @each $name, $color in map.merge( $kendo-button-theme-colors, ( "base": k-color( on-app-surface ) ) ) {
155
154
  .k-button-outline-#{$name} {
156
155
  @include box-shadow( none );
157
156
  border-color: currentColor;
158
- color: if($kendo-enable-color-system, k-color( #{$name}-on-surface ), $color);
157
+ color: k-color(#{$name}-on-surface);
159
158
  background-color: transparent;
160
159
 
161
160
  // Hover state
@@ -163,13 +162,13 @@
163
162
  &.k-hover {
164
163
  @if $name == "base" {
165
164
  @include fill(
166
- if($kendo-enable-color-system, k-color( base ), k-contrast-legacy( $color ) ),
167
- if($kendo-enable-color-system, k-color( on-base ), $color ),
168
- if($kendo-enable-color-system, k-color( on-base ), $color )
165
+ k-color( base ),
166
+ k-color( on-base ),
167
+ k-color( on-base )
169
168
  );
170
169
  } @else {
171
170
  @include fill(
172
- if($kendo-enable-color-system, k-color( on-#{$name} ), k-contrast-legacy( $color )),
171
+ k-color( on-#{$name} ),
173
172
  $color,
174
173
  $color
175
174
  );
@@ -181,9 +180,9 @@
181
180
  &.k-focus {
182
181
  @if $kendo-outline-button-shadow {
183
182
  @if $name == "base" {
184
- @include focus-indicator( 0 0 $kendo-outline-button-shadow-blur $kendo-outline-button-shadow-spread if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) ( $kendo-outline-button-shadow-opacity * 100% ), transparent), rgba( $color, $kendo-outline-button-shadow-opacity )), true, true );
183
+ @include focus-indicator( 0 0 $kendo-outline-button-shadow-blur $kendo-outline-button-shadow-spread color-mix(in srgb, k-color( on-app-surface ) ( $kendo-outline-button-shadow-opacity * 100% ), transparent), true, true );
185
184
  } @else {
186
- @include focus-indicator( 0 0 $kendo-outline-button-shadow-blur $kendo-outline-button-shadow-spread if($kendo-enable-color-system, color-mix(in srgb, k-color( $name ) ( $kendo-outline-button-shadow-opacity * 100% ), transparent), rgba( $color, $kendo-outline-button-shadow-opacity )), true, true );
185
+ @include focus-indicator( 0 0 $kendo-outline-button-shadow-blur $kendo-outline-button-shadow-spread color-mix(in srgb, k-color( $name ) ( $kendo-outline-button-shadow-opacity * 100% ), transparent), true, true );
187
186
  }
188
187
  }
189
188
  }
@@ -193,13 +192,13 @@
193
192
  &.k-active {
194
193
  @if $name == "base" {
195
194
  @include fill(
196
- if($kendo-enable-color-system, k-color( base ), k-contrast-legacy( $color )),
197
- if($kendo-enable-color-system, k-color( on-base ), $color ),
198
- if($kendo-enable-color-system, k-color( on-base ), $color )
195
+ k-color( base ),
196
+ k-color( on-base ),
197
+ k-color( on-base )
199
198
  );
200
199
  } @else {
201
200
  @include fill(
202
- if($kendo-enable-color-system, k-color( on-#{$name} ), k-contrast-legacy( $color )),
201
+ k-color( on-#{$name} ),
203
202
  $color,
204
203
  $color
205
204
  );
@@ -210,13 +209,13 @@
210
209
  &.k-selected {
211
210
  @if $name == "base" {
212
211
  @include fill(
213
- if($kendo-enable-color-system, k-color( base ), k-contrast-legacy( $color )),
214
- if($kendo-enable-color-system, k-color( on-base ), $color ),
215
- if($kendo-enable-color-system, k-color( on-base ), $color )
212
+ k-color( base ),
213
+ k-color( on-base ),
214
+ k-color( on-base )
216
215
  );
217
216
  } @else {
218
217
  @include fill(
219
- if($kendo-enable-color-system, k-color( on-#{$name} ), k-contrast-legacy( $color )),
218
+ k-color( on-#{$name} ),
220
219
  $color,
221
220
  $color
222
221
  );
@@ -238,7 +237,7 @@
238
237
  @if $name == "base" {
239
238
  color: inherit;
240
239
  } @else {
241
- color: if($kendo-enable-color-system, k-color( #{$name}-on-surface ), $color);
240
+ color: k-color(#{$name}-on-surface);
242
241
  }
243
242
 
244
243
  // Disabled state
@@ -251,7 +250,7 @@
251
250
 
252
251
 
253
252
  // Link button
254
- @each $name, $color in map.merge( $kendo-button-theme-colors, ( "base": $kendo-base-text ) ) {
253
+ @each $name, $color in map.merge( $kendo-button-theme-colors, ( "base": k-color( on-app-surface ) ) ) {
255
254
  .k-button-link-#{$name} {
256
255
  color: $color;
257
256
 
@@ -259,9 +258,9 @@
259
258
  &:hover,
260
259
  &.k-hover {
261
260
  @if $name == "base" {
262
- color: if($kendo-enable-color-system, $kendo-base-text, k-try-shade( $color, 2 ));
261
+ color: k-color(on-app-surface);
263
262
  } @else {
264
- color: if($kendo-enable-color-system, k-color( #{$name}-hover ), k-try-shade( $color, 2 ));
263
+ color: k-color(#{$name}-hover);
265
264
  }
266
265
  }
267
266
 
@@ -270,9 +269,9 @@
270
269
  &.k-focus {
271
270
  @if ( $kendo-link-button-shadow ) {
272
271
  @if $name == "base" {
273
- @include focus-indicator( 0 0 $kendo-link-button-shadow-blur $kendo-link-button-shadow-spread if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) ( $kendo-link-button-shadow-opacity * 100% ), transparent), rgba( $color, $kendo-link-button-shadow-opacity )), true, true );
272
+ @include focus-indicator( 0 0 $kendo-link-button-shadow-blur $kendo-link-button-shadow-spread color-mix(in srgb, k-color( on-app-surface ) ( $kendo-link-button-shadow-opacity * 100% ), transparent), true, true );
274
273
  } @else {
275
- @include focus-indicator( 0 0 $kendo-link-button-shadow-blur $kendo-link-button-shadow-spread if($kendo-enable-color-system, color-mix(in srgb, k-color( $name ) ( $kendo-link-button-shadow-opacity * 100% ), transparent), rgba( $color, $kendo-link-button-shadow-opacity )), true, true );
274
+ @include focus-indicator( 0 0 $kendo-link-button-shadow-blur $kendo-link-button-shadow-spread color-mix(in srgb, k-color( $name ) ( $kendo-link-button-shadow-opacity * 100% ), transparent), true, true );
276
275
  }
277
276
  }
278
277
  }
@@ -281,18 +280,18 @@
281
280
  &:active,
282
281
  &.k-active {
283
282
  @if $name == "base" {
284
- color: if($kendo-enable-color-system, $kendo-base-text, k-try-shade( $color, 2 ));
283
+ color: k-color(on-app-surface);
285
284
  } @else {
286
- color: if($kendo-enable-color-system, k-color( #{$name}-active ), k-try-shade( $color, 2 ));
285
+ color: k-color(#{$name}-active);
287
286
  }
288
287
  }
289
288
 
290
289
  // Selected
291
290
  &.k-selected {
292
291
  @if $name == "base" {
293
- color: if($kendo-enable-color-system, $kendo-base-text, k-try-shade( $color, 2 ));
292
+ color: k-color(on-app-surface);
294
293
  } @else {
295
- color: if($kendo-enable-color-system, k-color( #{$name}-active ), k-try-shade( $color, 2 ));
294
+ color: k-color(#{$name}-active);
296
295
  }
297
296
  }
298
297
 
@@ -306,9 +305,9 @@
306
305
 
307
306
 
308
307
  // Clear button
309
- @each $name, $color in map.merge( $kendo-button-theme-colors, ( "base": $kendo-base-text ) ) {
308
+ @each $name, $color in map.merge( $kendo-button-theme-colors, ( "base": k-color( on-app-surface ) ) ) {
310
309
  .k-button-clear-#{$name} {
311
- color: if($kendo-enable-color-system, k-color( #{$name}-on-surface ), $color);
310
+ color: k-color(#{$name}-on-surface);
312
311
 
313
312
  &:focus,
314
313
  &.k-focus,
@@ -1,5 +1,4 @@
1
1
  @use "../../mixins/index.import.scss" as *;
2
- @use "../../color-system/_swatch-legacy.scss" as *;
3
2
  @use "../../color-system/_functions.import.scss" as *;
4
3
  @use "../../_variables.scss" as *;
5
4
  @use "./variables.scss" as *;
@@ -134,7 +133,7 @@
134
133
  &.k-invalid:hover,
135
134
  &.ng-invalid.ng-touched,
136
135
  &.ng-invalid.ng-dirty {
137
- border-color: $kendo-invalid-border;
136
+ border-color: k-color(error);
138
137
  }
139
138
  }
140
139
 
@@ -160,7 +159,7 @@
160
159
  .k-calendar { // stylelint-disable-line
161
160
 
162
161
  $kendo-calendar-range-gap: k-spacing(1px) !default;
163
- $kendo-calendar-range-bg: if($kendo-enable-color-system, color-mix(in srgb, k-color( primary ) 25%, transparent), rgba( $kendo-calendar-cell-selected-bg, .25 ));
162
+ $kendo-calendar-range-bg: color-mix(in srgb, k-color(primary) 25%, transparent);
164
163
  $kendo-calendar-range-split-size: 5px !default;
165
164
 
166
165
  .k-range-start,
@@ -1,6 +1,5 @@
1
1
  @use "../../mixins/index.import.scss" as *;
2
2
  @use "../../functions/index.import.scss" as *;
3
- @use "../../color-system/_swatch-legacy.scss" as *;
4
3
  @use "../../color-system/_functions.import.scss" as *;
5
4
  @use "../../_variables.scss" as *;
6
5
  @use "./variables.scss" as *;
@@ -54,6 +53,10 @@
54
53
  @include fill( $kendo-card-footer-text, $kendo-card-footer-bg, $kendo-card-footer-border );
55
54
  }
56
55
 
56
+ // Body
57
+ .k-card-body {
58
+ border-color: inherit;
59
+ }
57
60
 
58
61
  // Separator
59
62
  .k-card-separator,
@@ -69,11 +72,11 @@
69
72
 
70
73
 
71
74
  // Card theme colors
72
- @each $name, $color in $kendo-theme-colors {
75
+ @each $name, $color in $kendo-card-theme-colors {
73
76
  .k-card-#{$name} {
74
- background-color: if($kendo-enable-color-system, k-color( #{$name}-subtle ), k-color-tint($color, 10));
75
- color: if($kendo-enable-color-system, k-color( #{$name}-on-subtle ), k-color-shade($color, 6));
76
- border-color: if($kendo-enable-color-system, k-color( #{$name}-emphasis ), k-color-tint($color, 9));
77
+ background-color: k-color(#{$name}-subtle);
78
+ color: k-color(#{$name}-on-subtle);
79
+ border-color: k-color(#{$name}-emphasis);
77
80
 
78
81
  .k-card-subtitle {
79
82
  color: inherit;
@@ -70,3 +70,5 @@ $kendo-card-deck-scroll-button-offset: null !default;
70
70
 
71
71
  $kendo-card-callout-width: null !default;
72
72
  $kendo-card-callout-height: null !default;
73
+
74
+ $kendo-card-theme-colors: null !default;
@@ -1,5 +1,4 @@
1
1
  @use "../../mixins/index.import.scss" as *;
2
- @use "../../color-system/_swatch-legacy.scss" as *;
3
2
  @use "../../motion/index.import.scss" as *;
4
3
  @use "../../color-system/_functions.import.scss" as *;
5
4
  @use "../../_variables.scss" as *;
@@ -39,8 +38,8 @@
39
38
  transition: $kendo-transition;
40
39
  order: -1;
41
40
 
42
- a { color: $kendo-link-text; }
43
- a:hover { color: $kendo-link-hover-text; }
41
+ a { color: k-color(primary); }
42
+ a:hover { color: k-color(primary-hover); }
44
43
  }
45
44
  .k-chat-bubble:hover {
46
45
  @include box-shadow( $kendo-chat-bubble-hover-shadow );
@@ -84,7 +83,7 @@
84
83
 
85
84
  &:focus,
86
85
  &.k-focus {
87
- @include focus-indicator( 0 0 $kendo-chat-quick-reply-shadow-blur $kendo-chat-quick-reply-shadow-spread if($kendo-enable-color-system, color-mix(in srgb, k-color( 'primary' ) ( $kendo-chat-quick-reply-shadow-opacity * 100% ), transparent), rgba( $kendo-color-primary, $kendo-chat-quick-reply-shadow-opacity )), true, true );
86
+ @include focus-indicator( 0 0 $kendo-chat-quick-reply-shadow-blur $kendo-chat-quick-reply-shadow-spread color-mix(in srgb, k-color( 'primary' ) ( $kendo-chat-quick-reply-shadow-opacity * 100% ), transparent), true, true );
88
87
  }
89
88
  }
90
89
  }
@@ -1,7 +1,7 @@
1
1
  @use "sass:map";
2
2
  @use "../../mixins/index.import.scss" as *;
3
- @use "../../color-system/_swatch-legacy.scss" as *;
4
3
  @use "../../spacing/index.import.scss" as *;
4
+ @use "../../_variables.scss" as *;
5
5
  @use "./_variables.scss" as *;
6
6
 
7
7
  @mixin kendo-checkbox--layout-base() {
@@ -86,13 +86,6 @@
86
86
  }
87
87
 
88
88
 
89
- // Disabled state
90
- .k-checkbox:disabled,
91
- .k-checkbox.k-disabled {
92
- @include disabled( $kendo-disabled-styling... );
93
- }
94
-
95
-
96
89
  // Checkbox wrap
97
90
  .k-checkbox-wrap {
98
91
  flex: none;
@@ -35,24 +35,24 @@
35
35
  }
36
36
  } @else {
37
37
  @include fill(
38
- if($kendo-enable-color-system, k-color( #{$name}-on-subtle ), k-try-shade( $color, 65% )),
39
- if($kendo-enable-color-system, k-color( #{$name}-subtle ), k-try-tint( $color, 80% )),
40
- if($kendo-enable-color-system, k-color( #{$name}-emphasis ), k-try-tint( $color, 25% )),
38
+ k-color( #{$name}-on-subtle ),
39
+ k-color( #{$name}-subtle ),
40
+ k-color( #{$name}-emphasis ),
41
41
  $kendo-chip-solid-gradient
42
42
  );
43
43
 
44
44
  &:focus,
45
45
  &.k-focus {
46
- @include focus-indicator( 0 0 0 2px if($kendo-enable-color-system, color-mix(in srgb, k-color( $name ) 16%, transparent), rgba( $color, .16 )) );
46
+ @include focus-indicator( 0 0 0 2px color-mix(in srgb, k-color( $name ) 16%, transparent));
47
47
  }
48
48
 
49
49
  &:hover,
50
50
  &.k-hover {
51
- @include fill( $bg: if($kendo-enable-color-system, k-color( #{$name}-subtle-hover ), k-try-tint($color, 65% )) );
51
+ @include fill( $bg: k-color( #{$name}-subtle-hover ));
52
52
  }
53
53
 
54
54
  &.k-selected {
55
- @include fill( $bg: if($kendo-enable-color-system, k-color( #{$name}-subtle-active ), k-try-tint( $color, 50% )) );
55
+ @include fill( $bg: k-color( #{$name}-subtle-active ));
56
56
  }
57
57
  }
58
58
  }
@@ -90,56 +90,56 @@
90
90
  }
91
91
  } @else if ($name == "warning") {
92
92
  @include fill(
93
- if($kendo-enable-color-system, k-color( on-app-surface ), if( $kendo-is-dark-theme, k-color-tint($color, 25%), $kendo-chip-outline-text)),
94
- if($kendo-enable-color-system, transparent, if( $kendo-is-dark-theme, $kendo-color-black, $kendo-color-white )),
95
- if($kendo-enable-color-system, $color, if( $kendo-is-dark-theme, k-color-tint($color, 25%), $color))
93
+ k-color( on-app-surface ),
94
+ transparent,
95
+ $color
96
96
  );
97
97
 
98
98
  &:focus,
99
99
  &.k-focus {
100
- @include focus-indicator( 0 0 0 2px if($kendo-enable-color-system, color-mix(in srgb, k-color( $name ) 16%, transparent), if( $kendo-is-dark-theme, rgba( k-color-tint( $color, 50% ), .32 ), rgba( $color, .16 ))) );
100
+ @include focus-indicator( 0 0 0 2px color-mix(in srgb, k-color( $name ) 16%, transparent));
101
101
  }
102
102
 
103
103
  &:hover,
104
104
  &.k-hover {
105
105
  @include fill(
106
- $color: if($kendo-enable-color-system, k-color( on-#{$name} ), if( $kendo-is-dark-theme, k-contrast-legacy( $color ), k-try-shade( $color, 80% ) )),
107
- $bg: if($kendo-enable-color-system, $color, if( $kendo-is-dark-theme, k-color-tint($color, 25%), $color))
106
+ $color: k-color( on-#{$name} ),
107
+ $bg: $color
108
108
  );
109
109
  }
110
110
 
111
111
  &.k-selected {
112
112
  @include fill(
113
- $color: if($kendo-enable-color-system, k-color( on-#{$name} ), if( $kendo-is-dark-theme, k-contrast-legacy( $color ), k-try-shade( $color, 80% ) )),
114
- $bg: if($kendo-enable-color-system, $color, if( $kendo-is-dark-theme, k-color-tint($color, 25%), $color))
113
+ $color: k-color( on-#{$name} ),
114
+ $bg: $color
115
115
  );
116
116
  }
117
117
  } @else {
118
118
  @include fill(
119
- if($kendo-enable-color-system, k-color( #{$name}-on-surface ), k-try-shade( $color, 25% )),
120
- if($kendo-enable-color-system, transparent, if( $kendo-is-dark-theme, $kendo-color-black, $kendo-color-white )),
121
- if($kendo-enable-color-system, k-color( #{$name}-on-surface ), k-try-shade( $color, 25% ))
119
+ k-color( #{$name}-on-surface ),
120
+ transparent,
121
+ k-color( #{$name}-on-surface )
122
122
  );
123
123
 
124
124
  &:focus,
125
125
  &.k-focus {
126
- @include focus-indicator( 0 0 0 2px if($kendo-enable-color-system, color-mix(in srgb, k-color( $name ) 16%, transparent), if( $kendo-is-dark-theme, rgba( k-color-tint( $color, 50% ), .32 ), rgba( $color, .16 ))) );
126
+ @include focus-indicator( 0 0 0 2px color-mix(in srgb, k-color( $name ) 16%, transparent));
127
127
  }
128
128
 
129
129
  &:hover,
130
130
  &.k-hover {
131
131
  @include fill(
132
- if($kendo-enable-color-system, k-color( on-#{$name} ), k-contrast-legacy( k-try-shade( $color, 25% ) )),
133
- if($kendo-enable-color-system, k-color( #{$name}-hover ), k-try-shade( $color, 25% )),
134
- if($kendo-enable-color-system, k-color( #{$name}-hover ), k-try-shade( $color, 25% ))
132
+ k-color( on-#{$name} ),
133
+ k-color( #{$name}-hover ),
134
+ k-color( #{$name}-hover )
135
135
  );
136
136
  }
137
137
 
138
138
  &.k-selected {
139
139
  @include fill(
140
- if($kendo-enable-color-system, k-color( on-#{$name} ), k-contrast-legacy( k-try-shade( $color, 25% ) )),
141
- if($kendo-enable-color-system, k-color( #{$name}-active ), k-try-shade( $color, 25% )),
142
- if($kendo-enable-color-system, k-color( #{$name}-active ), k-try-shade( $color, 25% ))
140
+ k-color( on-#{$name} ),
141
+ k-color( #{$name}-active ),
142
+ k-color( #{$name}-active )
143
143
  );
144
144
  }
145
145
  }
@@ -7,7 +7,6 @@
7
7
  @use "../../border-radii/index.import.scss" as *;
8
8
  @use "../../mixins/index.import.scss" as *;
9
9
  @use "../../functions/index.import.scss" as *;
10
- @use "../../color-system/_swatch-legacy.scss" as *;
11
10
  @use "../../_variables.scss" as *;
12
11
  @use "./variables.scss" as *;
13
12
  @use "../tooltip/_variables.scss" as *;
@@ -415,13 +414,13 @@
415
414
  // export variables to allow use in scripts
416
415
  // TODO: remove in favor of $_css-vars once all suites are updated
417
416
  $exported: (
418
- primary: $kendo-color-primary,
419
- primary-contrast: $kendo-color-primary-contrast,
420
- base: $kendo-base-bg,
417
+ primary: k-color(primary),
418
+ primary-contrast: k-color(on-primary),
419
+ base: k-color(surface),
421
420
  background: $kendo-chart-bg,
422
421
 
423
- normal-background: $kendo-base-bg,
424
- normal-text-color: $kendo-base-text,
422
+ normal-background: k-color(surface),
423
+ normal-text-color: k-color(on-app-surface),
425
424
 
426
425
  series-a: $kendo-series-a,
427
426
  series-b: $kendo-series-b,
@@ -461,8 +460,8 @@
461
460
  series-29: $kendo-series-29,
462
461
  series-30: $kendo-series-30,
463
462
 
464
- gauge-pointer: $kendo-color-primary,
465
- gauge-track: if($kendo-enable-color-system, k-color( base-emphasis ), k-try-shade( $kendo-chart-bg )),
463
+ gauge-pointer: k-color(primary),
464
+ gauge-track: k-color(base-emphasis),
466
465
 
467
466
  chart-font-size: $kendo-chart-font-size,
468
467
  chart-title-font-size: $kendo-chart-title-font-size,
@@ -504,8 +503,8 @@
504
503
  }
505
504
 
506
505
  $_css-vars: (
507
- chart-primary-bg: $kendo-color-primary,
508
- chart-primary-contrast: $kendo-color-primary-contrast,
506
+ chart-primary-bg: k-color(primary),
507
+ chart-primary-contrast: k-color(on-primary),
509
508
  chart-bg: $kendo-chart-bg,
510
509
  chart-text: $kendo-chart-text,
511
510
 
@@ -558,8 +557,8 @@
558
557
  chart-series-29: $kendo-series-29,
559
558
  chart-series-30: $kendo-series-30,
560
559
 
561
- chart-gauge-pointer: $kendo-color-primary,
562
- chart-gauge-track: if($kendo-enable-color-system, k-color( base-emphasis ), k-try-shade( $kendo-chart-bg ))
560
+ chart-gauge-pointer: k-color(primary),
561
+ chart-gauge-track: k-color(base-emphasis)
563
562
 
564
563
  );
565
564
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  @use "../../mixins/index.import.scss" as *;
3
3
  @use "../../color-system/_constants.scss" as *;
4
- @use "../../color-system/_swatch-legacy.scss" as *;
4
+ @use "../../color-system/_functions.import.scss" as *;
5
5
  @use "./variables.scss" as *;
6
6
  @use "../button/_variables.scss" as *;
7
7
 
@@ -74,7 +74,7 @@
74
74
  }
75
75
 
76
76
  .k-mask {
77
- background-color: $kendo-component-bg;
77
+ background-color: k-color(surface-alt);
78
78
  opacity: .8;
79
79
  }
80
80
 
@@ -86,31 +86,30 @@
86
86
  // Treemap
87
87
  .k-treemap {
88
88
  @include fill(
89
- $kendo-component-text,
90
- $kendo-component-bg,
91
- $kendo-component-border
89
+ $kendo-treemap-text,
90
+ $kendo-treemap-bg,
91
+ $kendo-treemap-border
92
92
  );
93
93
 
94
94
  // Title
95
95
  .k-treemap-title {
96
96
  @include fill(
97
- $kendo-component-header-text,
98
- $kendo-component-header-bg,
99
- $kendo-component-header-border,
100
- $kendo-component-header-gradient
97
+ $kendo-treemap-title-text,
98
+ $kendo-treemap-title-bg,
99
+ $kendo-treemap-title-border
101
100
  );
102
101
  }
103
102
 
104
103
  // Leaf
105
104
  .k-leaf {
106
- color: $kendo-component-bg;
105
+ color: k-color(surface-alt);
107
106
  }
108
107
  .k-leaf.k-inverse {
109
- color: $kendo-component-text;
108
+ color: k-color(on-app-surface);
110
109
  }
111
110
  .k-leaf:hover,
112
111
  .k-leaf.k-hover {
113
- box-shadow: inset 0 0 0 3px $kendo-component-border;
112
+ box-shadow: inset 0 0 0 3px k-color(border);
114
113
  }
115
114
  }
116
115
 
@@ -120,6 +120,14 @@ $kendo-treemap-line-height: null !default;
120
120
  $kendo-treemap-padding-x: null !default;
121
121
  $kendo-treemap-padding-y: null !default;
122
122
 
123
+ $kendo-treemap-text: null !default;
124
+ $kendo-treemap-bg: null !default;
125
+ $kendo-treemap-border: null !default;
126
+
127
+ $kendo-treemap-title-text: null !default;
128
+ $kendo-treemap-title-bg: null !default;
129
+ $kendo-treemap-title-border: null !default;
130
+
123
131
  // Chart Overlay
124
132
  $kendo-chart-overlay-bg: null !default;
125
133
 
@@ -18,7 +18,7 @@
18
18
  // Dialog theme colors
19
19
  @each $name, $color in $kendo-dialog-theme-colors {
20
20
  .k-dialog-#{$name} .k-dialog-titlebar {
21
- color: if($kendo-enable-color-system, k-color( on-#{$name} ), k-contrast-legacy( $color ));
21
+ color: k-color(on-#{$name});
22
22
  background-color: $color;
23
23
  }
24
24
  }
@@ -1,19 +1,19 @@
1
1
  @use "../../mixins/index.import.scss" as *;
2
- @use "../../color-system/_swatch-legacy.scss" as *;
2
+ @use "../../color-system/_functions.import.scss" as *;
3
3
  @use "./variables.scss" as *;
4
4
 
5
5
  @mixin kendo-editor--theme-base() {
6
6
 
7
7
  .k-editor {
8
8
  @include fill(
9
- $kendo-component-text,
10
- $kendo-component-bg,
11
- $kendo-component-border
9
+ k-color( on-app-surface ),
10
+ k-color( surface-alt ),
11
+ k-color( border )
12
12
  );
13
13
 
14
14
  &.k-readonly {
15
15
  .k-editor-content.k-focus {
16
- outline-color: $kendo-body-text;
16
+ outline-color: k-color(on-app-surface);
17
17
  }
18
18
  }
19
19
  }
@@ -51,7 +51,7 @@
51
51
  &:hover,
52
52
  &.k-hover,
53
53
  &.k-active {
54
- border-color: $kendo-component-border;
54
+ border-color: k-color(border);
55
55
  }
56
56
  }
57
57
 
@@ -68,7 +68,7 @@
68
68
  // Insert table
69
69
  .k-ct-popup {
70
70
  .k-selected {
71
- @include fill( $kendo-selected-text, $kendo-selected-bg, $kendo-selected-border, none );
71
+ @include fill( $kendo-editor-ct-cell-text, $kendo-editor-ct-cell-bg, $kendo-editor-ct-cell-border, none );
72
72
  }
73
73
  }
74
74
 
@@ -30,3 +30,7 @@ $kendo-editor-filebrowser-tiles-padding-x: null !default;
30
30
  $kendo-editor-filebrowser-tiles-padding-y: null !default;
31
31
 
32
32
  $kendo-editor-content-padding: null !default;
33
+
34
+ $kendo-editor-ct-cell-text: null !default;
35
+ $kendo-editor-ct-cell-bg: null !default;
36
+ $kendo-editor-ct-cell-border: null !default;