Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
it's will not work with class we should use `selector`

ref: https://tailwindcss.com/docs/dark-mode#customizing-the-selector
  • Loading branch information
RahulDey12 authored Nov 8, 2024
1 parent 2eda2c3 commit 3cc4a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docs/src/routes/(docs)/docs/themes/+page.svx
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,6 @@ module.exports = {
daisyui: {
themes: ['winter', 'night']
},
darkMode: ['class', '[data-theme="night"]']
darkMode: ['selector', '[data-theme="night"]']
}
```

0 comments on commit 3cc4a18

Please sign in to comment.