@progress/kendo-theme-material 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 (165) hide show
  1. package/dist/all.css +1 -1
  2. package/dist/material-aqua-dark.css +1 -1
  3. package/dist/material-aqua-dark.scss +1 -1
  4. package/dist/material-arctic.css +1 -1
  5. package/dist/material-arctic.scss +1 -1
  6. package/dist/material-burnt-teal.css +1 -1
  7. package/dist/material-burnt-teal.scss +1 -1
  8. package/dist/material-dataviz-v4.css +1 -1
  9. package/dist/material-dataviz-v4.scss +1 -1
  10. package/dist/material-eggplant.css +1 -1
  11. package/dist/material-eggplant.scss +1 -1
  12. package/dist/material-lime-dark.css +1 -1
  13. package/dist/material-lime-dark.scss +1 -1
  14. package/dist/material-lime.css +1 -1
  15. package/dist/material-lime.scss +1 -1
  16. package/dist/material-main-dark.css +1 -1
  17. package/dist/material-main-dark.scss +1 -1
  18. package/dist/material-main.css +1 -1
  19. package/dist/material-main.scss +1 -5
  20. package/dist/material-nova.css +1 -1
  21. package/dist/material-nova.scss +1 -1
  22. package/dist/material-pacific-dark.css +1 -1
  23. package/dist/material-pacific-dark.scss +1 -1
  24. package/dist/material-pacific.css +1 -1
  25. package/dist/material-pacific.scss +1 -1
  26. package/dist/material-sky-dark.css +1 -1
  27. package/dist/material-sky-dark.scss +1 -1
  28. package/dist/material-sky.css +1 -1
  29. package/dist/material-sky.scss +1 -1
  30. package/dist/material-smoke.css +1 -1
  31. package/dist/material-smoke.scss +1 -1
  32. package/dist/meta/sassdoc-data.json +2168 -2276
  33. package/dist/meta/sassdoc-raw-data.json +1069 -1119
  34. package/dist/meta/variables.json +171 -835
  35. package/lib/swatches/material-aqua-dark.json +1 -243
  36. package/lib/swatches/material-arctic.json +1 -243
  37. package/lib/swatches/material-burnt-teal.json +1 -243
  38. package/lib/swatches/material-dataviz-v4.json +1 -47
  39. package/lib/swatches/material-eggplant.json +1 -243
  40. package/lib/swatches/material-lime-dark.json +1 -243
  41. package/lib/swatches/material-lime.json +1 -243
  42. package/lib/swatches/material-main-dark.json +1 -243
  43. package/lib/swatches/material-main.json +2 -245
  44. package/lib/swatches/material-nova.json +1 -243
  45. package/lib/swatches/material-pacific-dark.json +1 -243
  46. package/lib/swatches/material-pacific.json +1 -243
  47. package/lib/swatches/material-sky-dark.json +1 -243
  48. package/lib/swatches/material-sky.json +1 -243
  49. package/lib/swatches/material-smoke.json +1 -243
  50. package/package.json +4 -4
  51. package/scss/action-buttons/_theme.scss +2 -2
  52. package/scss/action-sheet/_variables.scss +7 -7
  53. package/scss/adaptive/_variables.scss +13 -13
  54. package/scss/appbar/_variables.scss +19 -5
  55. package/scss/avatar/_variables.scss +12 -1
  56. package/scss/badge/_variables.scss +15 -1
  57. package/scss/bottom-navigation/_theme.scss +2 -2
  58. package/scss/bottom-navigation/_variables.scss +18 -4
  59. package/scss/breadcrumb/_variables.scss +10 -10
  60. package/scss/button/_layout.scss +1 -3
  61. package/scss/button/_theme.scss +4 -23
  62. package/scss/button/_variables.scss +24 -15
  63. package/scss/calendar/_theme.scss +1 -1
  64. package/scss/calendar/_variables.scss +15 -15
  65. package/scss/captcha/_variables.scss +3 -3
  66. package/scss/card/_variables.scss +20 -6
  67. package/scss/chart-wizard/_variables.scss +4 -4
  68. package/scss/chat/_theme.scss +1 -1
  69. package/scss/chat/_variables.scss +14 -14
  70. package/scss/checkbox/_theme.scss +1 -1
  71. package/scss/checkbox/_variables.scss +8 -8
  72. package/scss/chip/_theme.scss +14 -14
  73. package/scss/chip/_variables.scss +14 -14
  74. package/scss/color-preview/_variables.scss +3 -3
  75. package/scss/coloreditor/_variables.scss +4 -4
  76. package/scss/colorgradient/_variables.scss +5 -5
  77. package/scss/core/_index.scss +8 -3
  78. package/scss/core/color-system/_swatch.scss +0 -3
  79. package/scss/dataviz/_variables.scss +61 -48
  80. package/scss/dialog/_theme.scss +1 -1
  81. package/scss/dialog/_variables.scss +3 -3
  82. package/scss/dock-manager/_variables.scss +7 -7
  83. package/scss/draggable/_variables.scss +3 -3
  84. package/scss/drawer/_variables.scss +9 -9
  85. package/scss/dropzone/_variables.scss +6 -6
  86. package/scss/editor/_variables.scss +11 -4
  87. package/scss/expansion-panel/_variables.scss +5 -5
  88. package/scss/fab/_theme.scss +20 -20
  89. package/scss/fab/_variables.scss +15 -4
  90. package/scss/filemanager/_variables.scss +6 -6
  91. package/scss/filter/_variables.scss +2 -2
  92. package/scss/floating-label/_theme.scss +1 -1
  93. package/scss/floating-label/_variables.scss +2 -2
  94. package/scss/forms/_variables.scss +1 -1
  95. package/scss/gantt/_variables.scss +27 -27
  96. package/scss/grid/_theme.scss +12 -83
  97. package/scss/grid/_variables.scss +8 -8
  98. package/scss/imageeditor/_variables.scss +4 -4
  99. package/scss/index.scss +3 -0
  100. package/scss/input/_variables.scss +13 -13
  101. package/scss/list/_theme.scss +1 -1
  102. package/scss/list/_variables.scss +8 -8
  103. package/scss/listbox/_variables.scss +3 -3
  104. package/scss/listgroup/_variables.scss +3 -3
  105. package/scss/listview/_theme.scss +1 -1
  106. package/scss/listview/_variables.scss +5 -5
  107. package/scss/loader/_variables.scss +17 -3
  108. package/scss/map/_variables.scss +5 -5
  109. package/scss/marquee/_index.scss +16 -0
  110. package/scss/marquee/_layout.scss +6 -0
  111. package/scss/marquee/_theme.scss +6 -0
  112. package/scss/marquee/_variables.scss +11 -0
  113. package/scss/mediaplayer/_variables.scss +4 -4
  114. package/scss/menu/_variables.scss +6 -6
  115. package/scss/messagebox/_variables.scss +15 -1
  116. package/scss/no-data/_variables.scss +1 -1
  117. package/scss/notification/_functions.scss +1 -1
  118. package/scss/notification/_variables.scss +15 -4
  119. package/scss/orgchart/_variables.scss +8 -8
  120. package/scss/overlay/_variables.scss +12 -1
  121. package/scss/pager/_variables.scss +6 -6
  122. package/scss/panel/_variables.scss +3 -3
  123. package/scss/panelbar/_variables.scss +20 -20
  124. package/scss/pdf-viewer/_variables.scss +14 -14
  125. package/scss/pivotgrid/_variables.scss +23 -23
  126. package/scss/popover/_variables.scss +3 -3
  127. package/scss/popup/_variables.scss +3 -3
  128. package/scss/progressbar/_variables.scss +6 -6
  129. package/scss/prompt/_variables.scss +12 -12
  130. package/scss/radio/_theme.scss +1 -1
  131. package/scss/radio/_variables.scss +2 -2
  132. package/scss/rating/_variables.scss +4 -4
  133. package/scss/scheduler/_theme.scss +3 -3
  134. package/scss/scheduler/_variables.scss +19 -16
  135. package/scss/scrollview/_variables.scss +5 -5
  136. package/scss/signature/_variables.scss +1 -1
  137. package/scss/skeleton/_variables.scss +1 -1
  138. package/scss/slider/_theme.scss +1 -1
  139. package/scss/slider/_variables.scss +10 -10
  140. package/scss/splitter/_variables.scss +8 -8
  141. package/scss/spreadsheet/_theme.scss +6 -6
  142. package/scss/spreadsheet/_variables.scss +30 -29
  143. package/scss/stepper/_variables.scss +15 -15
  144. package/scss/switch/_theme.scss +1 -1
  145. package/scss/switch/_variables.scss +4 -4
  146. package/scss/table/_layout.scss +18 -22
  147. package/scss/table/_theme.scss +6 -32
  148. package/scss/table/_variables.scss +6 -6
  149. package/scss/tabstrip/_variables.scss +10 -10
  150. package/scss/taskboard/_variables.scss +15 -15
  151. package/scss/tilelayout/_variables.scss +2 -2
  152. package/scss/timeline/_variables.scss +7 -7
  153. package/scss/timeselector/_variables.scss +13 -8
  154. package/scss/toolbar/_theme.scss +10 -10
  155. package/scss/toolbar/_variables.scss +7 -7
  156. package/scss/tooltip/_functions.scss +1 -1
  157. package/scss/tooltip/_variables.scss +15 -4
  158. package/scss/treeview/_variables.scss +5 -5
  159. package/scss/typography/_variables.scss +3 -3
  160. package/scss/upload/_theme.scss +1 -1
  161. package/scss/upload/_variables.scss +13 -13
  162. package/scss/window/_variables.scss +6 -6
  163. package/scss/core/color-system/_functions.scss +0 -104
  164. package/scss/core/color-system/_palettes-legacy.scss +0 -671
  165. package/scss/core/color-system/_swatch-legacy.scss +0 -299
