Files
fish-shell/share/tools/web_config/themes/default-light.theme
Johannes Altmanninger 5cc953b18d Default theme variants specialized for light/dark mode
Start by converting the "default" theme's colors to RGB, using
XTerm colors since they are simple, see
https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit.

Then make the following changes:

for both default-light and default-dark:
- Reinstate fish_color_command/fish_color_keyword as blue since one
  of the reasons in 81ff6db62d (default color scheme: Make commands
  "normal" color, 2024-10-02) doesn't hold anymore.
- bravely replace "fish_pager_color_selected_background -r" with
  something that hopefully matches better.
  Note we can't trivially use the fallback to
  "fish_color_search_match", since for unknown reasons,
  "fish_pager_color_selected_background" is only for background and
  the others are for foreground.

for default-light:
- brgreen (00ff00) looks bad on light background, so replace it with green (00cd00).
  This means that we no longer use two different shades of green in the default theme
  (which helps address the "fruit salad" mentioned 81ff6db62d).
- yellow (cdcd00) looks bad on light background, make it darker (a0a000)
- fish_pager_color_progress's --background=cyan (00cdcd) seems a bit too bright, make it darker
  - same for other uses of cyan (also for consistency)
  - this means fish_color_operator / fish_color_escape can use 00cdcd I guess.
for default-dark:
- use bright green (00ff00) for all greens
- use bright blue (5c5cff) instead of regular blue for command/keyword
- make autosuggestions a bit lighter (9f9f9f instead of 7f7f7f) 
- etc.. I think I made the two themes mostly symmetrical.

Part of #11580
2025-12-14 16:21:16 +01:00

35 lines
1.1 KiB
Plaintext

# name: fish default (light mode)
# preferred_background: ffffff
fish_color_normal 000000
fish_color_autosuggestion 7f7f7f
fish_color_cancel ffffff --background=000000
fish_color_command 0000ee
fish_color_comment cd0000
fish_color_cwd 00cd00
fish_color_cwd_root cd0000
fish_color_end 00cd00
fish_color_error ff0000
fish_color_escape 00cdcd
fish_color_history_current --bold
fish_color_host 000000
fish_color_host_remote a0a000
fish_color_keyword 0000ee
fish_color_operator 00cdcd
fish_color_option 00a0a0
fish_color_param 00a0a0
fish_color_quote a0a000
fish_color_redirection 00a0a0 --bold
fish_color_search_match 060606 --bold --background=cdcdcd
fish_color_selection 060606 --bold --background=cdcdcd
fish_color_status cd0000
fish_color_user 00cd00
fish_color_valid_path --underline
fish_pager_color_description a0a000 --italics
fish_pager_color_prefix 000000 --bold --underline
fish_pager_color_progress ffffff --background=00a0a0 --bold
fish_pager_color_selected_background --background=cdcdcd
fish_pager_color_selected_prefix 060606 --bold
fish_pager_color_selected_completion 060606 --bold
fish_pager_color_selected_description 060606 --bold --italics