You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say I have the below css (in a real project with Astro)
I want to use prose-sm classname dynamically, not tied to a single breakpoint.
Sometimes I want max-lg:prose-sm and sometimes I want max-md:prose-sm.
It has to be dynamic, so the workaround in the previous issue won't work.
Since Astro is built for performance and ships 0 JavaScript by default, I don't really want to introduce a JS code snippet to apply the classname conditionally based on matchMedia()...
Please let me know whether I have a workaround for that, or if we are able to support this feature. Thanks.
It's REALLY needed in a lot of scenarios.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
There's an already existing issue [v4] variants are not working on layer defined components and utilities for this, but the example in that issue is way too small, so it seems to have a workaround.
Say I have the below css (in a real project with
Astro
)I want to use
prose-sm
classname dynamically, not tied to a single breakpoint.Sometimes I want
max-lg:prose-sm
and sometimes I wantmax-md:prose-sm
.It has to be dynamic, so the workaround in the previous issue won't work.
Since
Astro
is built for performance and ships 0 JavaScript by default, I don't really want to introduce a JS code snippet to apply the classname conditionally based onmatchMedia()
...Please let me know whether I have a workaround for that, or if we are able to support this feature. Thanks.
It's REALLY needed in a lot of scenarios.
Beta Was this translation helpful? Give feedback.
All reactions