nixos-config/home/themes/alacritty.nix

94 lines
2 KiB
Nix
Raw Normal View History

2022-04-10 11:54:58 +02:00
{lib}: let
inherit
(lib)
2022-01-11 16:08:21 +01:00
mkOption
types
2022-04-10 11:54:58 +02:00
;
2022-01-11 16:08:21 +01:00
2022-04-10 11:54:58 +02:00
mkColorOption = import ./color.nix {inherit lib;};
2021-04-22 00:25:39 +02:00
primaryColorModule = types.submodule {
options = {
background = mkColorOption {};
foreground = mkColorOption {};
};
};
cursorColorModule = types.submodule {
options = {
text = mkColorOption {};
cursor = mkColorOption {};
};
};
rainbowColorModule = types.submodule {
options = {
black = mkColorOption {};
red = mkColorOption {};
green = mkColorOption {};
yellow = mkColorOption {};
blue = mkColorOption {};
magenta = mkColorOption {};
cyan = mkColorOption {};
white = mkColorOption {};
};
};
in
2022-04-10 11:54:58 +02:00
types.submodule {
options = {
primary = mkOption {
type = primaryColorModule;
default = {
foreground = "#c5c8c6";
background = "#1d1f21";
};
2021-04-22 00:25:39 +02:00
};
2022-04-10 11:54:58 +02:00
cursor = mkOption {
type = cursorColorModule;
default = {
text = "#1d1f21";
cursor = "#c5c8c6";
};
2021-04-22 00:25:39 +02:00
};
2022-04-10 11:54:58 +02:00
normal = mkOption {
type = rainbowColorModule;
default = {
black = "#1d1f21";
red = "#cc6666";
green = "#b5bd68";
yellow = "#f0c674";
blue = "#81a2be";
magenta = "#b294bb";
cyan = "#8abeb7";
white = "#c5c8c6";
};
2021-04-22 00:25:39 +02:00
};
2022-04-10 11:54:58 +02:00
bright = mkOption {
type = rainbowColorModule;
default = {
black = "#666666";
red = "#d54e53";
green = "#b9ca4a";
yellow = "#e7c547";
blue = "#7aa6da";
magenta = "#c397d8";
cyan = "#70c0b1";
white = "#eaeaea";
};
2021-04-22 00:25:39 +02:00
};
2022-04-10 11:54:58 +02:00
dim = mkOption {
type = rainbowColorModule;
default = {
black = "#131415";
red = "#864343";
green = "#777c44";
yellow = "#9e824c";
blue = "#556a7d";
magenta = "#75617b";
cyan = "#5b7d78";
white = "#828482";
};
2021-04-22 00:25:39 +02:00
};
};
2022-04-10 11:54:58 +02:00
}