config/colors.nix

122 lines
1.8 KiB
Nix
Raw Normal View History

2022-01-10 09:53:42 +01:00
# Color schemes.
2022-01-10 19:25:34 +01:00
let inherit (builtins) mapAttrs map; in rec {
2022-01-10 09:53:42 +01:00
# A simple dark theme with vibrant colors.
"dark" = rec {
# Determines the background for applications such as the terminal,
# status bars or WM elements.
background = {
primary = "1a1a1a";
normal = "212121";
slight = "535353";
};
# Determines the foreground color of text.
foreground = {
primary = "fafafa";
normal = "efefef";
slight = "bdbdbd";
};
grayscales = [
"121212"
background.primary
background.normal
"2a2a2a"
"323232"
"424242"
"4a4a4a"
background.slight
"646464"
"6a6a6a"
"757575"
"7a7a7a"
"868686"
"8a8a8a"
"979797"
"9a9a9a"
"a8a8a8"
"aaaaaa"
"b9b9b9"
foreground.slight
"cacaca"
"dadada"
"eaeaea"
foreground.normal
foreground.primary
];
red = {
normal = "ff6161";
bright = "ff3b3b";
2022-03-08 06:56:23 +01:00
pastel = "ff7588";
2022-01-10 09:53:42 +01:00
};
green = {
2022-01-10 19:25:34 +01:00
normal = "8aff80";
2022-05-16 17:44:49 +02:00
bright = "29f26c";
2022-01-10 09:53:42 +01:00
pastel = "";
};
blue = {
2022-01-10 19:25:34 +01:00
normal = "30c7ff";
bright = "00e1ff";
2022-01-10 09:53:42 +01:00
pastel = "";
};
yellow = {
2022-01-10 19:25:34 +01:00
normal = "fcfc51";
bright = "fcfc51";
2022-01-10 09:53:42 +01:00
pastel = "";
};
purple = {
2022-05-16 17:44:49 +02:00
normal = "b58aff";
2022-01-10 19:25:34 +01:00
bright = "c97ffa";
2022-03-08 06:56:23 +01:00
pastel = "d9b5ff";
2022-01-10 09:53:42 +01:00
};
cyan = {
2022-01-10 19:25:34 +01:00
normal = "29f8ff";
bright = "26e3fc";
2022-03-08 06:56:23 +01:00
pastel = "63e8ff";
2022-01-10 19:25:34 +01:00
};
pink = {
2022-05-16 17:44:49 +02:00
normal = "ee8fff";
2022-01-10 19:25:34 +01:00
bright = "ff63e5";
2022-03-08 06:56:23 +01:00
pastel = "ff96e3";
2022-01-10 09:53:42 +01:00
};
orange = {
normal = "ff8c26";
2022-01-10 19:25:34 +01:00
bright = "fca151";
2022-01-10 09:53:42 +01:00
pastel = "";
};
2022-01-10 19:25:34 +01:00
misc = {
blueGrey = "9ccdd9";
teal = "00ccad";
lime = "d5ff63";
};
hex = mapAttrs (name: value:
2022-01-12 00:20:57 +01:00
if name == "grayscales"
then map (v: "#" + v) value
else if name == "hex"
then value
else mapAttrs (n: v: "#" + v) value
2022-01-10 19:25:34 +01:00
) (dark);
2022-01-10 09:53:42 +01:00
};
}