Both themes used bg_terminal, on the assumption the name meant "the terminal's background". It does not -- the shared Theme struct documents it as "For terminal output blocks (currently unused, using bg_dark instead)". The surface grok actually paints is bg_base, so GrokDay was rendering brighter than grok itself (#f5f5f5 vs #eeeeee) and GrokNight darker (#0a0a0a vs #141414). GrokDay's color15 moves from bg_storm to bg (#f5f5f5): bg_storm is now the background, so bright white would have been invisible against it. Audited every slot in both files against the source palettes: each value maps to a named palette color, no text color is under 3:1 on its background, and cursor and selection overlays clear 4.5:1.
61 lines
2.2 KiB
Plaintext
61 lines
2.2 KiB
Plaintext
## name: GrokNight
|
|
## author: xAI (grok build), ported by Anton
|
|
## license: see https://github.com/xai-org/grok-build
|
|
## upstream: https://github.com/xai-org/grok-build/blob/main/crates/codegen/xai-grok-pager-render/src/theme/groknight.rs
|
|
## blurb: The GrokNight theme from grok build's TUI: neutral gray base with TokyoNight accents.
|
|
|
|
# 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_base, the surface the TUI actually paints, so a grok
|
|
# session sits flush against the terminal. bg_terminal (#0a0a0a) is not the
|
|
# terminal background despite the name -- it is for terminal-output blocks and
|
|
# is unused. cursor is accent_user, which grok sets over OSC 12 on startup.
|
|
|
|
background #141414
|
|
foreground #e1e1e1
|
|
cursor #c8c8c8
|
|
cursor_text_color #141414
|
|
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
|