跳到正文

Nebula Drift

Nebula Drift 是一套深色终端配色(高对比度、冷色),背景色 #0a0420,文字色 #e2e0fa,对比度 15.5:1

获取配置
背景色
#0a0420
前景色
#e2e0fa
文字对比度
15.48:1AAA
强调色对比度
9.92:1最低 6.82
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
❯

Nebula Drift 的配置文件

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

Nebula Drift

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

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

palette = 0=#1a0e38
palette = 1=#ff5c8d
palette = 2=#66e6a8
palette = 3=#ffcb6b
palette = 4=#7c9bff
palette = 5=#c77dff
palette = 6=#57e6f0
palette = 7=#c8c6e8
palette = 8=#5c5a88
palette = 9=#ff5c8d
palette = 10=#66e6a8
palette = 11=#ff9e64
palette = 12=#7c9bff
palette = 13=#c77dff
palette = 14=#57e6f0
palette = 15=#e2e0fa
background = #0a0420
foreground = #e2e0fa
cursor-color = #d58bff
cursor-text = #0a0420
selection-background = #221645
selection-foreground = #4a4460

Nebula Drift 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#0a0420rgb(10 4 32)hsl(253 78% 7%)oklch(14.3% 0.059 288.5)—
前景色foreground#e2e0fargb(226 224 250)hsl(245 72% 93%)oklch(91.6% 0.035 289.2)15.48 AAA
光标cursor#d58bffrgb(213 139 255)hsl(278 100% 77%)oklch(75.6% 0.176 312.2)8.53 AAA
光标文字cursorText#0a0420rgb(10 4 32)hsl(253 78% 7%)oklch(14.3% 0.059 288.5)1.00 低于 AA
选区selection#221645rgb(34 22 69)hsl(255 52% 18%)oklch(24.6% 0.084 290.6)1.21 低于 AA
选区文字selectionText#4a4460rgb(74 68 96)hsl(253 17% 32%)oklch(40.4% 0.047 294.0)2.18 低于 AA
黑color0#1a0e38rgb(26 14 56)hsl(257 60% 14%)oklch(21.0% 0.077 291.4)1.11 低于 AA
红color1#ff5c8drgb(255 92 141)hsl(342 100% 68%)oklch(70.2% 0.201 5.5)6.82 AA
绿color2#66e6a8rgb(102 230 168)hsl(151 72% 65%)oklch(83.6% 0.145 159.7)12.79 AAA
黄color3#ffcb6brgb(255 203 107)hsl(39 100% 71%)oklch(86.9% 0.128 81.1)13.33 AAA
蓝color4#7c9bffrgb(124 155 255)hsl(226 100% 74%)oklch(71.0% 0.150 269.3)7.60 AAA
品红color5#c77dffrgb(199 125 255)hsl(274 100% 75%)oklch(72.0% 0.193 308.6)7.43 AAA
青color6#57e6f0rgb(87 230 240)hsl(184 84% 64%)oklch(85.3% 0.121 201.7)13.30 AAA
白color7#c8c6e8rgb(200 198 232)hsl(244 42% 84%)oklch(83.9% 0.047 288.0)12.08 AAA
亮黑color8#5c5a88rgb(92 90 136)hsl(243 20% 44%)oklch(48.9% 0.073 285.3)3.11 AA 大字号
亮红color9#ff5c8drgb(255 92 141)hsl(342 100% 68%)oklch(70.2% 0.201 5.5)6.82 AA
亮绿color10#66e6a8rgb(102 230 168)hsl(151 72% 65%)oklch(83.6% 0.145 159.7)12.79 AAA
亮黄color11#ff9e64rgb(255 158 100)hsl(22 100% 70%)oklch(78.7% 0.137 50.6)9.82 AAA
亮蓝color12#7c9bffrgb(124 155 255)hsl(226 100% 74%)oklch(71.0% 0.150 269.3)7.60 AAA
亮品红color13#c77dffrgb(199 125 255)hsl(274 100% 75%)oklch(72.0% 0.193 308.6)7.43 AAA
亮青color14#57e6f0rgb(87 230 240)hsl(184 84% 64%)oklch(85.3% 0.121 201.7)13.30 AAA
亮白color15#e2e0fargb(226 224 250)hsl(245 72% 93%)oklch(91.6% 0.035 289.2)15.48 AAA

关于 Nebula Drift

Nebula Drift 采用冷色调的深色背景(#0a0420),默认前景色为 #e2e0fa。正文的 WCAG 对比度为 15.48:1(AAA),12 种 ANSI 彩色槽位平均对比度 9.92:1,最低 6.82:1。

色板整体色彩饱和度适中,其中红色为 #ff5c8d、绿色为 #66e6a8、蓝色为 #7c9bff、品红为 #c77dff。

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

与 Nebula Drift 相似的配色

数据来源:iTerm2 Color Schemes (MIT)