I currently convert all my Kendo themes (linked to my custom theme in my application) to use the new Design system.
I got 2 scss files by theme. ex: pink theme in dark and in light. Then a service switches the generated css file at runtime to reflex the theme user selected.
So I try to change one of them with the new way to compile Kendo themes like:
@use 'sass:map';
@use '@progress/kendo-theme-default/scss/index.scss' as *;
$kendo-colors: map.merge(
$kendo-colors,
(
app-surface: #1e293b,
on-app-surface: #ffffff,
)
);
// Use the 'k-generate-color-variations' function to generate
// all shades of the 'primary', 'secondary' and the 'base' color.
$kendo-colors: map.merge($kendo-colors, k-generate-color-variations('primary', #818cf8, 'default'));
$kendo-colors: map.merge($kendo-colors, k-generate-color-variations('secondary', #475569, 'default'));
@include kendo-theme--styles();
That works great, but all background (grid, textbox... ) are for light themes (background white). With the old system, we can add:
$theme-type: dark
But tha do not work anymore.
So how to create a theme with the same primary and seconfady color, but in a light and dark theme.
Thanks,