Skip to content

Commit 34542a4

Browse files
EdenEastethanholz
andauthored
feat(extra): add ghostty support (#398)
* feat(extra): added support for ghostty * chore(extra): generate extra files --------- Co-authored-by: Ethan Holz <[email protected]> Co-authored-by: ethanholz <[email protected]>
1 parent ccefc3e commit 34542a4

File tree

9 files changed

+269
-0
lines changed

9 files changed

+269
-0
lines changed

extra/carbonfox/carbonfox.ghostty

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Nightfox colors for Ghostty
2+
## name: carbonfox
3+
## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/carbonfox/carbonfox.ghostty
4+
5+
background = #161616
6+
foreground = #f2f4f8
7+
selection-background = #2a2a2a
8+
selection-foreground = #f2f4f8
9+
cursor-color = #f2f4f8
10+
11+
# normal
12+
palette = 0=#282828
13+
palette = 1=#ee5396
14+
palette = 2=#25be6a
15+
palette = 3=#08bdba
16+
palette = 4=#78a9ff
17+
palette = 5=#be95ff
18+
palette = 6=#33b1ff
19+
palette = 7=#dfdfe0
20+
21+
# bright
22+
palette = 8=#484848
23+
palette = 9=#f16da6
24+
palette = 10=#46c880
25+
palette = 11=#2dc7c4
26+
palette = 12=#8cb6ff
27+
palette = 13=#c8a5ff
28+
palette = 14=#52bdff
29+
palette = 15=#e4e4e5
30+
31+
# extended colors
32+
palette = 16=#3ddbd9

extra/dawnfox/dawnfox.ghostty

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Nightfox colors for Ghostty
2+
## name: dawnfox
3+
## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/dawnfox/dawnfox.ghostty
4+
5+
background = #faf4ed
6+
foreground = #575279
7+
selection-background = #d0d8d8
8+
selection-foreground = #575279
9+
cursor-color = #575279
10+
11+
# normal
12+
palette = 0=#575279
13+
palette = 1=#b4637a
14+
palette = 2=#618774
15+
palette = 3=#ea9d34
16+
palette = 4=#286983
17+
palette = 5=#907aa9
18+
palette = 6=#56949f
19+
palette = 7=#e5e9f0
20+
21+
# bright
22+
palette = 8=#5f5695
23+
palette = 9=#c26d85
24+
palette = 10=#629f81
25+
palette = 11=#eea846
26+
palette = 12=#2d81a3
27+
palette = 13=#9a80b9
28+
palette = 14=#5ca7b4
29+
palette = 15=#e6ebf3
30+
31+
# extended colors
32+
palette = 16=#d7827e

extra/dayfox/dayfox.ghostty

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Nightfox colors for Ghostty
2+
## name: dayfox
3+
## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/dayfox/dayfox.ghostty
4+
5+
background = #f6f2ee
6+
foreground = #3d2b5a
7+
selection-background = #e7d2be
8+
selection-foreground = #3d2b5a
9+
cursor-color = #3d2b5a
10+
11+
# normal
12+
palette = 0=#352c24
13+
palette = 1=#a5222f
14+
palette = 2=#396847
15+
palette = 3=#ac5402
16+
palette = 4=#2848a9
17+
palette = 5=#6e33ce
18+
palette = 6=#287980
19+
palette = 7=#f2e9e1
20+
21+
# bright
22+
palette = 8=#534c45
23+
palette = 9=#b3434e
24+
palette = 10=#577f63
25+
palette = 11=#b86e28
26+
palette = 12=#4863b6
27+
palette = 13=#8452d5
28+
palette = 14=#488d93
29+
palette = 15=#f4ece6
30+
31+
# extended colors
32+
palette = 16=#955f61

extra/duskfox/duskfox.ghostty

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Nightfox colors for Ghostty
2+
## name: duskfox
3+
## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/duskfox/duskfox.ghostty
4+
5+
background = #232136
6+
foreground = #e0def4
7+
selection-background = #433c59
8+
selection-foreground = #e0def4
9+
cursor-color = #e0def4
10+
11+
# normal
12+
palette = 0=#393552
13+
palette = 1=#eb6f92
14+
palette = 2=#a3be8c
15+
palette = 3=#f6c177
16+
palette = 4=#569fba
17+
palette = 5=#c4a7e7
18+
palette = 6=#9ccfd8
19+
palette = 7=#e0def4
20+
21+
# bright
22+
palette = 8=#47407d
23+
palette = 9=#f083a2
24+
palette = 10=#b1d196
25+
palette = 11=#f9cb8c
26+
palette = 12=#65b1cd
27+
palette = 13=#ccb1ed
28+
palette = 14=#a6dae3
29+
palette = 15=#e2e0f7
30+
31+
# extended colors
32+
palette = 16=#ea9a97

extra/nightfox/nightfox.ghostty

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Nightfox colors for Ghostty
2+
## name: nightfox
3+
## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/nightfox/nightfox.ghostty
4+
5+
background = #192330
6+
foreground = #cdcecf
7+
selection-background = #2b3b51
8+
selection-foreground = #cdcecf
9+
cursor-color = #cdcecf
10+
11+
# normal
12+
palette = 0=#393b44
13+
palette = 1=#c94f6d
14+
palette = 2=#81b29a
15+
palette = 3=#dbc074
16+
palette = 4=#719cd6
17+
palette = 5=#9d79d6
18+
palette = 6=#63cdcf
19+
palette = 7=#dfdfe0
20+
21+
# bright
22+
palette = 8=#575860
23+
palette = 9=#d16983
24+
palette = 10=#8ebaa4
25+
palette = 11=#e0c989
26+
palette = 12=#86abdc
27+
palette = 13=#baa1e2
28+
palette = 14=#7ad5d6
29+
palette = 15=#e4e4e5
30+
31+
# extended colors
32+
palette = 16=#f4a261

extra/nordfox/nordfox.ghostty

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Nightfox colors for Ghostty
2+
## name: nordfox
3+
## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/nordfox/nordfox.ghostty
4+
5+
background = #2e3440
6+
foreground = #cdcecf
7+
selection-background = #3e4a5b
8+
selection-foreground = #cdcecf
9+
cursor-color = #cdcecf
10+
11+
# normal
12+
palette = 0=#3b4252
13+
palette = 1=#bf616a
14+
palette = 2=#a3be8c
15+
palette = 3=#ebcb8b
16+
palette = 4=#81a1c1
17+
palette = 5=#b48ead
18+
palette = 6=#88c0d0
19+
palette = 7=#e5e9f0
20+
21+
# bright
22+
palette = 8=#465780
23+
palette = 9=#d06f79
24+
palette = 10=#b1d196
25+
palette = 11=#f0d399
26+
palette = 12=#8cafd2
27+
palette = 13=#c895bf
28+
palette = 14=#93ccdc
29+
palette = 15=#e7ecf4
30+
31+
# extended colors
32+
palette = 16=#c9826b

extra/terafox/terafox.ghostty

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Nightfox colors for Ghostty
2+
## name: terafox
3+
## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/terafox/terafox.ghostty
4+
5+
background = #152528
6+
foreground = #e6eaea
7+
selection-background = #293e40
8+
selection-foreground = #e6eaea
9+
cursor-color = #e6eaea
10+
11+
# normal
12+
palette = 0=#2f3239
13+
palette = 1=#e85c51
14+
palette = 2=#7aa4a1
15+
palette = 3=#fda47f
16+
palette = 4=#5a93aa
17+
palette = 5=#ad5c7c
18+
palette = 6=#a1cdd8
19+
palette = 7=#ebebeb
20+
21+
# bright
22+
palette = 8=#4e5157
23+
palette = 9=#eb746b
24+
palette = 10=#8eb2af
25+
palette = 11=#fdb292
26+
palette = 12=#73a3b7
27+
palette = 13=#b97490
28+
palette = 14=#afd4de
29+
palette = 15=#eeeeee
30+
31+
# extended colors
32+
palette = 16=#ff8349

lua/nightfox/extra/ghostty.lua

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
local template = require("nightfox.util.template")
2+
3+
local M = {}
4+
5+
function M.generate(spec, _)
6+
local content = [[
7+
# Nightfox colors for Ghostty
8+
## name: ${palette.meta.name}
9+
## upstream: ${palette.meta.url}
10+
11+
background = ${bg1}
12+
foreground = ${fg1}
13+
selection-background = ${sel0}
14+
selection-foreground = ${fg1}
15+
cursor-color = ${fg1}
16+
17+
# normal
18+
palette = 0=${palette.black}
19+
palette = 1=${palette.red}
20+
palette = 2=${palette.green}
21+
palette = 3=${palette.yellow}
22+
palette = 4=${palette.blue}
23+
palette = 5=${palette.magenta}
24+
palette = 6=${palette.cyan}
25+
palette = 7=${palette.white}
26+
27+
# bright
28+
palette = 8=${palette.black.bright}
29+
palette = 9=${palette.red.bright}
30+
palette = 10=${palette.green.bright}
31+
palette = 11=${palette.yellow.bright}
32+
palette = 12=${palette.blue.bright}
33+
palette = 13=${palette.magenta.bright}
34+
palette = 14=${palette.cyan.bright}
35+
palette = 15=${palette.white.bright}
36+
37+
# extended colors
38+
palette = 16=${palette.orange}
39+
]]
40+
41+
return template.parse_template_str(content, spec)
42+
end
43+
44+
return M

misc/extra.lua

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ local extras = {
2121
alacritty = "yml",
2222
base16 = "yaml",
2323
fish = { ext = "fish", use_spec_name = true },
24+
ghostty = { ext = "ghostty", use_spec_name = true },
2425
iterm = { ext = "itermcolors", use_spec_name = true },
2526
kitty = "conf",
2627
konsole = "colorscheme",

0 commit comments

Comments
 (0)