From c4f0ea7210075ed6746bbcb947785166508f66fa Mon Sep 17 00:00:00 2001 From: Alex Grover Date: Fri, 18 Oct 2024 11:22:17 -0400 Subject: [PATCH] docs: update tailwind docs link, remove outdated snippet --- README.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index b209123..68aad3c 100644 --- a/README.md +++ b/README.md @@ -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?