Skip to content

tainwind 4+ (nextjs) dark theme docs - #392

Open
hogagatech wants to merge 1 commit into
pacocoursey:mainfrom
hogagatech:fix-dark-mode-docs
Open

tainwind 4+ (nextjs) dark theme docs#392
hogagatech wants to merge 1 commit into
pacocoursey:mainfrom
hogagatech:fix-dark-mode-docs

Conversation

@hogagatech

Copy link
Copy Markdown

In Tailwind CSS v4 and above, dark mode using the dark: utility may not work out of the box when using class-based theme switching (e.g., with next-themes or manually toggling .dark on the element). @custom-variant dark (&:where(.dark, .dark *)); in styles/global.css in next js fixes this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant