From c2d0485320b0f69f2d901f37bb5899f484620fdf Mon Sep 17 00:00:00 2001 From: Anton Volnuhin Date: Thu, 6 Aug 2026 03:04:36 +0300 Subject: [PATCH] kitty: add GrokNight and GrokDay themes Ported from grok build's TUI themes, whose palettes are defined in crates/codegen/xai-grok-pager-render/src/theme/{groknight,grokday}.rs in xai-org/grok-build -- they are compiled RGB constants, not extractable from the shipped binary. background uses grok's bg_terminal and cursor uses accent_user, which grok sets over OSC 12 at startup, so a grok session sits flush against the terminal. ANSI slots map onto the palette's own normal/bright pairs. GrokNight's blue uses `blue` in both slots, as upstream TokyoNight does: the palette's blue0 is a background blue and only reaches 2.96:1 on #0a0a0a, which is too dim for ls output. --- private_dot_config/kitty/grokday.conf | 52 ++++++++++++++++++++++++ private_dot_config/kitty/groknight.conf | 53 +++++++++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 private_dot_config/kitty/grokday.conf create mode 100644 private_dot_config/kitty/groknight.conf diff --git a/private_dot_config/kitty/grokday.conf b/private_dot_config/kitty/grokday.conf new file mode 100644 index 0000000..c4f745e --- /dev/null +++ b/private_dot_config/kitty/grokday.conf @@ -0,0 +1,52 @@ +# GrokDay — neutral light gray base with deepened accents. +# +# Ported from grok build's TUI theme: +# xai-org/grok-build +# crates/codegen/xai-grok-pager-render/src/theme/grokday.rs +# +# Light counterpart to GrokNight: same hue family, darkened for contrast on a +# light background. background is grok's bg_terminal and cursor is accent_user, +# which grok itself sets over OSC 12 on startup. + +background #f5f5f5 +foreground #262626 +cursor #444444 +cursor_text_color #f5f5f5 +selection_background #c6c6c6 +selection_foreground #262626 +url_color #2f64d2 + +# black — text_primary / dark5 +color0 #262626 +color8 #626262 +# red — red1 / red +color1 #af2323 +color9 #cd3048 +# green — green / green1 +color2 #378e23 +color10 #0c947c +# yellow — yellow / orange +color3 #a27612 +color11 #c3691e +# blue — blue0 / blue +color4 #28448a +color12 #2f64d2 +# magenta — purple / magenta (grok's signature accent) +color5 #6c3eb2 +color13 #7d4bc6 +# cyan — teal / cyan +color6 #0a8e70 +color14 #0082aa +# white — fg_gutter / bg_storm +color7 #b2b2b2 +color15 #eeeeee + +# START_AUTOGENERATED_TAB_STYLE +# Feel free to update these colors manually and remove these comments. +active_tab_foreground #f5f5f5 +active_tab_background #7d4bc6 +inactive_tab_foreground #7d4bc6 +inactive_tab_background #f5f5f5 +# END_AUTOGENERATED_TAB_STYLE + +macos_titlebar_color background diff --git a/private_dot_config/kitty/groknight.conf b/private_dot_config/kitty/groknight.conf new file mode 100644 index 0000000..f99f724 --- /dev/null +++ b/private_dot_config/kitty/groknight.conf @@ -0,0 +1,53 @@ +# GrokNight — neutral gray base with TokyoNight accents. +# +# Ported from grok build's TUI theme: +# xai-org/grok-build +# crates/codegen/xai-grok-pager-render/src/theme/groknight.rs +# +# background is grok's bg_terminal (the color the TUI expects behind it) and +# cursor is accent_user, which grok itself sets over OSC 12 on startup, so a +# grok session blends into the terminal instead of sitting on a seam. + +background #0a0a0a +foreground #e1e1e1 +cursor #c8c8c8 +cursor_text_color #0a0a0a +selection_background #363636 +selection_foreground #e1e1e1 +url_color #7aa6da + +# black — fg_gutter / dark5 +color0 #414141 +color8 #787878 +# red — red1 / red +color1 #db4b4b +color9 #f7768e +# green — green / green1 +color2 #9ece6a +color10 #73daca +# yellow — yellow / orange +color3 #e0af68 +color11 #ff9e64 +# blue — blue for both, as upstream TokyoNight does; the palette's blue0 +# (#3d59a1) is a background blue and only reaches 2.96:1 on this bg +color4 #7aa2f7 +color12 #7aa2f7 +# magenta — purple / magenta (grok's signature accent) +color5 #9d7cd8 +color13 #bb9af7 +# cyan — teal / cyan +color6 #1abc9c +color14 #7dcfff +# white — text_secondary / text_primary +color7 #c8c8c8 +color15 #e1e1e1 + +# START_AUTOGENERATED_TAB_STYLE +# Feel free to update these colors manually and remove these comments. +active_tab_foreground #0a0a0a +active_tab_background #bb9af7 +inactive_tab_foreground #bb9af7 +inactive_tab_background #0a0a0a +# END_AUTOGENERATED_TAB_STYLE + +macos_titlebar_color background