Can I use dark mode variants in pseudo elements? #18504
Answered
by
wongjn
bd-cbasmajian
asked this question in
Help
-
I'm having trouble applying a dark mode variant in a pseudo element. Is this not possible? |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Jul 10, 2025
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
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
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