@@ -37,17 +37,17 @@ $kendo-appbar-gap: k-spacing(2) !default;
37
37
 
38
38
  /// The background color of the AppBar based on light theme color.
39
39
  /// @group appbar
40
- $kendo-appbar-light-bg: $kendo-color-light !default;
40
+ $kendo-appbar-light-bg: k-color(light) !default;
41
41
  /// TThe text color of the AppBar based on light theme color.
42
42
  /// @group appbar
43
- $kendo-appbar-light-text: if($kendo-enable-color-system, k-color( on-light ), k-contrast-color( $kendo-color-light )) !default;
43
+ $kendo-appbar-light-text: k-color(on-light) !default;
44
44
 
45
45
  /// The background color of the AppBar based on dark theme color.
46
46
  /// @group appbar
47
- $kendo-appbar-dark-bg: $kendo-color-dark !default;
47
+ $kendo-appbar-dark-bg: k-color(dark) !default;
48
48
  /// The text color of the AppBar based on dark theme color.
49
49
  /// @group appbar
50
- $kendo-appbar-dark-text: if($kendo-enable-color-system, k-color( on-dark ), k-contrast-color( $kendo-color-dark )) !default;
50
+ $kendo-appbar-dark-text: k-color(on-dark) !default;
51
51
 
52
52
  /// The box shadow of the AppBar.
53
53
  /// @group appbar
@@ -56,6 +56,19 @@ $kendo-appbar-box-shadow: k-elevation(4) !default;
56
56
  /// @group appbar
