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

Build with inverted colors to support dark mode #954

Open
tristen opened this issue Dec 2, 2020 · 1 comment
Open

Build with inverted colors to support dark mode #954

tristen opened this issue Dec 2, 2020 · 1 comment

Comments

@tristen
Copy link
Member

tristen commented Dec 2, 2020

This might be a nice way of supporting dark mode in Studio: either by automatically supporting an inversion for some color:

.bg-white { background: #FFF; }

@media (prefers-color-scheme: dark) {
  .bg-white { background: #000; }
}

Or creating additional classes to target what the inversion should be:

@media (prefers-color-scheme: dark) {
  .bg-white--dark-mode { background: #FFF; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants