easonwong-de / Adaptive-Tab-Bar-Colour

Changes the colour of Firefox tab bar to match the website theme.
https://addons.mozilla.org/firefox/addon/adaptive-tab-bar-colour/
MIT License
310 stars 11 forks source link

Add control over prefers-color-scheme #60

Open Neikon opened 1 year ago

Neikon commented 1 year ago

Vidaldifox changes this preference when you visit a dark/light website to configure it according to the website.

Would a similar behavior be possible with this add-on?

So we could configure features like this in our css themes:

@media (prefers-color-scheme: dark){ :root{
   --auto-accent-color: color-mix(in srgb, var(--lwt-accent-color) 80%, white);
}}
@media (prefers-color-scheme: light){ :root{
   --auto-accent-color: color-mix(in srgb, var(--lwt-accent-color) 80%, black);
}}

look at, this borde color is set with this css but I can not do it with this add-on only with VivaldiFox img (1) img (2)

VidaldiFox repo

easonwong-de commented 1 year ago

Thanks for the suggestion! I think #56 may be fixed with this.

Gooberpatrol66 commented 11 months ago

Unless I misunderstand what you're asking, you can do that with this app https://github.com/rugk/website-dark-mode-switcher/