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

By default, extension theme matches system (browser) theme #722

Open
rakleed opened this issue Jul 28, 2021 · 2 comments
Open

By default, extension theme matches system (browser) theme #722

rakleed opened this issue Jul 28, 2021 · 2 comments
Labels
enhancement New feature or request good first issue Good start for new contributors

Comments

@rakleed
Copy link

rakleed commented Jul 28, 2021

Describe the feature you want:
It would be nice if, by default, the theme of the extension matches the system (browser) theme.

Why do you want this feature in Authenticator?
This is how most mobile and desktop applications and extensions work. And this is what most users expect.

@rakleed rakleed added the enhancement New feature or request label Jul 28, 2021
@Sneezry Sneezry added the good first issue Good start for new contributors label Jul 28, 2021
@Sneezry
Copy link
Member

Sneezry commented Jul 28, 2021

prefers-color-scheme is a possible solution for this. https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

@aceshigh1309
Copy link

.day {
background: #eee;
color: black;
}
.night {
background: #333;
color: white;
}

@media (prefers-color-scheme: dark) {
.day.dark-scheme {
background: #333;
color: white;
}
.night.dark-scheme {
background: black;
color: #ddd;
}
}

@media (prefers-color-scheme: light) {
.day.light-scheme {
background: white;
color: #555;
}
.night.light-scheme {
background: #eee;
color: black;
}
}

.day,
.night {
display: inline-block;
padding: 1em;
width: 7em;
height: 2em;
vertical-align: middle;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good start for new contributors
Projects
None yet
Development

No branches or pull requests

3 participants