Skip to content

@variant dark does not work with @theme #17809

Answered by wongjn
henrijoss asked this question in Help
Discussion options

You must be logged in to vote

When adding the dark class to another element other than <html>, you need to adjust things slightly: https://play.tailwindcss.com/NfHJaa5ky4?file=css or https://play.tailwindcss.com/PbuWWCJUBV?file=css

Replies: 1 comment 16 replies

Comment options

You must be logged in to vote
16 replies
@wongjn
Comment options

wongjn Apr 28, 2025
Collaborator

@henrijoss
Comment options

@henrijoss
Comment options

@wongjn
Comment options

wongjn Apr 28, 2025
Collaborator

Answer selected by henrijoss
@henrijoss
Comment options

@wongjn
Comment options

wongjn Apr 28, 2025
Collaborator

@henrijoss
Comment options

@wongjn
Comment options

wongjn Apr 28, 2025
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #17807 on April 28, 2025 12:53.