Skip to content

Commit

Permalink
Update documentation around defaultTheme (pacocoursey#130)
Browse files Browse the repository at this point in the history
The previous documentation referred to using `<ThemeProvider defaultTheme="system">`, but this is no longer necessary
  • Loading branch information
brunocrosier authored Jul 26, 2022
1 parent a85bb62 commit 4e819f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ The [Live Example](https://next-themes-example.vercel.app/) shows next-themes in

### Use System preference by default

The `defaultTheme` is "light". If you want to respect the System preference instead, set it to "system":
For versions above v0.0.12, the `defaultTheme` is automatically set to "system", so to use System preference you can simply use:

```js
<ThemeProvider defaultTheme="system">
<ThemeProvider>
```

### Ignore System preference
Expand Down

0 comments on commit 4e819f7

Please sign in to comment.