How do we set default mode to dark mode? #1551
-
        First Check
 Commit to Help
 Example CodeDescriptionHow do we set the user default option to Dark Mode? Operating SystemmacOS Operating System DetailsMAC Python VersionPython 3.9.6 Additional ContextNo response  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            YuriiMotov
          
      
      
        Sep 5, 2025 
      
    
    Replies: 1 comment
-
| 
         You need to modify  export function CustomProvider(props: PropsWithChildren) {
  return (
    <ChakraProvider value={system}>
-      <ColorModeProvider defaultTheme="light">
+      <ColorModeProvider
+        attribute="class"
+        defaultTheme="dark"
+        enableSystem={false}
+      >
        {props.children}
      </ColorModeProvider>
      <Toaster />
    </ChakraProvider>
  )
} | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        YuriiMotov
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
You need to modify
frontend/src/components/ui/provider.tsx:export function CustomProvider(props: PropsWithChildren) { return ( <ChakraProvider value={system}> - <ColorModeProvider defaultTheme="light"> + <ColorModeProvider + attribute="class" + defaultTheme="dark" + enableSystem={false} + > {props.children} </ColorModeProvider> <Toaster /> </ChakraProvider> ) }