kidonng / unocss-preset-daisy

UnoCSS preset for daisyUI
https://unocss-preset-daisy.vercel.app
MIT License
220 stars 19 forks source link

Variants do not work #14

Open meixger opened 1 year ago

meixger commented 1 year ago

I cannot get to work responsive utility variants with daisyUI components, e.g. buttons: btn btn-xs sm:btn-lg

Is there a way to tell UnoCSS explicitely to generate those combinations?

StackBlitz reproduction

screenshot

kidonng commented 1 year ago

Oops, that made me aware of the pre-compiled approach I take doesn't work with any variant 😅

Is there a way to tell UnoCSS explicitely to generate those combinations?

Unfortunately no. But I will start working on a full port, so the limitation won't exist anymore.

kidonng commented 1 year ago

Good news: v3 is out!

Bad news: it doesn't support variants yet 😞 it's possible, but I don't think I will get to it soon.

As for your specific issue though, you can just construct the classes yourself, like sm:w-4 sm:h-2. Hopefully it's not too much a hassle 😄