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
|
||||
}
|
||||
|
||||
@function getFontColor() {
|
||||
@return getTextColorFromBackground(get-color("background-alt"));
|
||||
}
|
||||
|
||||
@function getTextColorFromBackground($background-color) {
|
||||
@if (luminance($background-color) < 255 * $whiteness_value) {
|
||||
@return $color-font-light;
|
||||
|
|
|
@ -21,7 +21,7 @@ body {
|
|||
text-align: left;
|
||||
font-size: $fontsize;
|
||||
line-height: $lineheight;
|
||||
color: $color-font;
|
||||
color: getFontColor();
|
||||
font-weight: $fontweight_base;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue