Roast topics
Find topics
Roast it!
Roast topics
Find topics
Find it!
Login
From:
Bram.us
(Uncensored)
subscribe
A custom --light-dark() function in CSS that works with any type of value (not just colors!) in just 3 LOC
https://www.bram.us/2025/09/30/css-custom-light-dark/
links
backlinks
Tagged with:
css
dark mode
original content
at-function
color-scheme
CSS Custom Functions (@function) + CSS if() + CSS color-scheme() = one sweet combo!