跳到正文

Nighty

Nighty 是一套深色终端配色(柔和),背景色 #2f2f2f,文字色 #dfdfdf,对比度 10.1:1

获取配置
背景色
#2f2f2f
前景色
#dfdfdf
文字对比度
10.05:1AAA
强调色对比度
3.70:1最低 1.26
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
❯

Nighty 的配置文件

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

Nighty

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

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

palette = 0=#373d48
palette = 1=#9b3e46
palette = 2=#095b32
palette = 3=#808020
palette = 4=#1d3e6f
palette = 5=#823065
palette = 6=#3a7458
palette = 7=#828282
palette = 8=#5c6370
palette = 9=#d0555f
palette = 10=#119955
palette = 11=#dfe048
palette = 12=#4674b8
palette = 13=#ed86c9
palette = 14=#70d2a4
palette = 15=#dfdfdf
background = #2f2f2f
foreground = #dfdfdf
cursor-color = #dfdfdf
cursor-text = #2f2f2f
selection-background = #565656
selection-foreground = #dfdfdf

Nighty 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#2f2f2frgb(47 47 47)hsl(0 0% 18%)oklch(30.5% 0.000 0)—
前景色foreground#dfdfdfrgb(223 223 223)hsl(0 0% 87%)oklch(90.4% 0.000 0)10.05 AAA
光标cursor#dfdfdfrgb(223 223 223)hsl(0 0% 87%)oklch(90.4% 0.000 0)10.05 AAA
光标文字cursorText#2f2f2frgb(47 47 47)hsl(0 0% 18%)oklch(30.5% 0.000 0)1.00 低于 AA
选区selection#565656rgb(86 86 86)hsl(0 0% 34%)oklch(45.3% 0.000 0)1.82 低于 AA
选区文字selectionText#dfdfdfrgb(223 223 223)hsl(0 0% 87%)oklch(90.4% 0.000 0)10.05 AAA
黑color0#373d48rgb(55 61 72)hsl(219 13% 25%)oklch(35.9% 0.021 262.6)1.23 低于 AA
红color1#9b3e46rgb(155 62 70)hsl(355 43% 43%)oklch(49.2% 0.124 17.7)2.02 低于 AA
绿color2#095b32rgb(9 91 50)hsl(150 82% 20%)oklch(41.5% 0.100 154.5)1.63 低于 AA
黄color3#808020rgb(128 128 32)hsl(60 60% 31%)oklch(58.2% 0.114 109.5)3.20 AA 大字号
蓝color4#1d3e6frgb(29 62 111)hsl(216 59% 27%)oklch(36.7% 0.093 258.3)1.26 低于 AA
品红color5#823065rgb(130 48 101)hsl(321 46% 35%)oklch(44.4% 0.129 344.0)1.63 低于 AA
青color6#3a7458rgb(58 116 88)hsl(151 33% 34%)oklch(51.1% 0.076 161.0)2.43 低于 AA
白color7#828282rgb(130 130 130)hsl(0 0% 51%)oklch(60.7% 0.000 0)3.48 AA 大字号
亮黑color8#5c6370rgb(92 99 112)hsl(219 10% 40%)oklch(49.8% 0.022 262.9)2.21 低于 AA
亮红color9#d0555frgb(208 85 95)hsl(355 57% 57%)oklch(61.1% 0.156 18.1)3.28 AA 大字号
亮绿color10#119955rgb(17 153 85)hsl(150 80% 33%)oklch(60.1% 0.148 153.8)3.64 AA 大字号
亮黄color11#dfe048rgb(223 224 72)hsl(60 71% 58%)oklch(87.9% 0.167 109.8)9.50 AAA
亮蓝color12#4674b8rgb(70 116 184)hsl(216 45% 50%)oklch(55.8% 0.118 258.0)2.84 低于 AA
亮品红color13#ed86c9rgb(237 134 201)hsl(321 74% 73%)oklch(75.1% 0.149 341.8)5.65 AA
亮青color14#70d2a4rgb(112 210 164)hsl(152 52% 63%)oklch(79.1% 0.115 161.8)7.30 AAA
亮白color15#dfdfdfrgb(223 223 223)hsl(0 0% 87%)oklch(90.4% 0.000 0)10.05 AAA

关于 Nighty

Nighty 采用中性色调的深色背景(#2f2f2f),默认前景色为 #dfdfdf。正文的 WCAG 对比度为 10.05:1(AAA),12 种 ANSI 彩色槽位平均对比度 3.70:1,最低 1.26:1。

色板整体色彩饱和度适中,其中红色为 #9b3e46、绿色为 #095b32、蓝色为 #1d3e6f、品红为 #823065。

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

与 Nighty 相似的配色

数据来源:Gogh (MIT OR Apache-2.0)