luci-theme-material: improve theming system colors and contrasts
authorDaniel Nilsson <daniel.nilsson94@outlook.com>
Thu, 22 Feb 2024 19:50:09 +0000 (20:50 +0100)
committerPaul Donald <newtwen@gmail.com>
Thu, 7 Mar 2024 00:40:32 +0000 (01:40 +0100)
commitffe414ac53de2ad74cee608b1d1d21729a80a3c9
tree1d6100a5e8af0bf0fe8696366b92ed178e39cf47
parent3f9070b33dce7f6affa46066cfd2005b49376e9b
luci-theme-material: improve theming system colors and contrasts

This changed spawned from trying to make certain text colors readable (such as white text on white background in many dialogs) introduced by commit 4ee2bc6 (ref: #5841) which made obvious the need to improve the color and contrast situation in the theme.

Alot of colors were duplicated in cascade.css and made for a hard time to align colors across different elements. This commit tries to rectify that by introducing variables for all commonly used colors.

* All base colors (white, blue, red, green, blue, yellow, etc) has been consolidated and moved to common variables
* Introduced more specific selectors for info levels to avoid colors bleeding over to other elements
* Removed duplicated properties which were overriden at the next row

Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
(cherry picked from commit 3acc8bc3733bbbb6c20b40bcb7b8f27d50b63779)
themes/luci-theme-material/htdocs/luci-static/material/cascade.css
themes/luci-theme-material/htdocs/luci-static/material/custom.css