MyStudio Free demo
Refactoring legacy CSS without breaking everything (part 2) - Printable Version

+- MyStudio Free demo (https://demo.mystudio.forumeze.com)
+-- Forum: Webmaster (https://demo.mystudio.forumeze.com/forum-15.html)
+--- Forum: Design & Development (https://demo.mystudio.forumeze.com/forum-17.html)
+--- Thread: Refactoring legacy CSS without breaking everything (part 2) (/thread-260.html)



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.