1
0
mirror of https://github.com/flarum/core.git synced 2025-08-07 00:47:00 +02:00

feat: add text color variables not depending on the dark/light mode

This commit is contained in:
protoclown
2022-09-26 10:02:13 +02:00
parent bd0e6638cc
commit 0c888f6403

View File

@@ -64,6 +64,13 @@
@code-color: #fff;
}
// Beyond dark or light mode, we need stable colors depending on the luminosity
// of the parents element's background. This allow not to change the color
// variable depending on the dark/light mode to get the same final color, and
// thus to simplify the logic.
@text-on-dark: #ddd;
@text-on-light: #111;
@hero-bg: @control-bg;
@hero-color: @control-color;
@hero-muted-color: @control-color;