2025-02-05 17:25:29 -05:00
|
|
|
{ lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
options.theme = {
|
|
|
|
name = lib.mkOption {
|
|
|
|
type = lib.types.nullOr lib.types.str;
|
|
|
|
description = "Color palette name (fallback when individual colors aren't specified)";
|
2025-02-15 20:26:14 -05:00
|
|
|
default = "gruvbox";
|
2025-02-05 17:25:29 -05:00
|
|
|
};
|
|
|
|
colors = lib.mkOption {
|
|
|
|
type = lib.types.attrs;
|
|
|
|
description = "Base16 color scheme.";
|
2025-02-18 17:44:39 -05:00
|
|
|
default = (import ../../colorscheme/gruvbox).dark;
|
2025-02-05 17:25:29 -05:00
|
|
|
};
|
|
|
|
mode = lib.mkOption {
|
|
|
|
type = lib.types.enum [
|
|
|
|
"light"
|
|
|
|
"dark"
|
|
|
|
];
|
|
|
|
description = "Light or dark mode";
|
|
|
|
default = "dark";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|