luci-theme-material: add dark mode support
authorShannon Barber <redacted>
Sun, 12 Apr 2026 21:56:12 +0000 (17:56 -0400)
committerPaul Donald <redacted>
Wed, 27 May 2026 11:29:01 +0000 (14:29 +0300)
commit54338546bca800dad20248534c2a8733f70c1c26
treea8f855a6db7ac0d77ef0fd57407b3bdcd9a82512
parentfdc8eb01d0ee2d1c62cdecae80908f3d495e3469
luci-theme-material: add dark mode support

Add dark mode following the luci-theme-bootstrap pattern: auto-detect
via prefers-color-scheme, with forced MaterialDark/MaterialLight
variants. Replace ~60 hardcoded colors in cascade.css with CSS
variables and override them in a :root[data-darkmode="true"] block.

Signed-off-by: Shannon Barber <redacted>
themes/luci-theme-material/Makefile
themes/luci-theme-material/htdocs/luci-static/material/cascade.css
themes/luci-theme-material/htdocs/luci-static/material/custom.css
themes/luci-theme-material/root/etc/uci-defaults/30_luci-theme-material
themes/luci-theme-material/ucode/template/themes/material/header.ut
git clone https://git.99rst.org/PROJECT