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

Automatic Dark Mode #170

Open
osswaldo opened this issue Aug 30, 2023 · 1 comment
Open

Automatic Dark Mode #170

osswaldo opened this issue Aug 30, 2023 · 1 comment
Assignees
Labels

Comments

@osswaldo
Copy link

Hallo zusammen,

I would like to implement an automatic dark mode. In the documentation I have already found that a dark theme can be permanently selected in the _custom_colors.scss. My idea was to wrap this theme in some kind of condition. I can program, but unfortunately my CSS skills are 0 and so I only tested what I could google:

@import 'mate_color_schemes/mate_dark_colors' and (prefers-color-scheme: dark);
@media (prefers-color-scheme: dark) {
    @import 'mate_color_schemes/mate_dark_colors';
}
[data-theme="dark"] {
  @import 'mate_color_schemes/mate_dark_colors';
}

The working line with no condition for persistent dark mode is this:

@import 'mate_color_schemes/mate_dark_colors';

Unfortunately I didn't manage to achieve my goal with any of the filters, does anyone have another idea?

Thank you!

@seibtph
Copy link
Collaborator

seibtph commented Jun 28, 2024

Das ist leider nicht so einfach möglich einzubinden. Man müsste ein neues Farbschema für den Dark Mode anlegen und dort alle Farbangaben per CSS ändern. Man kann das leider nicht einfach mit ein paar Variablen umstellen. Wir können den Dark Mode integrieren, es würde aber etwa 2 - 3 Stunden Aufwand sein. Wärst du vielleicht bereit das etwas zu unterstützen, wenn du das Feature aktuell noch benötigst?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants