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

Media Query Dark mode support #20

Open
pontakornth opened this issue Nov 13, 2023 · 1 comment
Open

Media Query Dark mode support #20

pontakornth opened this issue Nov 13, 2023 · 1 comment

Comments

@pontakornth
Copy link

It seems that it uses dark and light selector and there is no media option. I think it would be nice if it follows the Mini preset for dark mode setting.

@endigma
Copy link
Owner

endigma commented Nov 14, 2023

I've thought about this, most of my sites use a bit of JS in the to handle automatic light/dark by default, but this would be a good addition. The issue is the format of @media is a bit different from a normal selector so it's not possible to do with the current selector option.

A hacky solution might be to try and detect unclosed braces in light/darkselector and close them, or maybe another option entirely for media mode.

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