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.
This commit is contained in:
Anton Volnuhin 2026-08-06 03:04:36 +03:00
parent 1485ab26d9
commit c2d0485320
2 changed files with 105 additions and 0 deletions

View File

@ -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

View File

@ -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