Skip to content

Instantly share code, notes, and snippets.

@chunkydotdev
Created March 14, 2022 15:56
Show Gist options
  • Save chunkydotdev/fea2fee20e40cc21b1db5d3dd608da5c to your computer and use it in GitHub Desktop.
Save chunkydotdev/fea2fee20e40cc21b1db5d3dd608da5c to your computer and use it in GitHub Desktop.
Applying theme provider with styled components
import { ThemeProvider } from 'styled-components'
import { theme } from './theme.ts'
const App = () => {
return <>
<ThemeProvider theme={theme}>
<Component1 />
<Component2 />
<Component3 />
</ThemeProvider>
</>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment