Skip to content

Can I use dark mode variants in pseudo elements? #18504

Answered by wongjn
bd-cbasmajian asked this question in Help
Discussion options

You must be logged in to vote

No, browsers don't like selector "clauses" after a pseudo element. You'd have to repeat the pseudo element: https://play.tailwindcss.com/PjOEa2Kdmb?file=css

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bd-cbasmajian
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