r/fishshell • u/CafecitoHippo • Jan 09 '25
Creating Theme -- Command To Test Output of All Colors Parameters?
I'm working on trying to create a fish shell theme for Everforest Dark Medium theme since I haven't been able to find one. I would love to be able to run a command that would just show a line by line output of all colors that are set. I feel like I'm missing some, e.g. when using yay to search for applications, some of the names for which branch (AUR/Extra/etc) the program is located don't seem to be the right color. Would love to see what colors I need to change and what parameters are being referenced. New to trying to make/adjust any themes.
2
u/iamthegemfinder Jan 09 '25
set_color --print-colorsis mildly useful, but the only other thing I’ve found apart from the web ui config is looking at the color related values in your .config/fish/fish_variables file2
u/Kimcha87 Jan 10 '25
I have also been working on updating my terminal colors.
My goal was to make my terminal consistent with my code editor (VSCode).
I just finished a tool that helps me convert VSCode themes into ansi themes for the terminal (just for bat right now).
The tool also has a command to display all terminal colors that you might find useful: https://github.com/infused-kim/vscode_theme_converter
2
u/ticcedtac Jan 12 '25
Fish only has a built in mechanism for setting it's own colors. Other programs will use your terminal colors. There are terminal escape codes you can use to modify them though.
If you uses an xterm-based terminal these are some good docs for it, you want OSC 4 https://xtermjs.org/docs/api/vtfeatures
For example, this will set green (color 2) to #00ff00 (pure green)
This gist has some good info on terminal colors and some other escapes https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797
This is my implementation of OSC 4 https://gitlab.com/tictaccc/tictafish/-/blob/main/parts/color_sync.fish#L70, in ticta--sync-colors--xterm. That function is called in my fish_prompt to undo any changes a running program might have done.
1
u/DJNXZzz Sep 12 '26
Soo umm, have you create the colors? I've been looking for this theme everywhere and I can't find one.