From 959d94f5d6c84b2e2c62d950c90b6e0944854f56 Mon Sep 17 00:00:00 2001 From: Matt Anderson Date: Tue, 23 Jun 2026 11:11:13 -0500 Subject: [PATCH] k9s themes for base16 default --- .../kubernetes-admin@kubernetes/config.yaml | 2 +- k9s/.config/k9s/config.yaml | 2 +- k9s/.config/k9s/k9s-theme-sync.sh | 6 +- k9s/.config/k9s/skins/default-dark.yaml | 114 +++++++++++++++++ k9s/.config/k9s/skins/default-light.yaml | 115 ++++++++++++++++++ 5 files changed, 234 insertions(+), 5 deletions(-) create mode 100644 k9s/.config/k9s/skins/default-dark.yaml create mode 100644 k9s/.config/k9s/skins/default-light.yaml diff --git a/k9s/.config/k9s/clusters/kubernetes/kubernetes-admin@kubernetes/config.yaml b/k9s/.config/k9s/clusters/kubernetes/kubernetes-admin@kubernetes/config.yaml index 71c0922..1360332 100644 --- a/k9s/.config/k9s/clusters/kubernetes/kubernetes-admin@kubernetes/config.yaml +++ b/k9s/.config/k9s/clusters/kubernetes/kubernetes-admin@kubernetes/config.yaml @@ -1,7 +1,7 @@ k9s: cluster: kubernetes namespace: - active: default + active: cp1-ns lockFavorites: false favorites: - matt-dp diff --git a/k9s/.config/k9s/config.yaml b/k9s/.config/k9s/config.yaml index 1434fa4..e1d7961 100644 --- a/k9s/.config/k9s/config.yaml +++ b/k9s/.config/k9s/config.yaml @@ -13,7 +13,7 @@ k9s: reactive: false noIcons: false defaultsToFullScreen: false - skin: transparent + skin: default-light skipLatestRevCheck: false disablePodCounting: false shellPod: diff --git a/k9s/.config/k9s/k9s-theme-sync.sh b/k9s/.config/k9s/k9s-theme-sync.sh index 8dc9b10..dfded6e 100755 --- a/k9s/.config/k9s/k9s-theme-sync.sh +++ b/k9s/.config/k9s/k9s-theme-sync.sh @@ -3,12 +3,12 @@ appearance=$(defaults read -g AppleInterfaceStyle 2>/dev/null) if [[ "$appearance" = "Dark" ]]; then - skin="ember" + skin="default-dark" else - skin="ember-light" + skin="default-light" fi -config_file="$HOME/dotfiles/k9s/.config/k9s/config.yaml" +config_file="$HOME/doc/dev/dotfiles/k9s/.config/k9s/config.yaml" if [[ -f "$config_file" ]]; then sed -i '' "s/skin: .*/skin: $skin/" "$config_file" diff --git a/k9s/.config/k9s/skins/default-dark.yaml b/k9s/.config/k9s/skins/default-dark.yaml new file mode 100644 index 0000000..cbf9a71 --- /dev/null +++ b/k9s/.config/k9s/skins/default-dark.yaml @@ -0,0 +1,114 @@ +# Default Dark — base16 default dark k9s skin +# Colors hardcoded from ghostty default-dark theme (base16 default). +# Backgrounds are explicit (not transparent) so k9s renders consistently +# regardless of terminal theme handling. + +foreground: &foreground "#d8d8d8" +background: &background "#181818" +black: &black "#181818" +blue: &blue "#7cafc2" +green: &green "#a1b56c" +grey: &grey "#585858" +orange: &orange "#dc9656" +purple: &purple "#ba8baf" +red: &red "#ab4642" +yellow: &yellow "#f7ca88" +cyan: &cyan "#86c1b9" + +k9s: + body: + fgColor: *foreground + bgColor: *background + logoColor: *green + prompt: + fgColor: *foreground + bgColor: *background + suggestColor: *orange + info: + fgColor: *foreground + sectionColor: *green + help: + fgColor: *foreground + bgColor: *background + keyColor: *yellow + numKeyColor: *blue + sectionColor: *purple + dialog: + fgColor: *foreground + bgColor: *background + buttonFgColor: *background + buttonBgColor: *green + buttonFocusFgColor: *background + buttonFocusBgColor: *blue + labelFgColor: *orange + fieldFgColor: *blue + frame: + border: + fgColor: *grey + focusColor: *blue + menu: + fgColor: *foreground + keyColor: *yellow + numKeyColor: *yellow + crumbs: + fgColor: *background + bgColor: *green + activeColor: *yellow + status: + newColor: *blue + modifyColor: *green + addColor: *foreground + pendingColor: *orange + errorColor: *red + highlightColor: *yellow + killColor: *purple + completedColor: *grey + title: + fgColor: *blue + bgColor: *background + highlightColor: *purple + counterColor: *foreground + filterColor: *blue + views: + charts: + bgColor: *background + defaultDialColors: + - *green + - *red + defaultChartColors: + - *green + - *red + table: + fgColor: *foreground + bgColor: *background + cursorFgColor: *background + cursorBgColor: *blue + markColor: *orange + header: + fgColor: *foreground + bgColor: *background + sorterColor: *orange + selectedSortColumnColor: *foreground + xray: + fgColor: *foreground + bgColor: *background + cursorColor: *blue + graphicColor: *orange + showIcons: false + yaml: + keyColor: *blue + colonColor: *grey + valueColor: *foreground + logs: + fgColor: *foreground + bgColor: *background + indicator: + fgColor: *blue + bgColor: *background + toggleOnColor: *green + toggleOffColor: *grey + help: + fgColor: *foreground + bgColor: *background + indicator: + fgColor: *blue diff --git a/k9s/.config/k9s/skins/default-light.yaml b/k9s/.config/k9s/skins/default-light.yaml new file mode 100644 index 0000000..fecc1bf --- /dev/null +++ b/k9s/.config/k9s/skins/default-light.yaml @@ -0,0 +1,115 @@ +# Default Light — base16 default light (contrast-modified) k9s skin +# Colors hardcoded from ghostty default-light theme. Accents are the +# hue-preserved WCAG AA variants darkened for the #f8f8f8 background. +# Backgrounds are explicit (not transparent) so k9s renders consistently +# regardless of terminal theme handling. + +foreground: &foreground "#383838" +background: &background "#f8f8f8" +white: &white "#f8f8f8" +blue: &blue "#41788c" +green: &green "#66763b" +grey: &grey "#585858" +orange: &orange "#a56122" +purple: &purple "#9c5d8d" +red: &red "#ab4642" +yellow: &yellow "#9e620b" +cyan: &cyan "#3e7a72" + +k9s: + body: + fgColor: *foreground + bgColor: *background + logoColor: *green + prompt: + fgColor: *foreground + bgColor: *background + suggestColor: *orange + info: + fgColor: *foreground + sectionColor: *green + help: + fgColor: *foreground + bgColor: *background + keyColor: *yellow + numKeyColor: *blue + sectionColor: *purple + dialog: + fgColor: *foreground + bgColor: *background + buttonFgColor: *white + buttonBgColor: *green + buttonFocusFgColor: *white + buttonFocusBgColor: *blue + labelFgColor: *orange + fieldFgColor: *blue + frame: + border: + fgColor: *grey + focusColor: *blue + menu: + fgColor: *foreground + keyColor: *yellow + numKeyColor: *yellow + crumbs: + fgColor: *white + bgColor: *green + activeColor: *yellow + status: + newColor: *blue + modifyColor: *green + addColor: *foreground + pendingColor: *orange + errorColor: *red + highlightColor: *yellow + killColor: *purple + completedColor: *grey + title: + fgColor: *blue + bgColor: *background + highlightColor: *purple + counterColor: *foreground + filterColor: *blue + views: + charts: + bgColor: *background + defaultDialColors: + - *green + - *red + defaultChartColors: + - *green + - *red + table: + fgColor: *foreground + bgColor: *background + cursorFgColor: *white + cursorBgColor: *blue + markColor: *orange + header: + fgColor: *foreground + bgColor: *background + sorterColor: *orange + selectedSortColumnColor: *foreground + xray: + fgColor: *foreground + bgColor: *background + cursorColor: *blue + graphicColor: *orange + showIcons: false + yaml: + keyColor: *blue + colonColor: *grey + valueColor: *foreground + logs: + fgColor: *foreground + bgColor: *background + indicator: + fgColor: *blue + bgColor: *background + toggleOnColor: *green + toggleOffColor: *grey + help: + fgColor: *foreground + bgColor: *background + indicator: + fgColor: *blue