New to react and playing around with ChakraUI. I'm using their useColorModeValue property on my main <Box> container. Though, it's not actually changing it's color, the toggle works fine for everything else, just not this box.
import {
ChakraProvider,
Box,
Text,
Link,
VStack,
Grid,
Theme,
useColorModeValue,
} from '@chakra-ui/react';
function App() {
return (
<ChakraProvider theme={theme}>
<Box minH='100vh' bg={useColorModeValue('brand.500', 'teal')}>
<Test />
<Hero />
</Box>
</ChakraProvider>
);
}
Am I missing something here?