跳到正文

Code 2026 Dark

Code 2026 Dark 是一套深色终端配色,背景色 #121314,文字色 #bbbebf,对比度 9.9:1

获取配置
背景色
#121314
前景色
#bbbebf
文字对比度
9.95:1AAA
强调色对比度
9.57:1最低 5.29
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
❯

Code 2026 Dark 的配置文件

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

Code 2026 Dark

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

更多 Ghostty 配色
原始文件
# Theme: Code 2026 Dark (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/schemes/code-2026-dark?format=ghostty

palette = 0=#202122
palette = 1=#ff7b72
palette = 2=#7ee787
palette = 3=#cd9731
palette = 4=#79c0ff
palette = 5=#d2a8ff
palette = 6=#4ec9b0
palette = 7=#bbbebf
palette = 8=#555555
palette = 9=#ffa198
palette = 10=#91eb99
palette = 11=#ffa657
palette = 12=#a5d6ff
palette = 13=#b267e6
palette = 14=#71d4c0
palette = 15=#ffffff
background = #121314
foreground = #bbbebf
cursor-color = #bbbebf
cursor-text = #121314
selection-background = #276782
selection-foreground = #ffffff

Code 2026 Dark 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#121314rgb(18 19 20)hsl(210 5% 7%)oklch(18.6% 0.003 248.0)—
前景色foreground#bbbebfrgb(187 190 191)hsl(195 3% 74%)oklch(79.9% 0.004 219.5)9.95 AAA
光标cursor#bbbebfrgb(187 190 191)hsl(195 3% 74%)oklch(79.9% 0.004 219.5)9.95 AAA
光标文字cursorText#121314rgb(18 19 20)hsl(210 5% 7%)oklch(18.6% 0.003 248.0)1.00 低于 AA
选区selection#276782rgb(39 103 130)hsl(198 54% 33%)oklch(48.5% 0.077 229.4)2.97 低于 AA
选区文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.60 AAA
黑color0#202122rgb(32 33 34)hsl(210 3% 13%)oklch(24.7% 0.002 247.9)1.15 低于 AA
红color1#ff7b72rgb(255 123 114)hsl(4 100% 72%)oklch(73.4% 0.163 25.8)7.38 AAA
绿color2#7ee787rgb(126 231 135)hsl(125 69% 70%)oklch(84.2% 0.164 145.8)12.11 AAA
黄color3#cd9731rgb(205 151 49)hsl(39 61% 50%)oklch(71.1% 0.130 79.1)7.15 AAA
蓝color4#79c0ffrgb(121 192 255)hsl(208 100% 74%)oklch(78.6% 0.115 246.7)9.56 AAA
品红color5#d2a8ffrgb(210 168 255)hsl(269 100% 83%)oklch(80.1% 0.127 305.9)9.55 AAA
青color6#4ec9b0rgb(78 201 176)hsl(168 53% 55%)oklch(76.0% 0.115 177.2)9.13 AAA
白color7#bbbebfrgb(187 190 191)hsl(195 3% 74%)oklch(79.9% 0.004 219.5)9.95 AAA
亮黑color8#555555rgb(85 85 85)hsl(0 0% 33%)oklch(45.0% 0.000 0)2.50 低于 AA
亮红color9#ffa198rgb(255 161 152)hsl(5 100% 80%)oklch(80.1% 0.113 25.8)9.57 AAA
亮绿color10#91eb99rgb(145 235 153)hsl(125 69% 75%)oklch(86.3% 0.142 146.3)12.89 AAA
亮黄color11#ffa657rgb(255 166 87)hsl(28 100% 67%)oklch(79.9% 0.141 60.1)9.61 AAA
亮蓝color12#a5d6ffrgb(165 214 255)hsl(207 100% 82%)oklch(85.6% 0.077 244.1)12.10 AAA
亮品红color13#b267e6rgb(178 103 230)hsl(275 72% 65%)oklch(65.1% 0.192 309.3)5.29 AA
亮青color14#71d4c0rgb(113 212 192)hsl(168 54% 64%)oklch(80.4% 0.098 178.9)10.52 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.60 AAA

关于 Code 2026 Dark

Code 2026 Dark 采用中性色调的深色背景(#121314),默认前景色为 #bbbebf。正文的 WCAG 对比度为 9.95:1(AAA),12 种 ANSI 彩色槽位平均对比度 9.57:1,最低 5.29:1。

色板整体色彩饱和度适中,其中红色为 #ff7b72、绿色为 #7ee787、蓝色为 #79c0ff、品红为 #d2a8ff。

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

与 Code 2026 Dark 相似的配色

数据来源:iTerm2 Color Schemes (MIT)