跳到主要內容

Nightfox

Nightfox 是一套深色終端機配色(冷色),背景色 #192330,文字色 #cdcecf,對比度 10.1:1

取得設定檔
背景色
#192330
前景色
#cdcecf
文字對比度
10.06:1AAA
強調色對比度
6.87:1最低 3.64
zsh — ls & git status
zsh — ls & git status
zsh — ls & git status
zsh — ls & git status
zsh — ls & git status — Konsole
~/dev/tintdex on main [!?] via ⬢ v1.4.3
❯ ls -la
drwxr-xr-x 12 ada staff 384 Oct 30 09:12 .
drwxr-xr-x 8 ada staff 256 Oct 29 18:40 ..
-rw-r--r-- 1 ada staff 1.2K Oct 30 09:10 .gitignore
drwxr-xr-x 5 ada staff 160 Oct 30 09:12 src
drwxr-xr-x 3 ada staff 96 Oct 28 11:02 public
-rwxr-xr-x 1 ada staff 2.4K Oct 30 08:57 build.sh
-rw-r--r-- 1 ada staff 4.1K Oct 30 09:01 package.json
lrwxr-xr-x 1 ada staff 18 Oct 27 14:33 node_modules -> ../cache/modules
-rw-r--r-- 1 ada staff 48K Oct 26 10:15 logo.png
-rw-r--r-- 1 ada staff 9.8M Oct 25 21:47 backup.tar.gz
~/dev/tintdex on main [!?] via ⬢ v1.4.3
❯ git status
On branch main
Your branch is ahead of 'origin/main' by 2 commits.
Changes to be committed:
new file: src/theme.css
modified: README.md
Changes not staged for commit:
modified: src/app.tsx
deleted: legacy/colors.js
Untracked files:
notes.md
~/dev/tintdex on main [!?] via ⬢ v1.4.3
❯

Nightfox 的設定檔

16 種格式,都從同一份色票產生

Nightfox

存到 ~/.config/ghostty/themes/Nightfox,再在 config 或 config.ghostty 裡寫 theme = Nightfox

更多 Ghostty 配色
原始檔
# Theme: Nightfox (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-tw/schemes/nightfox?format=ghostty

palette = 0=#393b44
palette = 1=#c94f6d
palette = 2=#81b29a
palette = 3=#dbc074
palette = 4=#719cd6
palette = 5=#9d79d6
palette = 6=#63cdcf
palette = 7=#dfdfe0
palette = 8=#575860
palette = 9=#d16983
palette = 10=#8ebaa4
palette = 11=#e0c989
palette = 12=#86abdc
palette = 13=#baa1e2
palette = 14=#7ad5d6
palette = 15=#e4e4e5
background = #192330
foreground = #cdcecf
cursor-color = #cdcecf
cursor-text = #192330
selection-background = #2b3b51
selection-foreground = #cdcecf

Nightfox 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#192330rgb(25 35 48)hsl(214 32% 14%)oklch(25.3% 0.029 255.2)—
前景色foreground#cdcecfrgb(205 206 207)hsl(210 2% 81%)oklch(85.1% 0.002 247.8)10.06 AAA
游標cursor#cdcecfrgb(205 206 207)hsl(210 2% 81%)oklch(85.1% 0.002 247.8)10.06 AAA
游標文字cursorText#192330rgb(25 35 48)hsl(214 32% 14%)oklch(25.3% 0.029 255.2)1.00 低於 AA
選取範圍selection#2b3b51rgb(43 59 81)hsl(215 31% 24%)oklch(34.8% 0.044 256.5)1.39 低於 AA
選取文字selectionText#cdcecfrgb(205 206 207)hsl(210 2% 81%)oklch(85.1% 0.002 247.8)10.06 AAA
黑color0#393b44rgb(57 59 68)hsl(229 9% 25%)oklch(35.4% 0.016 275.6)1.42 低於 AA
紅color1#c94f6drgb(201 79 109)hsl(345 53% 55%)oklch(59.6% 0.157 8.0)3.64 AA 大字級
綠color2#81b29argb(129 178 154)hsl(151 24% 60%)oklch(72.2% 0.063 163.1)6.62 AA
黃color3#dbc074rgb(219 192 116)hsl(44 59% 66%)oklch(81.4% 0.100 90.5)8.91 AAA
藍color4#719cd6rgb(113 156 214)hsl(214 55% 64%)oklch(68.5% 0.098 256.1)5.61 AA
洋紅color5#9d79d6rgb(157 121 214)hsl(263 53% 66%)oklch(64.9% 0.139 300.4)4.64 AA
青color6#63cdcfrgb(99 205 207)hsl(181 53% 60%)oklch(78.7% 0.098 197.0)8.43 AAA
白color7#dfdfe0rgb(223 223 224)hsl(240 2% 88%)oklch(90.4% 0.001 286.4)11.91 AAA
亮黑color8#575860rgb(87 88 96)hsl(233 5% 36%)oklch(46.2% 0.013 280.2)2.24 低於 AA
亮紅color9#d16983rgb(209 105 131)hsl(345 53% 62%)oklch(65.0% 0.133 5.7)4.58 AA
亮綠color10#8ebaa4rgb(142 186 164)hsl(150 24% 64%)oklch(75.1% 0.057 163.0)7.33 AAA
亮黃color11#e0c989rgb(224 201 137)hsl(44 58% 71%)oklch(84.1% 0.086 90.5)9.73 AAA
亮藍color12#86abdcrgb(134 171 220)hsl(214 55% 69%)oklch(73.2% 0.082 255.6)6.70 AA
亮洋紅color13#baa1e2rgb(186 161 226)hsl(263 53% 76%)oklch(75.4% 0.095 301.8)7.01 AAA
亮青color14#7ad5d6rgb(122 213 214)hsl(181 53% 66%)oklch(81.7% 0.087 196.5)9.30 AAA
亮白color15#e4e4e5rgb(228 228 229)hsl(240 2% 90%)oklch(91.9% 0.001 286.4)12.48 AAA

關於 Nightfox

Nightfox 採用冷色調的深色背景(#192330),預設前景色為 #cdcecf。內文的 WCAG 對比度為 10.06:1(AAA),12 種 ANSI 彩色槽位平均對比度 6.87:1,最低 3.64:1。

色票整體色彩彩度適中,其中紅色為 #c94f6d、綠色為 #81b29a、藍色為 #719cd6、洋紅為 #9d79d6。此配色歸屬 Nightfox 主題系列。

支援一鍵匯出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 終端機設定檔,同時提供 VS Code 與 Zed 整合式終端機、CSS 變數、Tailwind CSS 及 JSON 色票格式。

與 Nightfox 相似的配色

資料來源:iTerm2 Color Schemes (MIT)