I'm not sure how to use custom classes with CSS state and media queries #443
Unanswered
dawidseipold
asked this question in
Q&A
Replies: 1 comment
-
Why not use TailwindCSS pseudoclasses like so: import classnames, { typography } from "tailwindcss-classnames"
const title = classnames(typography("text-sm", "hover:text-lg")) css state methods was supported but it was dropped because the classnames passed to these methods was being purged #13 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How would you go about creating something like this:
I have two example classes:
And I want to use them depending on the CSS state (hover, md, focus, etc.)
Something like this (obviously the code below isn't correct):
Beta Was this translation helpful? Give feedback.
All reactions