Refactoring legacy CSS without breaking everything (part 2) -
NimbleNora - 10-16-2026
Dark mode is a one-liner media query once your colours live in variables.
:has() finally lets me style parents without JavaScript, and support is good now.
-
EchoEzra - 10-17-2026
(10-16-2026, 02:22 AM)NimbleNora Wrote: Dark mode is a one-liner media query once your colours live in variables.
Refactoring legacy CSS one component at a time is the only sane way.
:has() feels like cheating compared to what we used to do.
I disagree slightly, but I can see where you are coming from.
Bumping this because I ran into the same thing today.
-
BinaryBen - 10-18-2026
Refactoring legacy CSS one component at a time is the only sane way.
:has() feels like cheating compared to what we used to do.
Interesting — I will have to try that.
-
KernelKate - 10-18-2026
Refactoring legacy CSS one component at a time is the only sane way.
Could not agree more.