I must say that CSS nesting, `light-dark()`, relative color format and `@property` are really changing how I'm writing CSS, and how much more maintainable and elegant such code looks like now!
I must say that CSS nesting, `light-dark()`, relative color format and `@property` are really changing how I'm writing CSS, and how much more maintainable and elegant such code looks like now! 2 comments
@s_hentzschel we were doing this in @FirefoxDevTools and I'm working on switching to light-dark because it's so annoying to search for the light and the dark theme declaration which are separated by dozens of lines. Having those values co-located make it easy for me to reason about a given variable. |
@nicolaschevobbe I agree that there is some good stuff. I'm not a big fan of light-dark(), though. I prefer to have CSS variables named by purpose and then override them for dark mode.