57
57
  $kendo-appbar-bottom-box-shadow: $kendo-appbar-box-shadow !default;
58
58
 
59
+ $kendo-appbar-theme-colors: (
60
+ "primary": k-color(primary),
61
+ "secondary": k-color(secondary),
62
+ "tertiary": k-color(tertiary),
63
+ "info": k-color(info),
64
+ "success": k-color(success),
65
+ "warning": k-color(warning),
66
+ "error": k-color(error),
67
+ "dark": k-color(dark),
68
+ "light": k-color(light),
69
+ "inverse": if($kendo-is-dark-theme, k-color(light), k-color(dark)),
70
+ ) !default;
71
+
59
72
  @forward "@progress/kendo-theme-core/scss/components/appbar/_variables.scss" with (
60
73
  $kendo-appbar-margin-x: $kendo-appbar-margin-x,
61
74
  $kendo-appbar-margin-y: $kendo-appbar-margin-y,
@@ -72,5 +85,6 @@ $kendo-appbar-bottom-box-shadow: $kendo-appbar-box-shadow !default;
72
85
  $kendo-appbar-dark-bg: $kendo-appbar-dark-bg,
73
86
  $kendo-appbar-dark-text: $kendo-appbar-dark-text,
74
87
  $kendo-appbar-box-shadow: $kendo-appbar-box-shadow,
75
- $kendo-appbar-bottom-box-shadow: $kendo-appbar-bottom-box-shadow
88
+ $kendo-appbar-bottom-box-shadow: $kendo-appbar-bottom-box-shadow,
89
+ $kendo-appbar-theme-colors: $kendo-appbar-theme-colors
76
90
  );
@@ -26,7 +26,18 @@ $kendo-avatar-sizes: (
26
26
 
27
27
  /// The theme colors map of the Avatar.
28
28
  /// @group avatar
29
- $kendo-avatar-theme-colors: $kendo-theme-colors !default;
29
+ $kendo-avatar-theme-colors: (
30
+ "primary": k-color(primary),
31
+ "secondary": k-color(secondary),
32
+ "tertiary": k-color(tertiary),
33
+ "info": k-color(info),
34
+ "success": k-color(success),
35
+ "warning": k-color(warning),
36
+ "error": k-color(error),
37
+ "dark": k-color(dark),
38
+ "light": k-color(light),
39
+ "inverse": if($kendo-is-dark-theme, k-color(light), k-color(dark))
40
+ ) !default;
30
41
 
31
42
  @forward "@progress/kendo-theme-core/scss/components/avatar/_variables.scss" with (
32
43
  $kendo-avatar-border-width: $kendo-avatar-border-width,
@@ -102,6 +102,19 @@ $kendo-badge-sizes: (
102
102
  )
103
103
  ) !default;
104
104
 
105
+ $kendo-badge-theme-colors: (
106
+ "primary": k-color(primary),
107
+ "secondary": k-color(secondary),
108
+ "tertiary": k-color(tertiary),
109
+ "info": k-color(info),
110
+ "success": k-color(success),
111
+ "warning": k-color(warning),
112
+ "error": k-color(error),
113
+ "dark": k-color(dark),
114
+ "light": k-color(light),
115
+ "inverse": if($kendo-is-dark-theme, k-color(light), k-color(dark)),
116
+ ) !default;
117
+
105
118
  @forward "@progress/kendo-theme-core/scss/components/badge/_variables.scss" with (
106
119
  $kendo-badge-border-width: $kendo-badge-border-width,
107
120
  $kendo-badge-border-radius: $kendo-badge-border-radius,
@@ -125,5 +138,6 @@ $kendo-badge-sizes: (
125
138
  $kendo-badge-sm-min-width: $kendo-badge-sm-min-width,
126
139
  $kendo-badge-md-min-width: $kendo-badge-md-min-width,
127
140
  $kendo-badge-lg-min-width: $kendo-badge-lg-min-width,
128
- $kendo-badge-sizes: $kendo-badge-sizes
141
+ $kendo-badge-sizes: $kendo-badge-sizes,
142
+ $kendo-badge-theme-colors: $kendo-badge-theme-colors
129
143
  );
@@ -7,11 +7,11 @@
7
7
  @include kendo-bottom-navigation--theme-base();
8
8
 
9
9
  // Flat
10
- @each $name, $color in $kendo-theme-colors {
10
+ @each $name, $color in $kendo-bottom-navigation-theme-colors {
11
11
  .k-bottom-nav-flat-#{$name} {
12
12
  .k-bottom-nav-item.k-focus,
13
13
  .k-bottom-nav-item:focus {
14
- @include fill( $bg: if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 6%, transparent), rgba($kendo-bottom-nav-flat-text, .05)) );
14
+ @include fill( $bg: color-mix(in srgb, k-color( on-app-surface ) 6%, transparent));
15
15
  }
16
16
  }
17
17
  }
@@ -56,13 +56,26 @@ $kendo-bottom-nav-shadow: k-elevation(4) !default;
56
56
 
57
57
  /// The text color of the flat BottomNavigation.
58
58
  /// @group bottom-navigation
59
- $kendo-bottom-nav-flat-text: $kendo-component-text !default;
59
+ $kendo-bottom-nav-flat-text: k-color(on-app-surface) !default;
60
60
  /// The background color of the flat BottomNavigation.
61
61
  /// @group bottom-navigation
62
- $kendo-bottom-nav-flat-bg: $kendo-component-bg !default;
62
+ $kendo-bottom-nav-flat-bg: k-color(surface-alt) !default;
63
63
  /// The border color of the flat BottomNavigation.
64
64
  /// @group bottom-navigation
