07-19-2026, 10:17 PM
Code:
:root { --accent: #4f7cff; }Dark mode is a one-liner media query once your colours live in variables.
Curious what everyone else here thinks about it.
226
23
May 2026
07-19-2026, 11:38 PM
(07-19-2026, 10:17 PM)BinaryBen Wrote:Refactoring legacy CSS one component at a time is the only sane way.— CSS variables made my theming life so much easier.Code::root { --accent: #4f7cff; }
Container queries are great but I still add a media-query fallback.
Interesting — I will have to try that.
Could not agree more.
07-20-2026, 01:34 AM
I still reach for Bootstrap when a client needs to maintain it afterwards.
Refactoring legacy CSS one component at a time is the only sane way.
Interesting — I will have to try that.
Refactoring legacy CSS one component at a time is the only sane way.
Interesting — I will have to try that.
07-20-2026, 01:39 AM
CSS variables + one class toggle is my whole dark mode stack.
Container queries are great but I still add a media-query fallback.
Nice thread, following for the replies.
Container queries are great but I still add a media-query fallback.
Nice thread, following for the replies.
07-20-2026, 02:02 AM
I still reach for Bootstrap when a client needs to maintain it afterwards.
07-20-2026, 02:45 AM
(07-20-2026, 02:02 AM)PatchPat Wrote: I still reach for Bootstrap when a client needs to maintain it afterwards.Container queries are great but I still add a media-query fallback.
I still reach for Bootstrap when a client needs to maintain it afterwards.
Good point, I had not thought of it that way.
07-20-2026, 03:17 AM
I still reach for Bootstrap when a client needs to maintain it afterwards.
:has() feels like cheating compared to what we used to do.
:has() feels like cheating compared to what we used to do.
07-20-2026, 05:08 AM
Refactoring legacy CSS one component at a time is the only sane way.
Nice thread, following for the replies.
Thanks for sharing, saved me a lot of time.
Nice thread, following for the replies.
Thanks for sharing, saved me a lot of time.
07-20-2026, 05:35 AM
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)
