Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variants do not work #14

Open
meixger opened this issue Mar 23, 2023 · 2 comments
Open

Variants do not work #14

meixger opened this issue Mar 23, 2023 · 2 comments

Comments

@meixger
Copy link

meixger commented Mar 23, 2023

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
Copy link
Owner

kidonng commented Mar 24, 2023

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
Copy link
Owner

kidonng commented Mar 25, 2023

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 😄

@kidonng kidonng changed the title Responsive utility variants does not take effect with buttons Variants do not work Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants