chore: prepare for dark theme
This commit is contained in:
parent
41a99c0729
commit
27e80667ff
2 changed files with 5 additions and 1 deletions
|
@ -29,6 +29,10 @@
|
||||||
@return $luminance
|
@return $luminance
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@function getFontColor() {
|
||||||
|
@return getTextColorFromBackground(get-color("background-alt"));
|
||||||
|
}
|
||||||
|
|
||||||
@function getTextColorFromBackground($background-color) {
|
@function getTextColorFromBackground($background-color) {
|
||||||
@if (luminance($background-color) < 255 * $whiteness_value) {
|
@if (luminance($background-color) < 255 * $whiteness_value) {
|
||||||
@return $color-font-light;
|
@return $color-font-light;
|
||||||
|
|
|
@ -21,7 +21,7 @@ body {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-size: $fontsize;
|
font-size: $fontsize;
|
||||||
line-height: $lineheight;
|
line-height: $lineheight;
|
||||||
color: $color-font;
|
color: getFontColor();
|
||||||
font-weight: $fontweight_base;
|
font-weight: $fontweight_base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue