File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ const DEFAULT_CUSTOM_COLORS: CustomThemeColors = {
5858} ;
5959
6060export const ThemeProvider : React . FC < { children : React . ReactNode } > = ( { children } ) => {
61- const [ theme , setThemeState ] = useState < ThemeMode > ( 'dark ' ) ;
61+ const [ theme , setThemeState ] = useState < ThemeMode > ( 'gray ' ) ;
6262 const [ customColors , setCustomColorsState ] = useState < CustomThemeColors > ( DEFAULT_CUSTOM_COLORS ) ;
6363 const [ isLoading , setIsLoading ] = useState ( true ) ;
6464
@@ -73,6 +73,10 @@ export const ThemeProvider: React.FC<{ children: React.ReactNode }> = ({ childre
7373 const themeMode = savedTheme as ThemeMode ;
7474 setThemeState ( themeMode ) ;
7575 await applyTheme ( themeMode , customColors ) ;
76+ } else {
77+ // No saved preference: apply gray as the default theme
78+ setThemeState ( 'gray' ) ;
79+ await applyTheme ( 'gray' , customColors ) ;
7680 }
7781
7882 // Load custom colors
@@ -181,4 +185,4 @@ export const useThemeContext = () => {
181185 throw new Error ( 'useThemeContext must be used within a ThemeProvider' ) ;
182186 }
183187 return context ;
184- } ;
188+ } ;
You can’t perform that action at this time.
0 commit comments