51 lines
847 B
Nix
51 lines
847 B
Nix
mode:
|
|
let
|
|
border-radius = 5;
|
|
colors = {
|
|
background = "#282A2E";
|
|
background-alt = "#373B41";
|
|
|
|
foreground = "#C5C8C6";
|
|
|
|
primary = "#F0C674";
|
|
secondary = "#8ABEB7";
|
|
|
|
alert = "#A54242";
|
|
disabled = "#707880";
|
|
};
|
|
|
|
sizing = rec {
|
|
xs = 1;
|
|
s = 2;
|
|
m = 4;
|
|
l = 8;
|
|
xl = 16;
|
|
xxl = 24;
|
|
x3l = 32;
|
|
x4l = 64;
|
|
|
|
str = {
|
|
xs = toString xs;
|
|
s = toString s;
|
|
m = toString m;
|
|
l = toString l;
|
|
xl = toString xl;
|
|
xxl = toString xxl;
|
|
x3l = toString x3l;
|
|
x4l = toString x4l;
|
|
};
|
|
};
|
|
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 // { };
|
|
}
|