65
- $kendo-bottom-nav-flat-border: $kendo-component-border !default;
65
+ $kendo-bottom-nav-flat-border: k-color(border) !default;
66
+
67
+ $kendo-bottom-navigation-theme-colors: (
68
+ "primary": k-color(primary),
69
+ "secondary": k-color(secondary),
70
+ "tertiary": k-color(tertiary),
71
+ "info": k-color(info),
72
+ "success": k-color(success),
73
+ "warning": k-color(warning),
74
+ "error": k-color(error),
75
+ "dark": k-color(dark),
76
+ "light": k-color(light),
77
+ "inverse": if($kendo-is-dark-theme, k-color(light), k-color(dark)),
78
+ ) !default;
66
79
 
67
80
  @forward "@progress/kendo-theme-core/scss/components/bottom-navigation/_variables.scss" with (
68
81
  $kendo-bottom-nav-padding-x: $kendo-bottom-nav-padding-x,
@@ -83,5 +96,6 @@ $kendo-bottom-nav-flat-border: $kendo-component-border !default;
83
96
  $kendo-bottom-nav-shadow: $kendo-bottom-nav-shadow,
84
97
  $kendo-bottom-nav-flat-text: $kendo-bottom-nav-flat-text,
85
98
  $kendo-bottom-nav-flat-bg: $kendo-bottom-nav-flat-bg,
86
- $kendo-bottom-nav-flat-border: $kendo-bottom-nav-flat-border
99
+ $kendo-bottom-nav-flat-border: $kendo-bottom-nav-flat-border,
100
+ $kendo-bottom-navigation-theme-colors: $kendo-bottom-navigation-theme-colors
87
101
  );
@@ -53,13 +53,13 @@ $kendo-breadcrumb-lg-line-height: var( --kendo-line-height, normal ) !default;
53
53
 
54
54
  /// The base background of the Breadcrumb.
55
55
  /// @group breadcrumb
56
- $kendo-breadcrumb-bg: $kendo-component-bg !default;
56
+ $kendo-breadcrumb-bg: k-color(surface-alt) !default;
57
57
  /// The base text color of the Breadcrumb.
58
58
  /// @group breadcrumb
59
- $kendo-breadcrumb-text: $kendo-component-text !default;
59
+ $kendo-breadcrumb-text: k-color(on-app-surface) !default;
60
60
  /// The base border color of the Breadcrumb.
61
61
  /// @group breadcrumb
62
- $kendo-breadcrumb-border: $kendo-component-border !default;
62
+ $kendo-breadcrumb-border: k-color(border) !default;
63
63
 
64
64
  /// The box shadow of the focused Breadcrumb.
65
65
  /// @group breadcrumb
@@ -134,27 +134,27 @@ $kendo-breadcrumb-link-initial-text: inherit !default;
134
134
  $kendo-breadcrumb-link-bg: null !default;
135
135
  /// The text color of the Breadcrumb link.
136
136
  /// @group breadcrumb
137
- $kendo-breadcrumb-link-text: $kendo-color-primary !default;
137
+ $kendo-breadcrumb-link-text: k-color(primary) !default;
138
138
  /// The border color of the Breadcrumb link.
139
139
  /// @group breadcrumb
140
140
  $kendo-breadcrumb-link-border: null !default;
141
141
 
142
142
  /// The background color of the hovered Breadcrumb link.
143
143
  /// @group breadcrumb
144
- $kendo-breadcrumb-link-hover-bg: $kendo-hover-bg !default;
144
+ $kendo-breadcrumb-link-hover-bg: k-color(base-hover) !default;
145
145
  /// The text color of the hovered Breadcrumb link.
146
146
  /// @group breadcrumb
147
- $kendo-breadcrumb-link-hover-text: $kendo-color-primary !default;
147
+ $kendo-breadcrumb-link-hover-text: k-color(primary) !default;
148
148
  /// The border color of the hovered Breadcrumb link.
149
149
  /// @group breadcrumb
150
150
  $kendo-breadcrumb-link-hover-border: null !default;
151
151
 
152
152
  /// The background color of the focused Breadcrumb link.
153
153
  /// @group breadcrumb
154
- $kendo-breadcrumb-link-focus-bg: if($kendo-enable-color-system, k-color( base-active ), map.get( $theme, focus-bg )) !default;
154
+ $kendo-breadcrumb-link-focus-bg: k-color(base-active) !default;
155
155
  /// The text color of the focused Breadcrumb link.
156
156
  /// @group breadcrumb
157
- $kendo-breadcrumb-link-focus-text: $kendo-color-primary !default;
157
+ $kendo-breadcrumb-link-focus-text: k-color(primary) !default;
158
158
  /// The border color of the focused Breadcrumb link.
159
159
  /// @group breadcrumb
160
160
  $kendo-breadcrumb-link-focus-border: null !default;
@@ -174,7 +174,7 @@ $kendo-breadcrumb-root-link-border: null !default;
174
174
 
175
175
  /// The background color of the hovered Breadcrumb root link.
176
176
  /// @group breadcrumb
177
- $kendo-breadcrumb-root-link-hover-bg: $kendo-hover-bg !default;
177
+ $kendo-breadcrumb-root-link-hover-bg: k-color(base-hover) !default;
178
178
  /// The text color of the hovered Breadcrumb root link.
179
179
  /// @group breadcrumb
180
180
  $kendo-breadcrumb-root-link-hover-text: null !default;
@@ -184,7 +184,7 @@ $kendo-breadcrumb-root-link-hover-border: null !default;
184
184
 
185
185
  /// The background color of the focused Breadcrumb root link.
186
186
  /// @group breadcrumb
