EvgenyOrekhov / holiday.css

A minimalist classless CSS theme with dark mode support. Only 5 KB.
https://holidaycss.js.org
MIT License
135 stars 9 forks source link

Manually override light / dark theme #248

Closed adamerose closed 1 year ago

adamerose commented 1 year ago

It looks like holiday.css controls light/dark mode using @media (prefers-color-scheme) but it would be nice to be able to directly toggle between light/dark theme. I think it's not possible to overwrite prefers-color-scheme so I'm looking for another way.

One solution would just be to distribute separate css files for light and dark theme which is how water.css does it. If you can decide how you want this implemented I could submit a PR.

EvgenyOrekhov commented 1 year ago

@adamerose Thanks for the suggestion! Please take a look at https://github.com/EvgenyOrekhov/holiday.css/pull/255 and let me know if it works for you.

EvgenyOrekhov commented 1 year ago

Released in v0.10.0