Skip to content

Commit

Permalink
Update README with note for HTML class attribute (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrhassab authored Aug 18, 2023
1 parent 11ad82a commit aba0449
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ That's it, your Next.js app fully supports dark mode, including System preferenc
}
```

> **Note!** If you set the attribute of your Theme Provider to class for Tailwind next-themes will modify the `class` attribute on the `html` element. See [With Tailwind](###with-tailwind).
### useTheme

Your UI will need to know the current theme and be able to change it. The `useTheme` hook provides theme information:
Expand Down

0 comments on commit aba0449

Please sign in to comment.