Skip to content

Commit

Permalink
docs: update tailwind docs link, remove outdated snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-grover committed Oct 18, 2024
1 parent 19a6df7 commit c4f0ea7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,7 @@ Set a default theme (only applied if the browser doesn't specify a preference fo

#### Compatibility with Tailwind

Tailwind expects `class="dark"` on the `html` element rather than `data-theme`. To ensure that `dark:` classes work correctly, you can configure your dark mode selector as described [here](https://tailwindcss.com/docs/dark-mode#customizing-the-class-name).

```js
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ['class', '[data-theme="dark"]'],
// ...
}
```
By default, Tailwind expects `class="dark"` on the `html` element rather than `data-theme`. To ensure that `dark:` classes work correctly, you can configure your dark mode selector as described [here](https://tailwindcss.com/docs/dark-mode#customizing-the-selector).

## What does it do?

Expand Down

0 comments on commit c4f0ea7

Please sign in to comment.