Theme demo: pick a theme on the right. Log in as demo / demo to try posting. Everything resets every night.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Member
***
236 22 Apr 2026 0 0
#1

Dark mode is a one-liner media query once your colours live in variables.

Code:
:root { --accent: #4f7cff; }
— CSS variables made my theming life so much easier.

Maybe this has been discussed before, but I could not find anything recent.

Curious what everyone else here thinks about it.
Reply
Moderator
*****
234 24 Jul 2026 0 0
#2

(11-22-2026, 10:25 PM)NeonNia 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.

Bumping this because I ran into the same thing today.
Reply
Member
***
205 25 May 2026 0 0
#3

:has() feels like cheating compared to what we used to do.
Reply
Moderator
*****
234 24 Jul 2026 0 0
#4

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

Container queries are great but I still add a media-query fallback.
Reply
Super Moderator
******
224 17 Feb 2026 0 0
#5

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

Users browsing this thread: 1 Guest(s)

Forum Jump: