Skip to content

Commit

Permalink
feat(extra): add ghostty support (#398)
Browse files Browse the repository at this point in the history
* feat(extra): added support for ghostty

* chore(extra): generate extra files

---------

Co-authored-by: Ethan Holz <ethan.holz@thoriumworks.com>
Co-authored-by: ethanholz <ethanholz@users.noreply.github.com>
  • Loading branch information
3 people committed Jan 4, 2024
1 parent ccefc3e commit 34542a4
Show file tree
Hide file tree
Showing 9 changed files with 269 additions and 0 deletions.
32 changes: 32 additions & 0 deletions extra/carbonfox/carbonfox.ghostty
@@ -0,0 +1,32 @@
# Nightfox colors for Ghostty
## name: carbonfox
## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/carbonfox/carbonfox.ghostty

background = #161616
foreground = #f2f4f8
selection-background = #2a2a2a
selection-foreground = #f2f4f8
cursor-color = #f2f4f8

# normal
palette = 0=#282828
palette = 1=#ee5396
palette = 2=#25be6a
palette = 3=#08bdba
palette = 4=#78a9ff
palette = 5=#be95ff
palette = 6=#33b1ff
palette = 7=#dfdfe0

# bright
palette = 8=#484848
palette = 9=#f16da6
palette = 10=#46c880
palette = 11=#2dc7c4
palette = 12=#8cb6ff
palette = 13=#c8a5ff
palette = 14=#52bdff
palette = 15=#e4e4e5

# extended colors
palette = 16=#3ddbd9
32 changes: 32 additions & 0 deletions extra/dawnfox/dawnfox.ghostty
@@ -0,0 +1,32 @@
# Nightfox colors for Ghostty
## name: dawnfox
## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/dawnfox/dawnfox.ghostty

background = #faf4ed
foreground = #575279
selection-background = #d0d8d8
selection-foreground = #575279
cursor-color = #575279

# normal
palette = 0=#575279
palette = 1=#b4637a
palette = 2=#618774
palette = 3=#ea9d34
palette = 4=#286983
palette = 5=#907aa9
palette = 6=#56949f
palette = 7=#e5e9f0

# bright
palette = 8=#5f5695
palette = 9=#c26d85
palette = 10=#629f81
palette = 11=#eea846
palette = 12=#2d81a3
palette = 13=#9a80b9
palette = 14=#5ca7b4
palette = 15=#e6ebf3

# extended colors
palette = 16=#d7827e
32 changes: 32 additions & 0 deletions extra/dayfox/dayfox.ghostty
@@ -0,0 +1,32 @@
# Nightfox colors for Ghostty
## name: dayfox
## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/dayfox/dayfox.ghostty

background = #f6f2ee
foreground = #3d2b5a
selection-background = #e7d2be
selection-foreground = #3d2b5a
cursor-color = #3d2b5a

# normal
palette = 0=#352c24
palette = 1=#a5222f
palette = 2=#396847
palette = 3=#ac5402
palette = 4=#2848a9
palette = 5=#6e33ce
palette = 6=#287980
palette = 7=#f2e9e1

# bright
palette = 8=#534c45
palette = 9=#b3434e
palette = 10=#577f63
palette = 11=#b86e28
palette = 12=#4863b6
palette = 13=#8452d5
palette = 14=#488d93
palette = 15=#f4ece6

# extended colors
palette = 16=#955f61
32 changes: 32 additions & 0 deletions extra/duskfox/duskfox.ghostty
@@ -0,0 +1,32 @@
# Nightfox colors for Ghostty
## name: duskfox
## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/duskfox/duskfox.ghostty

background = #232136
foreground = #e0def4
selection-background = #433c59
selection-foreground = #e0def4
cursor-color = #e0def4

# normal
palette = 0=#393552
palette = 1=#eb6f92
palette = 2=#a3be8c
palette = 3=#f6c177
palette = 4=#569fba
palette = 5=#c4a7e7
palette = 6=#9ccfd8
palette = 7=#e0def4

# bright
palette = 8=#47407d
palette = 9=#f083a2
palette = 10=#b1d196
palette = 11=#f9cb8c
palette = 12=#65b1cd
palette = 13=#ccb1ed
palette = 14=#a6dae3
palette = 15=#e2e0f7

# extended colors
palette = 16=#ea9a97
32 changes: 32 additions & 0 deletions extra/nightfox/nightfox.ghostty
@@ -0,0 +1,32 @@
# Nightfox colors for Ghostty
## name: nightfox
## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/nightfox/nightfox.ghostty

background = #192330
foreground = #cdcecf
selection-background = #2b3b51
selection-foreground = #cdcecf
cursor-color = #cdcecf

# normal
palette = 0=#393b44
palette = 1=#c94f6d
palette = 2=#81b29a
palette = 3=#dbc074
palette = 4=#719cd6
palette = 5=#9d79d6
palette = 6=#63cdcf
palette = 7=#dfdfe0

# bright
palette = 8=#575860
palette = 9=#d16983
palette = 10=#8ebaa4
palette = 11=#e0c989
palette = 12=#86abdc
palette = 13=#baa1e2
palette = 14=#7ad5d6
palette = 15=#e4e4e5

# extended colors
palette = 16=#f4a261
32 changes: 32 additions & 0 deletions extra/nordfox/nordfox.ghostty
@@ -0,0 +1,32 @@
# Nightfox colors for Ghostty
## name: nordfox
## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/nordfox/nordfox.ghostty

background = #2e3440
foreground = #cdcecf
selection-background = #3e4a5b
selection-foreground = #cdcecf
cursor-color = #cdcecf

# normal
palette = 0=#3b4252
palette = 1=#bf616a
palette = 2=#a3be8c
palette = 3=#ebcb8b
palette = 4=#81a1c1
palette = 5=#b48ead
palette = 6=#88c0d0
palette = 7=#e5e9f0

# bright
palette = 8=#465780
palette = 9=#d06f79
palette = 10=#b1d196
palette = 11=#f0d399
palette = 12=#8cafd2
palette = 13=#c895bf
palette = 14=#93ccdc
palette = 15=#e7ecf4

# extended colors
palette = 16=#c9826b
32 changes: 32 additions & 0 deletions extra/terafox/terafox.ghostty
@@ -0,0 +1,32 @@
# Nightfox colors for Ghostty
## name: terafox
## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/terafox/terafox.ghostty

background = #152528
foreground = #e6eaea
selection-background = #293e40
selection-foreground = #e6eaea
cursor-color = #e6eaea

# normal
palette = 0=#2f3239
palette = 1=#e85c51
palette = 2=#7aa4a1
palette = 3=#fda47f
palette = 4=#5a93aa
palette = 5=#ad5c7c
palette = 6=#a1cdd8
palette = 7=#ebebeb

# bright
palette = 8=#4e5157
palette = 9=#eb746b
palette = 10=#8eb2af
palette = 11=#fdb292
palette = 12=#73a3b7
palette = 13=#b97490
palette = 14=#afd4de
palette = 15=#eeeeee

# extended colors
palette = 16=#ff8349
44 changes: 44 additions & 0 deletions lua/nightfox/extra/ghostty.lua
@@ -0,0 +1,44 @@
local template = require("nightfox.util.template")

local M = {}

function M.generate(spec, _)
local content = [[
# Nightfox colors for Ghostty
## name: ${palette.meta.name}
## upstream: ${palette.meta.url}
background = ${bg1}
foreground = ${fg1}
selection-background = ${sel0}
selection-foreground = ${fg1}
cursor-color = ${fg1}
# normal
palette = 0=${palette.black}
palette = 1=${palette.red}
palette = 2=${palette.green}
palette = 3=${palette.yellow}
palette = 4=${palette.blue}
palette = 5=${palette.magenta}
palette = 6=${palette.cyan}
palette = 7=${palette.white}
# bright
palette = 8=${palette.black.bright}
palette = 9=${palette.red.bright}
palette = 10=${palette.green.bright}
palette = 11=${palette.yellow.bright}
palette = 12=${palette.blue.bright}
palette = 13=${palette.magenta.bright}
palette = 14=${palette.cyan.bright}
palette = 15=${palette.white.bright}
# extended colors
palette = 16=${palette.orange}
]]

return template.parse_template_str(content, spec)
end

return M
1 change: 1 addition & 0 deletions misc/extra.lua
Expand Up @@ -21,6 +21,7 @@ local extras = {
alacritty = "yml",
base16 = "yaml",
fish = { ext = "fish", use_spec_name = true },
ghostty = { ext = "ghostty", use_spec_name = true },
iterm = { ext = "itermcolors", use_spec_name = true },
kitty = "conf",
konsole = "colorscheme",
Expand Down

0 comments on commit 34542a4

Please sign in to comment.