getformwork / formwork

🏗 A flat file-based Content Management System (CMS) to build and manage sites with simplicity
MIT License
52 stars 12 forks source link

Improve color schemes handling #583

Closed giuscris closed 1 month ago

giuscris commented 1 month ago

This PR changes how color schemes are handled in the panel. Instead of having separate assets for light and dark themes, color schemes are switched via css variables and classes on the root element. The ColorScheme enum simplifies the specification of current and supported color schemes. Now when the color scheme is auto, themes are switched when prefers-color-scheme changes.