MyStudio Free demo
Refactoring legacy CSS without breaking everything - 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 (/thread-236.html)

Pages: 1 2 3 4


- ServerSage - 11-28-2026

CSS variables + one class toggle is my whole dark mode stack.

Refactoring legacy CSS one component at a time is the only sane way.

Good point, I had not thought of it that way.


- TechTress - 11-28-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.

Nice thread, following for the replies.


- ZenZara - 11-28-2026

Refactoring legacy CSS one component at a time is the only sane way.

Container queries are great but I still add a media-query fallback.


- ServerSage - 11-28-2026

CSS variables + one class toggle is my whole dark mode stack.


- PatchPat - 11-28-2026

(11-28-2026, 04:51 AM)ServerSage Wrote: CSS variables + one class toggle is my whole dark mode stack.
Refactoring legacy CSS one component at a time is the only sane way.

Thanks for sharing, saved me a lot of time.


- SpammySteve - 11-28-2026

:has() feels like cheating compared to what we used to do.

Refactoring legacy CSS one component at a time is the only sane way.

Bumping this because I ran into the same thing today.


- PixelatedPaul - 11-28-2026

:has() feels like cheating compared to what we used to do.

CSS variables + one class toggle is my whole dark mode stack.


- ByteBruce - 11-28-2026

CSS variables + one class toggle is my whole dark mode stack.

Thanks for sharing, saved me a lot of time.


- FluxFiona - 11-28-2026

I still reach for Bootstrap when a client needs to maintain it afterwards.

:has() feels like cheating compared to what we used to do.


- TechTress - 11-28-2026

:has() feels like cheating compared to what we used to do.

I disagree slightly, but I can see where you are coming from.