Custom themes not showing up, improve parse error messaging
Discord username (optional)
Aetalix
Describe the bug
I've added custom themes to the ~/.warp/themes directory, but they are not showing up in the theme selector in Warp. It's been like this for months.
To reproduce
I'm not sure how to reproduce this, since for other people it works fine
Expected behavior
The custom themes I've added appear in the theme selector
Screenshots
Operating system
MacOS
Operating system and version
MacOS Ventura 13.4.1
Shell Version
zsh 5.9 (x86_64-apple-darwin22.0)
Current Warp version
v0.2023.11.14.08.02.stable_02
Regression
No, this bug or issue has existed throughout my experience using Warp
Recent working Warp date
Has never worked for me
Additional context
No response
Does this block you from using Warp daily?
No
Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)
Yes, this I confirmed this only happens in Warp, not other terminals.
Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e
None
Hey @dweslynch, please check and make sure your permissions are similar to mine for those folders (~/.warp/ & ~/.warp/themes), and try and restart Warp to see if the theme shows up. If that doesn't help, please post a copy of the theme on this thread, and we can try to reproduce the issue.
@dweslynch any luck with the above?
Looks like it's failing to parse your YAML and doesn't really indicate that anywhere.
Specifically, look at terminal_colors -> light -> cyan. Notice the space after the color? When I remove that, the theme loads for me.
You can't use capital letter. In my case I change all to lower case, and it worked.
I had the same issue on Linux (Ubuntu). Placing the theme in ~/.warp/themes didn't work. But copying the same to ~/.local/share/warp-terminal/themes worked.
I had the same issue on Linux (Ubuntu). Placing the theme in ~/.warp/themes didn't work. But copying the same to ~/.local/share/warp-terminal/themes worked.
Same thing on Linux Mint DE.
I had the same issue on Linux (Ubuntu). Placing the theme in ~/.warp/themes didn't work. But copying the same to ~/.local/share/warp-terminal/themes worked.
Same on Fedora 41
Hey folks, you're correct the locations for themes are different for Mac and Linux. Please see below and/or in our docs for details. https://docs.warp.dev/appearance/custom-themes#how-do-i-use-a-custom-theme-in-warp
Custom theme locations:
- macOS:
$HOME/.warp/themes/ - Linux:
${XDG_DATA_HOME:-$HOME/.local/share}/warp-terminal/themes/
Hope this helps! @dweslynch are you still seeing the issue you noted originally?
@dannyneira Thanks Danny, that worked! I took a double take on the docs and immediately found the tab with "linux", saying what you had to do. Stupid I missed that before 🤔
No worries, it's easy to skim docs, maybe we can have a better UX around auto-switching the tabs per OS since the docs default to the first tab (macOS).
What about on Windows?
Same problem here. Can't get https://github.com/GrimLink/warp-theme-snazzy to show up on Mac:
details: darker
accent: "#ff6ac1"
background: "#282a36"
foreground: "#eff0eb"
terminal_colors:
bright:
black: "#686868"
blue: "#57c7ff"
cyan: "#9aedfe"
green: "#5af78e"
magenta: "#ff6ac1"
red: "#ff5c57"
white: "#eff0eb"
yellow: "#f3f99d"
normal:
black: "#282a36"
blue: "#57c7ff"
cyan: "#9aedfe"
green: "#5af78e"
magenta: "#ff6ac1"
red: "#ff5c57"
white: "#f1f1f0"
yellow: "#f3f99d"
It would be really nice if Warp raised or logged a proper error message...
name: Custom Theme # Name for the theme
accent: '#268bd2' # Accent color for UI elements
cursor: '#95D886' # Input cursor color (optional; defaults to accent color if omitted)
background: '#002b36' # Terminal background color
foreground: '#839496' # The foreground color
details: darker # Whether the theme is lighter or darker
terminal_colors: # Ansi escape colors
bright:
black: '#002b36'
blue: '#839496'
cyan: '#93a1a1'
green: '#586e75'
magenta: '#6c71c4'
red: '#cb4b16'
white: '#fdf6e3'
yellow: '#657b83'
normal:
black: '#073642'
blue: '#268bd2'
cyan: '#2aa198'
green: '#859900'
magenta: '#d33682'
red: '#dc322f'
white: '#eee8d5'
yellow: '#b58900'
This is the template for a custom theme. The theme won't load if the lines don't appear in this same order.