Skip to content

CSS auto dark mode? #305

@trentbuck

Description

@trentbuck

Static CSS can automatically switch to "dark theme".
It would be nice if klaus had this (github does since about 2021).
Looking at https://github.com/jonashaag/klaus/blob/master/klaus/static/klaus.css I'm not sure if you can just leave the colors where they are and shove an "if dark then color1 else color2" around each one...

https://caniuse.com/prefers-color-scheme
https://css-tricks.com/dark-modes-with-css/
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions