chore: prepare for dark theme

This commit is contained in:
Kazhnuz Klappsthul 2021-07-28 18:49:56 +02:00
parent 41a99c0729
commit 27e80667ff
2 changed files with 5 additions and 1 deletions

View File

@ -29,6 +29,10 @@
@return $luminance
}
@function getFontColor() {
@return getTextColorFromBackground(get-color("background-alt"));
}
@function getTextColorFromBackground($background-color) {
@if (luminance($background-color) < 255 * $whiteness_value) {
@return $color-font-light;

View File

@ -21,7 +21,7 @@ body {
text-align: left;
font-size: $fontsize;
line-height: $lineheight;
color: $color-font;
color: getFontColor();
font-weight: $fontweight_base;
}