Skip to content

Commit

Permalink
kubecolor: init
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Dec 2, 2024
1 parent d13ffb3 commit 4e1edb7
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 12 deletions.
24 changes: 12 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 76 additions & 0 deletions modules/kubecolor/hm.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{ config, lib, ... }:

with config.lib.stylix.colors.withHashtag;

{
options.stylix.targets.kubecolor.enable =
config.lib.stylix.mkEnableTarget "kubecolor" true;

config = lib.mkIf config.stylix.targets.kubecolor.enable {
programs.kubecolor.settings = {
preset = if config.stylix.polarity == "either" then "" else "${config.stylix.polarity}";
theme = {
base = {
info = "fg=${base05-hex}";
primary = "fg=${base0E-hex}";
secondary = "fg=${base0D-hex}";
success = "fg=${base0B-hex}:bold";
warning = "fg=${base0A-hex}:bold";
danger = "fg=${base08-hex}:bold";
muted = "fg=${base04-hex}";
key = "fg=${base07-hex}:bold";
};
default = "fg=${base05-hex}";
data = {
key = "fg=${base07-hex}:bold";
string = "fg=${base05-hex}";
true = "fg=${base0B-hex}:bold";
false = "fg=${base08-hex}:bold";
number = "fg=${base0E-hex}";
null = "fg=${base04-hex}";
quantity = "fg=${base0E-hex}";
duration = "fg=${base09-hex}";
durationfresh = "fg=${base0B-hex}";
ratio = {
zero = "fg=${base04-hex}";
equal = "fg=${base0B-hex}";
unequal = "fg=${base0A-hex}";
};
};
status = {
success = "fg=${base0B-hex}:bold";
warning = "fg=${base0A-hex}:bold";
error = "fg=${base08-hex}:bold";
};
table = {
header = "fg=${base05-hex}:bold";
columns = "fg=${base05-hex}";
};
stderr = {
default = "fg=${base05-hex}";
error = "fg=${base08-hex}:bold";
};
describe = {
key = "fg=${base07-hex}:bold";
};
apply = {
created = "fg=${base0B-hex}";
configured = "fg=${base0A-hex}";
unchanged = "fg=${base05-hex}";
dryrun = "fg=${base0D-hex}";
fallback = "fg=${base05-hex}";
};
explain = {
key = "fg=${base07-hex}:bold";
required = "fg=${base00-hex}:bold";
};
options = {
flag = "fg=${base07-hex}:bold";
};
version = {
key = "fg=${base07-hex}:bold";
};
};
};
};
}

0 comments on commit 4e1edb7

Please sign in to comment.