Skip to content

Instantly share code, notes, and snippets.

@cristianoap
Created April 5, 2023 13:05
Show Gist options
  • Save cristianoap/aa55e107260465f4737314905f33b2c7 to your computer and use it in GitHub Desktop.
Save cristianoap/aa55e107260465f4737314905f33b2c7 to your computer and use it in GitHub Desktop.
Chakra UI
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