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

Apply theme based on media query #38

Open
silveltman opened this issue Jul 5, 2023 · 5 comments · May be fixed by #42
Open

Apply theme based on media query #38

silveltman opened this issue Jul 5, 2023 · 5 comments · May be fixed by #42

Comments

@silveltman
Copy link

Awesome plugin!

Is it possible to apply a theme based on a mediaquery? So a different theme for mobile vs desktop.

@Dunqing
Copy link
Member

Dunqing commented Jul 6, 2023

Thanks, yes, it has been supported and if you encounter any problems, please feel free to let me know.

@silveltman
Copy link
Author

How could I do this then? It doesn't say it in the documentation.

@Dunqing
Copy link
Member

Dunqing commented Jul 6, 2023

Sorry, I may have misunderstood. You meant to take effect in a different screen size. I think we can just use sm: md: lg: etc...

@silveltman
Copy link
Author

Ah I see. Yes I meant it to take effect on different screensizes.

This is very usefull for font-sizes for example. Ofcourse I can also make UnoCSS shortcuts to apply both a text:lg and lg:text-xl for example

@Dunqing
Copy link
Member

Dunqing commented Jul 10, 2023

Okay, I get it, I'm not quite sure we can do it yet.

@kaishuige kaishuige linked a pull request Jul 17, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants