Skip to content

Commit

Permalink
feat(extras): Add Ghostty theme (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shraymonks authored Dec 27, 2024
1 parent e9b44b9 commit 3c25f33
Show file tree
Hide file tree
Showing 6 changed files with 123 additions and 1 deletion.
23 changes: 23 additions & 0 deletions extras/ghostty/onedarkpro_onedark
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Colors - https://github.com/olimorris/onedarkpro.nvim

palette = 0=#282c34
palette = 1=#e06c75
palette = 2=#98c379
palette = 3=#e5c07b
palette = 4=#61afef
palette = 5=#c678dd
palette = 6=#56b6c2
palette = 7=#abb2bf
palette = 8=#5c6370
palette = 9=#e9969d
palette = 10=#b3d39c
palette = 11=#edd4a6
palette = 12=#8fc6f4
palette = 13=#d7a1e7
palette = 14=#7bc6d0
palette = 15=#c8cdd5
background = #282c34
foreground = #abb2bf
cursor-color = #c678dd
selection-background = #c678dd
selection-foreground = #abb2bf
23 changes: 23 additions & 0 deletions extras/ghostty/onedarkpro_onedark_dark
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Colors - https://github.com/olimorris/onedarkpro.nvim

palette = 0=#000000
palette = 1=#ef596f
palette = 2=#89ca78
palette = 3=#e5c07b
palette = 4=#61afef
palette = 5=#d55fde
palette = 6=#2bbac5
palette = 7=#abb2bf
palette = 8=#434852
palette = 9=#f38897
palette = 10=#a9d89d
palette = 11=#edd4a6
palette = 12=#8fc6f4
palette = 13=#e089e7
palette = 14=#4bced8
palette = 15=#c8cdd5
background = #000000
foreground = #abb2bf
cursor-color = #d55fde
selection-background = #d55fde
selection-foreground = #abb2bf
23 changes: 23 additions & 0 deletions extras/ghostty/onedarkpro_onedark_vivid
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Colors - https://github.com/olimorris/onedarkpro.nvim

palette = 0=#282c34
palette = 1=#ef596f
palette = 2=#89ca78
palette = 3=#e5c07b
palette = 4=#61afef
palette = 5=#d55fde
palette = 6=#2bbac5
palette = 7=#abb2bf
palette = 8=#5c6370
palette = 9=#f38897
palette = 10=#a9d89d
palette = 11=#edd4a6
palette = 12=#8fc6f4
palette = 13=#e089e7
palette = 14=#4bced8
palette = 15=#c8cdd5
background = #282c34
foreground = #abb2bf
cursor-color = #d55fde
selection-background = #d55fde
selection-foreground = #abb2bf
23 changes: 23 additions & 0 deletions extras/ghostty/onedarkpro_onelight
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Colors - https://github.com/olimorris/onedarkpro.nvim

palette = 0=#6a6a6a
palette = 1=#e05661
palette = 2=#1da912
palette = 3=#eea825
palette = 4=#118dc3
palette = 5=#9a77cf
palette = 6=#56b6c2
palette = 7=#fafafa
palette = 8=#bebebe
palette = 9=#e88189
palette = 10=#25d717
palette = 11=#f2bb54
palette = 12=#1caceb
palette = 13=#b69ddc
palette = 14=#7bc6d0
palette = 15=#ffffff
background = #fafafa
foreground = #6a6a6a
cursor-color = #9a77cf
selection-background = #9a77cf
selection-foreground = #6a6a6a
29 changes: 29 additions & 0 deletions lua/onedarkpro/extra/ghostty.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
local M = {}

M.template = [[
# Colors - https://github.com/olimorris/onedarkpro.nvim
palette = 0=${black}
palette = 1=${red}
palette = 2=${green}
palette = 3=${yellow}
palette = 4=${blue}
palette = 5=${purple}
palette = 6=${cyan}
palette = 7=${white}
palette = 8=${gray}
palette = 9=${bright_red}
palette = 10=${bright_green}
palette = 11=${bright_yellow}
palette = 12=${bright_blue}
palette = 13=${bright_purple}
palette = 14=${bright_cyan}
palette = 15=${bright_white}
background = ${bg}
foreground = ${fg}
cursor-color = ${purple}
selection-background = ${purple}
selection-foreground = ${fg}
]]

return M
3 changes: 2 additions & 1 deletion lua/onedarkpro/extra/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ local M = {}
M.extras = {
alacritty = { ft = "toml", url = "https://github.com/alacritty/alacritty", label = "Alacritty" },
foot = { ft = "dosini", url = "https://codeberg.org/dnkl/foot", label = "Foot" },
ghostty = { ft = "", url = "https://github.com/ghostty-org/ghostty", label = "Ghostty" },
kitty = { ft = "conf", url = "https://github.com/kovidgoyal/kitty", label = "Kitty" },
lazygit = { ft = "yml", url = "https://github.com/jesseduffield/lazygit", label = "Lazygit" },
rio = { ft = "toml", url = "https://github.com/raphamorim/rio", label = "Rio" },
Expand Down Expand Up @@ -72,7 +73,7 @@ function M.setup(opts)
add_bright_colors(colors, theme)
add_dim_colors(colors, theme)
utils.write(
path .. extra .. "/onedarkpro_" .. theme .. "." .. M.extras[extra].ft,
path .. extra .. "/onedarkpro_" .. theme .. (M.extras[extra].ft ~= "" and ("." .. M.extras[extra].ft) or ""),
replace(extra_template, colors)
)
end
Expand Down

0 comments on commit 3c25f33

Please sign in to comment.