跳到正文

Cool Night

Cool Night 是一套深色终端配色(高对比度、鲜艳),背景色 #010c18,文字色 #ecdef4,对比度 15.3:1

获取配置
背景色
#010c18
前景色
#ecdef4
文字对比度
15.30:1AAA
强调色对比度
9.96:1最低 4.67
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
❯

Cool Night 的配置文件

16 种格式,都从同一份色板生成

Cool Night

存到 ~/.config/ghostty/themes/Cool Night,再在 config 或 config.ghostty 里写 theme = Cool Night

更多 Ghostty 配色
原始文件
# Theme: Cool Night (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/schemes/cool-night?format=ghostty

palette = 0=#0b3b61
palette = 1=#ff3a3a
palette = 2=#52ffd0
palette = 3=#fff383
palette = 4=#1376f9
palette = 5=#c792ea
palette = 6=#ff5ed4
palette = 7=#16fda2
palette = 8=#63686d
palette = 9=#ff54b0
palette = 10=#74ffd8
palette = 11=#fcf5ae
palette = 12=#388eff
palette = 13=#ae81ff
palette = 14=#ff6ad7
palette = 15=#60fbbf
background = #010c18
foreground = #ecdef4
cursor-color = #38ff9d
cursor-text = #000000
selection-background = #38ff9c
selection-foreground = #000000

Cool Night 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#010c18rgb(1 12 24)hsl(211 92% 5%)oklch(14.9% 0.034 245.1)—
前景色foreground#ecdef4rgb(236 222 244)hsl(278 50% 91%)oklch(91.8% 0.033 313.5)15.30 AAA
光标cursor#38ff9drgb(56 255 157)hsl(150 100% 61%)oklch(88.4% 0.203 155.6)14.96 AAA
光标文字cursorText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.07 低于 AA
选区selection#38ff9crgb(56 255 156)hsl(150 100% 61%)oklch(88.4% 0.204 155.4)14.95 AAA
选区文字selectionText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.07 低于 AA
黑color0#0b3b61rgb(11 59 97)hsl(207 80% 21%)oklch(34.3% 0.083 247.8)1.70 低于 AA
红color1#ff3a3argb(255 58 58)hsl(0 100% 61%)oklch(65.4% 0.232 26.5)5.55 AA
绿color2#52ffd0rgb(82 255 208)hsl(164 100% 66%)oklch(90.1% 0.155 170.8)15.53 AAA
黄color3#fff383rgb(255 243 131)hsl(54 100% 76%)oklch(95.1% 0.134 103.2)17.24 AAA
蓝color4#1376f9rgb(19 118 249)hsl(214 95% 53%)oklch(59.2% 0.213 258.5)4.67 AA
品红color5#c792eargb(199 146 234)hsl(276 68% 75%)oklch(74.3% 0.135 311.1)8.18 AAA
青color6#ff5ed4rgb(255 94 212)hsl(316 100% 68%)oklch(72.8% 0.230 339.8)7.31 AAA
白color7#16fda2rgb(22 253 162)hsl(156 98% 54%)oklch(87.7% 0.202 158.1)14.63 AAA
亮黑color8#63686drgb(99 104 109)hsl(210 5% 41%)oklch(51.5% 0.010 248.0)3.50 AA 大字号
亮红color9#ff54b0rgb(255 84 176)hsl(328 100% 66%)oklch(70.4% 0.223 351.2)6.70 AA
亮绿color10#74ffd8rgb(116 255 216)hsl(163 100% 73%)oklch(91.2% 0.134 172.1)15.97 AAA
亮黄color11#fcf5aergb(252 245 174)hsl(55 93% 84%)oklch(95.9% 0.090 103.2)17.63 AAA
亮蓝color12#388effrgb(56 142 255)hsl(214 100% 61%)oklch(65.3% 0.187 256.8)6.07 AA
亮品红color13#ae81ffrgb(174 129 255)hsl(261 100% 75%)oklch(70.1% 0.181 298.1)6.92 AA
亮青color14#ff6ad7rgb(255 106 215)hsl(316 100% 71%)oklch(74.3% 0.216 339.4)7.77 AAA
亮白color15#60fbbfrgb(96 251 191)hsl(157 95% 68%)oklch(89.0% 0.157 164.1)15.04 AAA

关于 Cool Night

Cool Night 采用冷色调的深色背景(#010c18),默认前景色为 #ecdef4。正文的 WCAG 对比度为 15.30:1(AAA),12 种 ANSI 彩色槽位平均对比度 9.96:1,最低 4.67:1。

色板整体色彩饱和度较高,其中红色为 #ff3a3a、绿色为 #52ffd0、蓝色为 #1376f9、品红为 #c792ea。

支持一键导出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 终端配置文件,同时提供 VS Code 与 Zed 集成终端、CSS 变量、Tailwind CSS 及 JSON 色板格式。

与 Cool Night 相似的配色

数据来源:iTerm2 Color Schemes (MIT)