187
- $kendo-breadcrumb-root-link-focus-bg: if($kendo-enable-color-system, k-color( base-active ), map.get( $theme, focus-bg )) !default;
187
+ $kendo-breadcrumb-root-link-focus-bg: k-color(base-active) !default;
188
188
  /// The text color of the focused Breadcrumb root link.
189
189
  /// @group breadcrumb
190
190
  $kendo-breadcrumb-root-link-focus-text: null !default;
@@ -32,9 +32,7 @@
32
32
  // Solid button
33
33
  .k-button-solid {
34
34
  &::before {
35
- @if($kendo-enable-color-system) {
36
- display: none;
37
- }
35
+ display: none;
38
36
  }
39
37
  }
40
38
 
@@ -12,12 +12,6 @@
12
12
  .k-button-solid-#{$name} {
13
13
  @include box-shadow( $kendo-button-shadow );
14
14
 
15
- // These 3 lines can be deleted once we
16
- // stop supporting the old color system.
17
- color: if( $name == "base", $kendo-button-text, if($kendo-enable-color-system, k-color( on-#{$name} ), k-contrast-color( $color )) );
18
- background-color: if( $name == "base", $kendo-button-bg, if($kendo-enable-color-system, k-color( $name ), $color) );
19
- border-color: if( $name == "base", $kendo-button-bg, if($kendo-enable-color-system, k-color( $name ), $color) );
20
-
21
15
  // Hover state
22
16
  &:hover,
23
17
  &.k-hover {
@@ -27,8 +21,8 @@
27
21
  // Focus state
28
22
  &:focus,
29
23
  &.k-focus {
30
- background-color: if($kendo-enable-color-system, k-color( #{$name}-hover ), null);
31
- border-color: if($kendo-enable-color-system, k-color( #{$name}-hover ), null);
24
+ background-color: k-color(#{$name}-hover);
25
+ border-color: k-color(#{$name}-hover);
32
26
  @include box-shadow( $kendo-button-focus-shadow );
33
27
  }
34
28
 
@@ -55,14 +49,7 @@
55
49
  // Outline button
56
50
  @each $name, $color in $kendo-button-theme-colors {
57
51
  .k-button-outline-#{$name} {
58
-
59
- // The "base" case can be deleted once we
60
- // stop supporting the old color system.
61
- @if $name == "base" {
62
- color: if($kendo-enable-color-system, k-color( base-on-surface ), $kendo-button-text)
63
- } @else {
64
- color: if($kendo-enable-color-system, k-color( #{$name}-on-surface ), $color)
65
- }
52
+ color: k-color(#{$name}-on-surface);
66
53
 
67
54
  &:hover,
68
55
  &.k-hover,
@@ -71,13 +58,7 @@
71
58
  &:active,
72
59
  &.k-active,
73
60
  &.k-selected {
74
- // The "base" case can be deleted once we
75
- // stop supporting the old color system.
76
- @if $name == "base" {
77
- color: if($kendo-enable-color-system, k-color( base-on-surface ), $kendo-button-text)
78
- } @else {
79
- color: if($kendo-enable-color-system, k-color( #{$name}-on-surface ), $color)
80
- }
61
+ color: k-color(#{$name}-on-surface);
81
62
  }
82
63
 
83
64
  // Disabled state
@@ -108,17 +108,26 @@ $kendo-button-sizes: (
108
108
 
109
109
  /// The theme colors map for the Button.
110
110
  /// @group button
111
- $kendo-button-theme-colors: map.merge(
112
- $kendo-theme-colors,
113
- ( "base": $kendo-base-bg )
111
+ $kendo-button-theme-colors: (
112
+ "base": k-color(base),
113
+ "primary": k-color(primary),
114
+ "secondary": k-color(secondary),
115
+ "tertiary": k-color(tertiary),
116
+ "info": k-color(info),
117
+ "success": k-color(success),
118
+ "warning": k-color(warning),
119
+ "error": k-color(error),
120
+ "dark": k-color(dark),
121
+ "light": k-color(light),
122
+ "inverse": if($kendo-is-dark-theme, k-color(light), k-color(dark))
114
123
  ) !default;
115
124
 
116
125
  /// The base background of the Button.
117
126
  /// @group button
118
- $kendo-button-bg: if($kendo-enable-color-system, k-color( base ), $kendo-base-bg) !default;
127
+ $kendo-button-bg: k-color(base) !default;
119
128
  /// The base text color of the Button.
120
129
  /// @group button
121
- $kendo-button-text: if($kendo-enable-color-system, k-color( on-base ), $kendo-base-text) !default;
130
+ $kendo-button-text: k-color(on-base) !default;
122
131
  /// The base border color of the Button.
123
132
  /// @group button
124
133
  $kendo-button-border: $kendo-button-bg !default;
@@ -131,13 +140,13 @@ $kendo-button-shadow: k-elevation(2) !default;
131
140
 
132
141
  /// The base background of the hovered Button.
133
142
  /// @group button
134
- $kendo-button-hover-bg: if($kendo-enable-color-system, k-color( base-hover ), null) !default;
143
+ $kendo-button-hover-bg: k-color(base-hover) !default;
135
144
  /// The base text color of the hovered Button.
136
145
  /// @group button
137
146
  $kendo-button-hover-text: null !default;
138
147
  /// The base border color of the hovered Button.
139
148
  /// @group button
140
- $kendo-button-hover-border: if($kendo-enable-color-system, k-color( base-hover ), null) !default;
149
+ $kendo-button-hover-border: k-color(base-hover) !default;
141
150
  /// The base background gradient of the hovered Button.
142
151
  /// @group button
143
152
  $kendo-button-hover-gradient: null !default;
@@ -147,13 +156,13 @@ $kendo-button-hover-shadow: $kendo-button-shadow !default;
147
156
 
148
157
  /// The base background color of the active Button.
149
158
  /// @group button
150
- $kendo-button-active-bg: if($kendo-enable-color-system, k-color( base-active ), $kendo-base-bg) !default;
159
+ $kendo-button-active-bg: k-color(base-active) !default;
151
160
  /// The base text color of the active Button.
152
161
  /// @group button
153
- $kendo-button-active-text: if($kendo-enable-color-system, k-color( on-base ), $kendo-base-text) !default;
162
+ $kendo-button-active-text: k-color(on-base) !default;
154
163
  /// The base border color of the active Button.
155
164
  /// @group button
156
- $kendo-button-active-border: if($kendo-enable-color-system, k-color( base-active ), null) !default;
165
+ $kendo-button-active-border: k-color(base-active) !default;
157
166
  /// The base background gradient of the active Button.
158
167
  /// @group button
159
168
  $kendo-button-active-gradient: null !default;
@@ -179,13 +188,13 @@ $kendo-button-selected-shadow: $kendo-button-shadow !default;
179
188
 
180
189
  /// The base background of the focused Button.
181
190
  /// @group button
182
- $kendo-button-focus-bg: if($kendo-enable-color-system, k-color( base-hover ), null) !default;
191
+ $kendo-button-focus-bg: k-color(base-hover) !default;
183
192
  /// The base text color of the focused Button.
184
193
  /// @group button
185
194
  $kendo-button-focus-text: null !default;
186
195
  /// The base border color of the focused Button.
187
196
  /// @group button
188
- $kendo-button-focus-border: if($kendo-enable-color-system, k-color( base-hover ), null) !default;
197
+ $kendo-button-focus-border: k-color(base-hover) !default;
189
198
  /// The base background gradient of focused Button.
190
199
  /// @group button
191
200
  $kendo-button-focus-gradient: null !default;
@@ -195,13 +204,13 @@ $kendo-button-focus-shadow: k-elevation(3) !default;
195
204
 
196
205
  /// The base background color of the disabled Button.
197
206
  /// @group button
198
- $kendo-button-disabled-bg: if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 9%, transparent), k-try-shade( $kendo-body-bg, 12% )) !default;
207
+ $kendo-button-disabled-bg: color-mix(in srgb, k-color(on-app-surface) 9%, transparent) !default;
199
208
  /// The base text color of the disabled Button.
200
209
  /// @group button
201
- $kendo-button-disabled-text: if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 32%, transparent), $kendo-disabled-text) !default;
210
+ $kendo-button-disabled-text: color-mix(in srgb, k-color(on-app-surface) 32%, transparent) !default;
202
211
  /// The base border color of the disabled Button.
203
212
  /// @group button
204
- $kendo-button-disabled-border: if($kendo-enable-color-system, transparent, $kendo-button-disabled-bg) !default;
213
+ $kendo-button-disabled-border: transparent !default;
205
214
  /// The base background gradient of the disabled Button.
206
215
  /// @group button
207
216
  $kendo-button-disabled-gradient: null !default;
@@ -21,7 +21,7 @@
21
21
  .k-selected.k-focus .k-link {
22
22
  @include fill(
23
23
  $kendo-calendar-cell-selected-text,
24
- if($kendo-enable-color-system, $kendo-calendar-cell-selected-bg, k-try-tint($kendo-calendar-cell-selected-bg)),
24
+ $kendo-calendar-cell-selected-bg,
25
25
  $kendo-calendar-cell-selected-border
26
26
  );
27
27
  }
@@ -25,13 +25,13 @@ $kendo-calendar-cell-size: 36px !default;
25
25
 
26
26
  /// The background color of the Calendar.
27
27
  /// @group calendar
28
- $kendo-calendar-bg: $kendo-component-bg !default;
28
+ $kendo-calendar-bg: k-color(surface-alt) !default;
29
29
  /// The text color of the Calendar.
30
30
  /// @group calendar
31
- $kendo-calendar-text: $kendo-component-text !default;
31
+ $kendo-calendar-text: k-color(on-app-surface) !default;
32
32
  /// The border color of the Calendar.
33
33
  /// @group calendar
34
- $kendo-calendar-border: $kendo-component-border !default;
34
+ $kendo-calendar-border: k-color(border) !default;
35
35
 
36
36
  /// The horizontal padding of the header in the Calendar.
37
37
  /// @group calendar
@@ -48,10 +48,10 @@ $kendo-calendar-header-border-width: 0px !default;
48
48
  $kendo-calendar-header-bg: unset !default;
49
49
  /// The text color of the header in the Calendar.
50
50
  /// @group calendar
51
- $kendo-calendar-header-text: $kendo-component-header-text !default;
51
+ $kendo-calendar-header-text: k-color(on-app-surface) !default;
52
52
  /// The border color of the header in the Calendar.
53
53
  /// @group calendar
54
- $kendo-calendar-header-border: $kendo-component-header-border !default;
54
+ $kendo-calendar-header-border: k-color(border) !default;
55
55
  /// The gradient of the header in the Calendar.
56
56
  /// @group calendar
57
57
  $kendo-calendar-header-gradient: none !default;
@@ -109,7 +109,7 @@ $kendo-calendar-header-cell-line-height: var( --kendo-line-height, normal ) !def
109
109
  $kendo-calendar-header-cell-bg: null !default;
110
110
  /// The text color of the header cells in the Calendar.
111
111
  /// @group calendar
112
- $kendo-calendar-header-cell-text: $kendo-subtle-text !default;
112
+ $kendo-calendar-header-cell-text: k-color(subtle) !default;
113
113
 
114
114
  /// The opacity of the header cells in the Calendar.
115
115
  /// @group calendar
@@ -161,7 +161,7 @@ $kendo-calendar-weekend-text: null !default;
161
161
  $kendo-calendar-today-style: color !default;
162
162
  /// The color of the current day in the Calendar.
163
163
  /// @group calendar
164
- $kendo-calendar-today-color: $kendo-color-primary !default;
164
+ $kendo-calendar-today-color: k-color(primary) !default;
165
165
 
166
166
  /// The background color of the week number cells in the Calendar.
167
167
  /// @group calendar
@@ -192,23 +192,23 @@ $kendo-calendar-cell-gradient: null !default;
192
192
 
193
193
  /// The background color of the hovered cells in the Calendar.
194
194
  /// @group calendar
195
- $kendo-calendar-cell-hover-bg: $kendo-hover-bg !default;
195
+ $kendo-calendar-cell-hover-bg: k-color(base-hover) !default;
196
196
  /// The text color of the hovered cells in the Calendar.
197
197
  /// @group calendar
198
- $kendo-calendar-cell-hover-text: $kendo-hover-text !default;
198
+ $kendo-calendar-cell-hover-text: k-color(on-app-surface) !default;
199
199
  /// The border color of the hovered cells in the Calendar.
200
200
  /// @group calendar
201
- $kendo-calendar-cell-hover-border: $kendo-hover-border !default;
201
+ $kendo-calendar-cell-hover-border: k-color(border) !default;
202
202
  /// The gradient of the hovered cells in the Calendar.
203
203
  /// @group calendar
204
204
  $kendo-calendar-cell-hover-gradient: null !default;
205
205
 
206
206
  /// The background color of the selected cells in the Calendar.
207
207
  /// @group calendar
208
- $kendo-calendar-cell-selected-bg: $kendo-color-primary !default;
208
+ $kendo-calendar-cell-selected-bg: k-color(primary) !default;
209
209
  /// The text color of the selected cells in the Calendar.
210
210
  /// @group calendar
211
- $kendo-calendar-cell-selected-text: if($kendo-enable-color-system, k-color( on-primary ), k-contrast-color( $kendo-calendar-cell-selected-bg )) !default;
211
+ $kendo-calendar-cell-selected-text: k-color(on-primary) !default;
212
212
  /// The border color of the selected cells in the Calendar.
213
213
  /// @group calendar
214
214
  $kendo-calendar-cell-selected-border: $kendo-calendar-cell-selected-bg !default;
@@ -218,7 +218,7 @@ $kendo-calendar-cell-selected-gradient: null !default;
218
218
 
219
219
  /// The background color of the selected and hovered cells in the Calendar.
220
220
  /// @group calendar
221
- $kendo-calendar-cell-selected-hover-bg: if($kendo-enable-color-system, k-color( primary-hover ), k-try-shade( $kendo-calendar-cell-selected-bg, .5 )) !default;
221
+ $kendo-calendar-cell-selected-hover-bg: k-color(primary-hover) !default;
222
222
  /// The text color of the selected and hovered cells in the Calendar.
223
223
  /// @group calendar
224
224
  $kendo-calendar-cell-selected-hover-text: $kendo-calendar-cell-selected-text !default;
@@ -246,7 +246,7 @@ $kendo-calendar-navigation-item-height: 2em !default;
246
246
 
247
247
  /// The background color of the Calendar navigation.
248
248
  /// @group calendar
249
- $kendo-calendar-navigation-bg: if($kendo-enable-color-system, k-color( surface ), k-true-mix( $kendo-calendar-text, $kendo-calendar-bg, 3)) !default;
249
+ $kendo-calendar-navigation-bg: k-color(surface) !default;
250
250
  /// The text color of the Calendar navigation.
251
251
  /// @group calendar
252
252
  $kendo-calendar-navigation-text: $kendo-calendar-text !default;
@@ -255,7 +255,7 @@ $kendo-calendar-navigation-text: $kendo-calendar-text !default;
255
255
  $kendo-calendar-navigation-border: $kendo-calendar-border !default;
256
256
 
257
257
  /// The background color of the hovered items in the Calendar navigation.
258
- $kendo-calendar-navigation-hover-text: $kendo-link-hover-text !default;
258
+ $kendo-calendar-navigation-hover-text: k-color(secondary-hover) !default;
259
259
 
260
260
 
261
261
  /// The horizontal padding of the header in the Infinite Calendar.
@@ -23,13 +23,13 @@ $kendo-captcha-line-height: var( --kendo-line-height, normal ) !default;
23
23
  $kendo-captcha-gap: $kendo-captcha-spacer !default;
24
24
  /// The background color of the Captcha.
25
25
  /// @group captcha
26
- $kendo-captcha-bg: $kendo-component-bg !default;
26
+ $kendo-captcha-bg: k-color(surface-alt) !default;
27
27
  /// The text color of the Captcha.
28
28
  /// @group captcha
29
- $kendo-captcha-text: $kendo-component-bg !default;
29
+ $kendo-captcha-text: k-color(surface-alt) !default;
30
30
  /// The border color of the Captcha.
31
31
  /// @group captcha
32
- $kendo-captcha-border: $kendo-component-bg !default;
32
+ $kendo-captcha-border: k-color(surface-alt) !default;
33
33
 
34
34
  /// The gap of the Captcha image wrapper.
35
35
  /// @group captcha
@@ -36,13 +36,13 @@ $kendo-card-deck-gap: k-spacing(4) !default;
36
36
 
37
37
  /// The background color of the Card.
38
38
  /// @group card
39
- $kendo-card-bg: $kendo-component-bg !default;
39
+ $kendo-card-bg: k-color(surface-alt) !default;
40
40
  /// The text color of the Card.
41
41
  /// @group card
42
- $kendo-card-text: $kendo-component-text !default;
42
+ $kendo-card-text: k-color(on-app-surface) !default;
43
43
  /// The border color of the Card.
44
44
  /// @group card
45
- $kendo-card-border: $kendo-component-border !default;
45
+ $kendo-card-border: k-color(border) !default;
46
46
  /// The shadow of the Card.
47
47
  /// @group card
48
48
  $kendo-card-shadow: k-elevation(1) !default;
@@ -54,7 +54,7 @@ $kendo-card-focus-bg: null !default;
54
54
  $kendo-card-focus-text: null !default;
55
55
  /// The border color of the focused Card.
56
56
  /// @group card
57
- $kendo-card-focus-border: $kendo-component-border !default;
57
+ $kendo-card-focus-border: k-color(border) !default;
58
58
 
59
59
  // TODO: double-check: the default theme is not supposed to elevate the Card on focus
60
60
 
@@ -146,7 +146,7 @@ $kendo-card-subtitle-font-weight: 500 !default;
146
146
  $kendo-card-subtitle-letter-spacing: null !default;
147
147
  /// The text color of the Card subtitle.
148
148
  /// @group card
149
- $kendo-card-subtitle-text: $kendo-subtle-text !default;
149
+ $kendo-card-subtitle-text: k-color(subtle) !default;
150
150
 
151
151
  /// The maximum width of the Card image.
152
152
  /// @group card
@@ -185,6 +185,19 @@ $kendo-card-callout-width: 20px !default;
185
185
  /// @group card
186
186
  $kendo-card-callout-height: 20px !default;
187
187
 
188
+ $kendo-card-theme-colors: (
189
+ "primary": k-color(primary),
190
+ "secondary": k-color(secondary),
191
+ "tertiary": k-color(tertiary),
192
+ "info": k-color(info),
193
+ "success": k-color(success),
194
+ "warning": k-color(warning),
195
+ "error": k-color(error),
196
+ "dark": k-color(dark),
197
+ "light": k-color(light),
198
+ "inverse": if($kendo-is-dark-theme, k-color(light), k-color(dark)),
199
+ ) !default;
200
+
188
201
  @forward "@progress/kendo-theme-core/scss/components/card/_variables.scss" with (
189
202
  $kendo-card-padding-x: $kendo-card-padding-x,
190
203
  $kendo-card-padding-y: $kendo-card-padding-y,
@@ -240,5 +253,6 @@ $kendo-card-callout-height: 20px !default;
240
253
  $kendo-card-deck-scroll-button-radius: $kendo-card-deck-scroll-button-radius,
241
254
  $kendo-card-deck-scroll-button-offset: $kendo-card-deck-scroll-button-offset,
242
255
  $kendo-card-callout-width: $kendo-card-callout-width,
243
- $kendo-card-callout-height: $kendo-card-callout-height
256
+ $kendo-card-callout-height: $kendo-card-callout-height,
257
+ $kendo-card-theme-colors: $kendo-card-theme-colors
244
258
  );
@@ -5,10 +5,10 @@
5
5
 
6
6
  /// The color of the area around the chart type icon.
7
7
  /// @group chart-wizard
8
- $kendo-chart-wizard-icon-area-color: if($kendo-enable-color-system, k-color(primary), $kendo-color-primary) !default;
8
+ $kendo-chart-wizard-icon-area-color: k-color(primary) !default;
9
9
  /// The background color of the area around the chart type icon.
10
10
  /// @group chart-wizard
11
- $kendo-chart-wizard-icon-area-bg: if($kendo-enable-color-system, k-color(primary-subtle), k-try-tint( $kendo-color-primary, 80% )) !default;
11
+ $kendo-chart-wizard-icon-area-bg: k-color(primary-subtle) !default;
12
12
  /// The border radius of the area around the chart type icon.
13
13
  /// @group chart-wizard
14
14
  $kendo-chart-wizard-icon-area-border-radius: k-border-radius(none) !default;
@@ -17,14 +17,14 @@ $kendo-chart-wizard-icon-area-border-radius: k-border-radius(none) !default;
17
17
  $kendo-chart-wizard-icon-area-padding: k-spacing(4) !default;
18
18
  /// The box shadow of the focused area around the chart type icon.
19
19
  /// @group chart-wizard
20
- $kendo-chart-wizard-icon-area-focus-shadow: inset 0 0 0 1px if($kendo-enable-color-system, k-color(primary-emphasis), k-try-tint( $kendo-color-primary, 25% )) !default;
20
+ $kendo-chart-wizard-icon-area-focus-shadow: inset 0 0 0 1px k-color(primary-emphasis) !default;
21
21
  /// The box shadow of the selected area around the chart type icon.
22
22
  /// @group chart-wizard
23
23
  $kendo-chart-wizard-icon-area-selected-shadow: inset 0 0 0 1px $kendo-chart-wizard-icon-area-color !default;
24
24
 
25
25
  /// The color of the selected chart type items in the Property panel.
26
26
  /// @group chart-wizard
27
- $kendo-chart-wizard-chart-type-selected-color: if($kendo-enable-color-system, k-color(primary), $kendo-color-primary) !default;
27
+ $kendo-chart-wizard-chart-type-selected-color: k-color(primary) !default;
28
28
 
29
29
  /// The padding of the preview pane.
30
30
  /// @group chart-wizard
@@ -8,7 +8,7 @@
8
8
  .k-chat .k-quick-reply {
9
9
  &:focus,
10
10
  &.k-focus {
11
- color: if($kendo-enable-color-system, k-color( primary-on-surface ), $kendo-color-primary);
11
+ color: k-color(primary-on-surface);
12
12
  }
13
13
  }
14
14
  }