Re:How to build a dark theme in CSS
by percyhanna on Thursday October 07, 2021 @01:55PM
(#28789878)
I've been using semantic variables for years, but they were always defined in Sass/LESS. With this approach and using CSS variables, it's really easy to have the same semantic palette, but then define different themes. Nice!
Re:How to build a dark theme in CSS
by SteelWo1f on Thursday October 07, 2021 @11:53AM
(#28787963)
As a programmer it's definitely appealing to be able to create a theme mathematically by just inverting. But then design will get their hands on it and you really have to be prepared for that with something like a semantic layer. It will look much better in the end as well.
> In light mode, darker colors often communicate distance.
Knew this but hadn't consciously realized it.