aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/eww/scss.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/desktop/eww/scss.nix')
-rw-r--r--modules/desktop/eww/scss.nix23
1 files changed, 22 insertions, 1 deletions
diff --git a/modules/desktop/eww/scss.nix b/modules/desktop/eww/scss.nix
index 408ff64..f625199 100644
--- a/modules/desktop/eww/scss.nix
+++ b/modules/desktop/eww/scss.nix
@@ -2,6 +2,27 @@
config,
...
}:
+let
+ baseSize = config.fonts.size;
+in
config.scheme {
- template = builtins.readFile ./eww.mustache.scss;
+ template =
+ builtins.replaceStrings
+ [
+ "@@font-family@@"
+ "@@font-size@@"
+ "@@font-size-icon@@"
+ "@@font-size-label@@"
+ "@@font-size-small@@"
+ "@@font-size-idx@@"
+ ]
+ [
+ config.fonts.normal
+ (toString baseSize)
+ (toString (baseSize + 6))
+ (toString (baseSize - 2))
+ (toString (baseSize - 6))
+ (toString (baseSize - 4))
+ ]
+ (builtins.readFile ./eww.mustache.scss);
}