summaryrefslogtreecommitdiff
path: root/config/ghostty
diff options
context:
space:
mode:
authorIgor Soarez <igor@soarez.org>2026-10-17 11:07:32 +0100
committerIgor Soarez <igor@soarez.org>2026-10-17 11:07:32 +0100
commit95056eacdff97a710129bbb29e707ab83f5faa72 (patch)
treeef8fe50947e506859bc0190bd777c50f2f666453 /config/ghostty
parentc0771c839df57a627ceb21bd398752ba2b1ed3f1 (diff)
theme-gen: derive tmux and ghostty colours for any theme
`theme --set <mode> <name>` needs a tmux conf and a ghostty colour file that alacritty-format themes do not provide, so such a name fell back to the generic dark/light tmux colours and left ghostty unchanged, exiting 0. bin/theme-gen reads a theme in alacritty .toml format (by alacritty-theme checkout name or path) or Ghostty's bundled `palette = N=#hex` format, and writes config/tmux/colors/<name>.conf and config/ghostty/colors/<name>, plus config/alacritty/colors/<name>.toml for a ghostty-format source. Generated with it: sonokai, solarized_osaka_night, kanagawabones and dracula_plus_high_contrast, with nvim stand-ins for the three that have no nvim port installed. Parsed keys go through eval, so only plain section.key names and hex values are accepted: a theme file could otherwise run commands. From dot request 20261017-110255-work-laptop-48c22c.
Diffstat (limited to 'config/ghostty')
-rw-r--r--config/ghostty/colors/dracula_plus_high_contrast21
-rw-r--r--config/ghostty/colors/kanagawabones21
-rw-r--r--config/ghostty/colors/solarized_osaka_night21
-rw-r--r--config/ghostty/colors/sonokai21
4 files changed, 84 insertions, 0 deletions
diff --git a/config/ghostty/colors/dracula_plus_high_contrast b/config/ghostty/colors/dracula_plus_high_contrast
new file mode 100644
index 0000000..4f74f86
--- /dev/null
+++ b/config/ghostty/colors/dracula_plus_high_contrast
@@ -0,0 +1,21 @@
+# dracula_plus_high_contrast color scheme (generated by theme-gen from /Applications/Ghostty.app/Contents/Resources/ghostty/themes/Dracula+ High Contrast)
+
+background = #14141a
+foreground = #f8f8f2
+
+palette = 0=#9ba0b4
+palette = 1=#ff7676
+palette = 2=#50fa7b
+palette = 3=#ffcb6b
+palette = 4=#82aaff
+palette = 5=#c792ea
+palette = 6=#8be9fd
+palette = 7=#f8f8f2
+palette = 8=#9ba1b5
+palette = 9=#ff8a8a
+palette = 10=#69ff94
+palette = 11=#ffd98a
+palette = 12=#d6acff
+palette = 13=#ff92df
+palette = 14=#a4ffff
+palette = 15=#ffffff
diff --git a/config/ghostty/colors/kanagawabones b/config/ghostty/colors/kanagawabones
new file mode 100644
index 0000000..bd1a43b
--- /dev/null
+++ b/config/ghostty/colors/kanagawabones
@@ -0,0 +1,21 @@
+# kanagawabones color scheme (generated by theme-gen from /Applications/Ghostty.app/Contents/Resources/ghostty/themes/Kanagawabones)
+
+background = #1f1f28
+foreground = #ddd8bb
+
+palette = 0=#1f1f28
+palette = 1=#e46a78
+palette = 2=#98bc6d
+palette = 3=#e5c283
+palette = 4=#7eb3c9
+palette = 5=#957fb8
+palette = 6=#7eb3c9
+palette = 7=#ddd8bb
+palette = 8=#49495e
+palette = 9=#ec818c
+palette = 10=#9ec967
+palette = 11=#f1c982
+palette = 12=#7bc2df
+palette = 13=#a98fd2
+palette = 14=#7bc2df
+palette = 15=#a8a48d
diff --git a/config/ghostty/colors/solarized_osaka_night b/config/ghostty/colors/solarized_osaka_night
new file mode 100644
index 0000000..851f8eb
--- /dev/null
+++ b/config/ghostty/colors/solarized_osaka_night
@@ -0,0 +1,21 @@
+# solarized_osaka_night color scheme (generated by theme-gen from config/alacritty/colors/solarized_osaka_night.toml)
+
+background = #001a1d
+foreground = #839496
+
+palette = 0=#073642
+palette = 1=#dc322f
+palette = 2=#859900
+palette = 3=#b58900
+palette = 4=#268bd2
+palette = 5=#d33682
+palette = 6=#2aa198
+palette = 7=#eee8d5
+palette = 8=#4c4c4c
+palette = 9=#cb4b16
+palette = 10=#586e75
+palette = 11=#657b83
+palette = 12=#839496
+palette = 13=#6c71c4
+palette = 14=#93a1a1
+palette = 15=#fdf6e3
diff --git a/config/ghostty/colors/sonokai b/config/ghostty/colors/sonokai
new file mode 100644
index 0000000..9cb18c6
--- /dev/null
+++ b/config/ghostty/colors/sonokai
@@ -0,0 +1,21 @@
+# sonokai color scheme (generated by theme-gen from /Users/sz/src/alacritty/alacritty-theme/themes/sonokai.toml)
+
+background = #2c2e34
+foreground = #e2e2e3
+
+palette = 0=#181819
+palette = 1=#fc5d7c
+palette = 2=#9ed072
+palette = 3=#e7c664
+palette = 4=#76cce0
+palette = 5=#b39df3
+palette = 6=#f39660
+palette = 7=#e2e2e3
+palette = 8=#7f8490
+palette = 9=#fc5d7c
+palette = 10=#9ed072
+palette = 11=#e7c664
+palette = 12=#76cce0
+palette = 13=#b39df3
+palette = 14=#f39660
+palette = 15=#e2e2e3