Created
April 5, 2023 13:05
-
-
Save cristianoap/aa55e107260465f4737314905f33b2c7 to your computer and use it in GitHub Desktop.
Chakra UI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import ReactDOM from 'react-dom/client' | |
import './index.css' | |
import App from './App' | |
import { ChakraProvider, extendTheme } from '@chakra-ui/react' | |
const theme = extendTheme({ | |
styles: { | |
global: { | |
body: { | |
bg: 'gray.900', | |
color: 'gray.50', | |
}, | |
}, | |
}, | |
}) | |
const root = ReactDOM.createRoot(document.getElementById('root')) | |
root.render( | |
<React.StrictMode> | |
<ChakraProvider theme={theme}> | |
<App /> | |
</ChakraProvider> | |
</React.StrictMode> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment