Theme mechanism broken after an upgrade to Omarchy 3.3.0
System details
Omarchy 3.3.0
What's wrong?
After the upgrade, themes stopped working properly.
hyprland.conf on $HOME/.config/omarchy/current/theme/hyprland.conf doesn't do template replacement for activeBorderColor:
$activeBorderColor = rgb({{ accent_strip }})
general {
col.active_border = $activeBorderColor
}
group {
col.border_active = $activeBorderColor
}
Same is true for ghostty, I see template for every option:
background = {{ background }}
foreground = {{ foreground }}
cursor-color = {{ cursor }}
selection-background = {{ selection_background }}
selection-foreground = {{ selection_foreground }}
palette = 0={{ color0 }}
palette = 1={{ color1 }}
palette = 2={{ color2 }}
palette = 3={{ color3 }}
palette = 4={{ color4 }}
palette = 5={{ color5 }}
palette = 6={{ color6 }}
palette = 7={{ color7 }}
palette = 8={{ color8 }}
palette = 9={{ color9 }}
palette = 10={{ color10 }}
palette = 11={{ color11 }}
palette = 12={{ color12 }}
palette = 13={{ color13 }}
palette = 14={{ color14 }}
palette = 15={{ color15 }}
Please let me know if you need any other info I'm happy to provide
I'm having same issues, using custom themes with old configuration works
i am also having the same issue , how can i fix this , or do i have to download from new ?
Hmm. Sounds like the migration to change the theme didn't run. Can you try manually changing the theme and check if that resolves it?
Found the problem and fixed the migration. Please run omarchy-theme-set "Tokyo Night" to set the default theme in the terminal. Then you can change it back to what you had before. Thanks for spotting this!
Hi, I have the same issue. I tried omarchy-theme-set, but it does not work. First, after running the script all open terminals are filled with this:
Errors parsing configuration
In file $HOME/.config/omarchy/current/theme/kitty.conf:
1:Invalid color name: '{{ foreground }}' in line: foreground {{ foreground }}
2:Invalid color name: '{{ background }}' in line: background {{ background }}
3:Invalid color name: '{{ selection_foreground }}' in line: selection_foreground {{ selection_foreground }}
4:Invalid color name: '{{ selection_background }}' in line: selection_background {{ selection_background }}
6:Invalid color name: '{{ cursor }}' in line: cursor {{ cursor }}
7:Invalid color name: '{{ background }}' in line: cursor_text_color {{ background }}
9:Invalid color name: '{{ active_border_color }}' in line: active_border_color {{ active_border_color }}
10:Invalid color name: '{{ active_tab_background }}' in line: active_tab_background {{ active_tab_background }}
12:Invalid color name: '{{ color0 }}' in line: color0 {{ color0 }}
13:Invalid color name: '{{ color1 }}' in line: color1 {{ color1 }}
14:Invalid color name: '{{ color2 }}' in line: color2 {{ color2 }}
15:Invalid color name: '{{ color3 }}' in line: color3 {{ color3 }}
16:Invalid color name: '{{ color4 }}' in line: color4 {{ color4 }}
17:Invalid color name: '{{ color5 }}' in line: color5 {{ color5 }}
18:Invalid color name: '{{ color6 }}' in line: color6 {{ color6 }}
19:Invalid color name: '{{ color7 }}' in line: color7 {{ color7 }}
20:Invalid color name: '{{ color8 }}' in line: color8 {{ color8 }}
21:Invalid color name: '{{ color9 }}' in line: color9 {{ color9 }}
22:Invalid color name: '{{ color10 }}' in line: color10 {{ color10 }}
23:Invalid color name: '{{ color11 }}' in line: color11 {{ color11 }}
24:Invalid color name: '{{ color12 }}' in line: color12 {{ color12 }}
25:Invalid color name: '{{ color13 }}' in line: color13 {{ color13 }}
26:Invalid color name: '{{ color14 }}' in line: color14 {{ color14 }}
27:Invalid color name: '{{ color15 }}' in line: color15 {{ color15 }}
Press Enter or Esc to exit
then, after pressing escape the logs are:
master ❯ omarchy-theme-set "Tokyo Night"
$HOME/.local/share/omarchy/bin/omarchy-theme-set-templates: line 21: yq: command not found
opencode: no process found
Unable to parse configuration file (fr.emersion.Mako.InvalidConfig)
pci id for fd 16: 10de:0fd1, driver (null)
pci id for fd 17: 10de:0fd1, driver (null)
pci id for fd 18: 10de:0fd1, driver (null)
pci id for fd 17: 10de:0fd1, driver (null)
pci id for fd 18: 10de:0fd1, driver (null)
[16117:16117:0108/134618.405002:ERROR:media/gpu/vaapi/vaapi_wrapper.cc:1628] vaInitialize failed: unknown libva error
pci id for fd 16: 10de:0fd1, driver (null)
pci id for fd 17: 10de:0fd1, driver (null)
pci id for fd 18: 10de:0fd1, driver (null)
pci id for fd 17: 10de:0fd1, driver (null)
pci id for fd 18: 10de:0fd1, driver (null)
[16209:16209:0108/134619.090001:ERROR:media/gpu/vaapi/vaapi_wrapper.cc:1628] vaInitialize failed: unknown libva error
Looks like you've hit the issue with yq being taken by another package than the one we depend on. Uninstall the yq you have, then run omarchy-pkg-add yq, then run omarchy-theme-set "Tokyo Night", and you should be back in business.
Hey @dhh,
Yeah, that solved the issue, thank you!
@dhh and team! Thank you for the incredibly fast fix! 🎉
I hit this exact issue after upgrading from 3.2 to 3.3. Symptoms were:
- Ghostty error dialogs with
{{ placeholder }}values- Hyprland error banner about invalid expressions
- Waybar crashes from invalid CSS
I initially went down the rabbit hole of patching
omarchy-theme-set-templatesto work withgo-yqv4.x syntax, creating a bash-based workaround for the_stripsubstitutions.Then I searched GitHub issues (should have done this first!) and found you'd already diagnosed and resolved it within hours. The fix was simple:
sudo pacman -Rns go-yq yay -S yq omarchy-theme-set "Tokyo Night"Lessons learned:
- Always check GitHub issues before creating custom workarounds
- Custom patches get overwritten by the next
omarchy-updateanyway- The Omarchy community is incredibly responsive—trust the process!
Thanks DHH and team for the quick turnaround. The "convention over configuration" philosophy really shines when the community rallies to fix issues this fast. 🙏
6. Process Improvement
Added to AGENTS.md files: Before attempting any fix for Omarchy issues, we must:
- Search GitHub Issues at https://github.com/basecamp/omarchy/issues
- Check if issue is already reported (search by symptoms, error messages)
- Wait for official fix if issue is recently reported (DHH is fast!)
- Only create custom workarounds if:
- Issue is not reported AND
- We're willing to maintain the workaround ourselves AND
- We understand it may be overwritten by future updates
This ensures our Omarchy setup remains resilient and aligned with upstream, avoiding breakage on every upgrade.
We'll find a better way to deal with this. Didn't realize that there was a common conflict for yq. We can probably just make this happen without it. Someone was going to whip up a PR.
A yq-free way has now been committed to dev and will be part of the next release.
In my case I was using https://mise.jdx.dev/ for some repo specific dependencies and somehow accidentally had yq = latest in my global config.. removing this reverted me back to yq v3 and everything was fixed after running omarchy-theme-set "Tokyo Night" again