Skip to content
New issue

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

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

Already on GitHub? # to your account

Implement automatic light/dark mode palettes #207

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

marcustyphoon
Copy link
Collaborator

@marcustyphoon marcustyphoon commented Sep 11, 2024

Currently only contains selection UI. I haven't bothered to look into the details of how to use media queries in the styles we're injecting at document_start, if that's possible. Would be nice for @supports in #206 though! Edit: Ah, cool, that wasn't bad at all.

This implements a palette option that lets the user select separate palettes for light and dark mode that, dependent on support from their OS and browser, will be automatically applied.

I couldn't decide between a checkbox that adds a second select element or having one of the options in the main select element be for this mode... well, I mean, I guess I did decide, insofar as I implemented one of the options. But you know what I mean: I could be convinced that the checkbox is better (more visible, which could be a good or bad thing for a niche feature).

Resolves #200.

@marcustyphoon marcustyphoon marked this pull request as ready for review September 12, 2024 07:23
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature request: dynamic themes
1 participant