Skip to content

Commit

Permalink
Merge pull request chakra-ui#3443 from srflp/docs/add-reminder-to-col…
Browse files Browse the repository at this point in the history
…or-mode

docs(color-mode): add a reminder about passing theme to ChakraProvider
  • Loading branch information
segunadebayo committed Feb 26, 2021
2 parents dbebab7 + 636609f commit db01b34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/pages/docs/features/color-mode.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ const theme = extendTheme({ config })
export default theme
```

> Remember to pass your custom `theme` to the `ChakraProvider`, otherwise your
> color mode config won't be taken into consideration.
### Adding the `ColorModeScript`

The color mode script needs to added before the `body` tag for local storage
Expand Down

0 comments on commit db01b34

Please sign in to comment.