Files
Shannon Barber 54338546bc 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 <sgbarber@gmail.com>
2026-05-27 14:29:01 +03:00

27 lines
554 B
Makefile

#
# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
#
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
LUCI_TITLE:=Material Theme
LUCI_DEPENDS:=+luci-base
PKG_LICENSE:=Apache-2.0
define Package/luci-theme-material/postrm
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
uci -q delete luci.themes.Material
uci -q delete luci.themes.MaterialDark
uci -q delete luci.themes.MaterialLight
uci commit luci
}
endef
include ../../luci.mk
# call BuildPackage - OpenWrt buildroot signature