You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently using Docusaurus for my site's framework with Tailwind and DaisyUI styling my custom pages (package versions and other details below). It is possible this issue is out of scope, but in my limited testing the framework does not seem to change anything.
In short, I want to be able to use the built-in Docusaurus Dark/Light mode toggle to change my theme, regardless of the browser's preference.
Current Behavior
Toggling Dark/Light mode changes: <html ... data-theme=" " ...> - This is Docusaurus-powered functionality
Tailwind is configured to use data-theme to inform its dark mode styles: darkMode: ["class", "[data-theme='dark']"] - This works as desired
DaisyUI theme does not change and seems to prefer the browser/system preference, rather than data-theme
Based on the documentation here it seems like the theme should be changing, since I have dark and light themes configured. My only thought is that the system/browser preference is overriding something. Seems like this issue is possibly related to #762, but not entirely sure.
Other Info
NodeJS v16.16.0
Docusaurus v2.1.0
Tailwind v3.1.8
DaisyUI v2.31.0
The text was updated successfully, but these errors were encountered:
I am currently using Docusaurus for my site's framework with Tailwind and DaisyUI styling my custom pages (package versions and other details below). It is possible this issue is out of scope, but in my limited testing the framework does not seem to change anything.
In short, I want to be able to use the built-in Docusaurus Dark/Light mode toggle to change my theme, regardless of the browser's preference.
Current Behavior
<html ... data-theme=" " ...>
- This is Docusaurus-powered functionalitydata-theme
to inform its dark mode styles:darkMode: ["class", "[data-theme='dark']"]
- This works as desireddata-theme
Tailwind Config
Desired Behavior
Based on the documentation here it seems like the theme should be changing, since I have
dark
andlight
themes configured. My only thought is that the system/browser preference is overriding something. Seems like this issue is possibly related to #762, but not entirely sure.Other Info
The text was updated successfully, but these errors were encountered: