@@ -25,7 +25,7 @@ export const generateThemeVariant = (theme: IPartialTheme | ITheme, themeType: V
2525
2626export const getDefaultTheme = ( ) : ITheme => {
2727 let currentTheme ;
28- const themeColorsFromWindow : any = ( window as any ) ?. __themeState__ ?. theme ;
28+ const themeColorsFromWindow : any = ( window as any ) ?. __themeState__ ?. theme ; // eslint-disable-line @typescript-eslint/no-explicit-any
2929 if ( themeColorsFromWindow ) {
3030 currentTheme = createTheme ( {
3131 palette : themeColorsFromWindow
@@ -40,11 +40,11 @@ export const getDefaultTheme = (): ITheme => {
4040export const generateThemeFromColors = ( primaryColor : string , textColor : string , backgroundColor : string ) : ITheme => {
4141 const themeRules = themeRulesStandardCreator ( ) ;
4242 const colors = {
43- primaryColor : getColorFromString ( primaryColor ) ! ,
44- textColor : getColorFromString ( textColor ) ! ,
45- backgroundColor : getColorFromString ( backgroundColor ) ! ,
43+ primaryColor : getColorFromString ( primaryColor ) ,
44+ textColor : getColorFromString ( textColor ) ,
45+ backgroundColor : getColorFromString ( backgroundColor ) ,
4646 } ;
47- const currentIsDark = isDark ( themeRules [ BaseSlots [ BaseSlots . backgroundColor ] ] . color ! ) ;
47+ const currentIsDark = isDark ( themeRules [ BaseSlots [ BaseSlots . backgroundColor ] ] . color ) ;
4848
4949 ThemeGenerator . insureSlots ( themeRules , currentIsDark ) ;
5050 ThemeGenerator . setSlot (
@@ -76,4 +76,4 @@ export const generateThemeFromColors = (primaryColor: string, textColor: string,
7676 } ) ;
7777
7878 return generatedTheme ;
79- } ;
79+ } ;
0 commit comments