I am using the Chakra-UI theme and going to customize the light and dark themes' colors.
I don't know the way of about set different colors for light and dark themes.
For example, I am going to set different color values for light and dark themes, like below.
import { extendTheme, ChakraProvider } from "@chakra-ui/react"
const lightThemeColor = {
gray: {
500: '#828288',
800: '#171822',
}
}
const darkThemeColor = {
gray: {
500: '#75B046',
800: '#1E1F2B',
}
}
const theme = extendTheme({
lightTheme: lightThemeColor, // <== unfortunately, there isn't lightTheme key for setting light Theme.
darkTheme: darkThemeColor
})
export default function App({ Component, pageProps }) {
return (
<ChakraProvider theme={theme}>
<Component {...pageProps} />
</ChakraProvider>
);
}
I don't know how to set light theme and dark theme color. How can I set the light and dark theme colors?