aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/eww/scss.nix
blob: f625199e5dbe10340ef6b24fd119d99d991c9d56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  config,
  ...
}:
let
  baseSize = config.fonts.size;
in
config.scheme {
  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);
}