Warp icon indicating copy to clipboard operation
Warp copied to clipboard

Custom themes not showing up, improve parse error messaging

Open dweslynch opened this issue 2 years ago • 6 comments

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

Screenshot 2023-11-17 at 2 10 58 PM

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

dweslynch avatar Nov 17 '23 19:11 dweslynch

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.

CleanShot 2023-11-17 at 16 43 58

dannyneira avatar Nov 17 '23 23:11 dannyneira

@dweslynch any luck with the above?

dannyneira avatar Nov 20 '23 16:11 dannyneira

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.

jvantuyl avatar Nov 22 '23 16:11 jvantuyl

You can't use capital letter. In my case I change all to lower case, and it worked.

moooooo16 avatar Feb 15 '24 03:02 moooooo16

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.

lightify97 avatar Sep 16 '24 17:09 lightify97

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.

jcnmsg avatar Oct 14 '24 21:10 jcnmsg

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

timohermans avatar Oct 31 '24 06:10 timohermans

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 avatar Oct 31 '24 17:10 dannyneira

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

timohermans avatar Oct 31 '24 19:10 timohermans

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).

dannyneira avatar Oct 31 '24 19:10 dannyneira

What about on Windows?

dotnetemmanuel avatar May 05 '25 07:05 dotnetemmanuel

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

andig avatar Jul 09 '25 21:07 andig

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.

Dyutin avatar Oct 08 '25 20:10 Dyutin