summaryrefslogtreecommitdiff
path: root/config/alacritty
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/alacritty
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/alacritty')
-rw-r--r--config/alacritty/colors/dracula_plus_high_contrast.toml24
-rw-r--r--config/alacritty/colors/kanagawabones.toml24
-rw-r--r--config/alacritty/colors/solarized_osaka_night.toml30
3 files changed, 78 insertions, 0 deletions
diff --git a/config/alacritty/colors/dracula_plus_high_contrast.toml b/config/alacritty/colors/dracula_plus_high_contrast.toml
new file mode 100644
index 0000000..6eaa8ec
--- /dev/null
+++ b/config/alacritty/colors/dracula_plus_high_contrast.toml
@@ -0,0 +1,24 @@
+# dracula_plus_high_contrast (generated by theme-gen from /Applications/Ghostty.app/Contents/Resources/ghostty/themes/Dracula+ High Contrast)
+[colors.primary]
+background = "#14141a"
+foreground = "#f8f8f2"
+
+[colors.normal]
+black = "#9ba0b4"
+red = "#ff7676"
+green = "#50fa7b"
+yellow = "#ffcb6b"
+blue = "#82aaff"
+magenta = "#c792ea"
+cyan = "#8be9fd"
+white = "#f8f8f2"
+
+[colors.bright]
+black = "#9ba1b5"
+red = "#ff8a8a"
+green = "#69ff94"
+yellow = "#ffd98a"
+blue = "#d6acff"
+magenta = "#ff92df"
+cyan = "#a4ffff"
+white = "#ffffff"
diff --git a/config/alacritty/colors/kanagawabones.toml b/config/alacritty/colors/kanagawabones.toml
new file mode 100644
index 0000000..93e6eaa
--- /dev/null
+++ b/config/alacritty/colors/kanagawabones.toml
@@ -0,0 +1,24 @@
+# kanagawabones (generated by theme-gen from /Applications/Ghostty.app/Contents/Resources/ghostty/themes/Kanagawabones)
+[colors.primary]
+background = "#1f1f28"
+foreground = "#ddd8bb"
+
+[colors.normal]
+black = "#1f1f28"
+red = "#e46a78"
+green = "#98bc6d"
+yellow = "#e5c283"
+blue = "#7eb3c9"
+magenta = "#957fb8"
+cyan = "#7eb3c9"
+white = "#ddd8bb"
+
+[colors.bright]
+black = "#49495e"
+red = "#ec818c"
+green = "#9ec967"
+yellow = "#f1c982"
+blue = "#7bc2df"
+magenta = "#a98fd2"
+cyan = "#7bc2df"
+white = "#a8a48d"
diff --git a/config/alacritty/colors/solarized_osaka_night.toml b/config/alacritty/colors/solarized_osaka_night.toml
new file mode 100644
index 0000000..11a1fbc
--- /dev/null
+++ b/config/alacritty/colors/solarized_osaka_night.toml
@@ -0,0 +1,30 @@
+# Solarized Osaka Night (dark variant) -- copied from ~/src/alacritty/alacritty-theme/themes/solarized_osaka.toml
+# Colors (Solarized Osaka)
+# Source https://github.com/craftzdog/solarized-osaka.nvim
+
+# Default colors
+[colors.primary]
+background = '#001a1d'
+foreground = '#839496'
+
+# Normal colors
+[colors.normal]
+black = '#073642'
+red = '#dc322f'
+green = '#859900'
+yellow = '#b58900'
+blue = '#268bd2'
+magenta = '#d33682'
+cyan = '#2aa198'
+white = '#eee8d5'
+
+# Bright colors
+[colors.bright]
+black = '#4c4c4c'
+red = '#cb4b16'
+green = '#586e75'
+yellow = '#657b83'
+blue = '#839496'
+magenta = '#6c71c4'
+cyan = '#93a1a1'
+white = '#fdf6e3'