nixos-config/config/modules/theme.nix

51 lines
847 B
Nix
Raw Permalink Normal View History

2024-08-02 16:49:54 +00:00
mode:
let
2024-08-01 23:16:23 +00:00
border-radius = 5;
colors = {
background = "#282A2E";
background-alt = "#373B41";
foreground = "#C5C8C6";
primary = "#F0C674";
secondary = "#8ABEB7";
alert = "#A54242";
disabled = "#707880";
};
2024-08-02 16:49:54 +00:00
2024-08-01 23:25:41 +00:00
sizing = rec {
2024-08-01 23:16:23 +00:00
xs = 1;
s = 2;
m = 4;
l = 8;
xl = 16;
2024-08-02 16:49:54 +00:00
xxl = 24;
x3l = 32;
x4l = 64;
2024-08-01 23:25:41 +00:00
str = {
xs = toString xs;
s = toString s;
m = toString m;
l = toString l;
xl = toString xl;
2024-08-02 16:49:54 +00:00
xxl = toString xxl;
x3l = toString x3l;
x4l = toString x4l;
2024-08-01 23:25:41 +00:00
};
2024-08-01 23:16:23 +00:00
};
2024-08-02 16:49:54 +00:00
in
if mode == "light" then {
inherit border-radius sizing;
colors = colors // {
primary = "#9a9aea";
foreground = "#2e2e1e";
background = "#bababa";
background-alt = "#a9a9a9";
};
} else {
inherit border-radius sizing;
colors = colors // { };
2024-08-01 23:16:23 +00:00
}