跳到正文

Decaf

Decaf 是一套深色终端配色(粉彩),背景色 #2d2d2d,文字色 #cccccc,对比度 8.6:1

获取配置
背景色
#2d2d2d
前景色
#cccccc
文字对比度
8.58:1AAA
强调色对比度
8.15:1最低 5.62
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
❯

Decaf 的配置文件

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

Decaf

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

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

palette = 0=#2d2d2d
palette = 1=#ff7f7b
palette = 2=#beda78
palette = 3=#ffd67c
palette = 4=#90bee1
palette = 5=#efb3f7
palette = 6=#bed6ff
palette = 7=#cccccc
palette = 8=#777777
palette = 9=#ff7f7b
palette = 10=#beda78
palette = 11=#ffd67c
palette = 12=#90bee1
palette = 13=#efb3f7
palette = 14=#bed6ff
palette = 15=#ffffff
background = #2d2d2d
foreground = #cccccc
cursor-color = #cccccc
cursor-text = #2d2d2d
selection-background = #515151
selection-foreground = #cccccc

Decaf 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#2d2d2drgb(45 45 45)hsl(0 0% 18%)oklch(29.7% 0.000 0)—
前景色foreground#ccccccrgb(204 204 204)hsl(0 0% 80%)oklch(84.5% 0.000 0)8.58 AAA
光标cursor#ccccccrgb(204 204 204)hsl(0 0% 80%)oklch(84.5% 0.000 0)8.58 AAA
光标文字cursorText#2d2d2drgb(45 45 45)hsl(0 0% 18%)oklch(29.7% 0.000 0)1.00 低于 AA
选区selection#515151rgb(81 81 81)hsl(0 0% 32%)oklch(43.5% 0.000 0)1.74 低于 AA
选区文字selectionText#ccccccrgb(204 204 204)hsl(0 0% 80%)oklch(84.5% 0.000 0)8.58 AAA
黑color0#2d2d2drgb(45 45 45)hsl(0 0% 18%)oklch(29.7% 0.000 0)1.00 低于 AA
红color1#ff7f7brgb(255 127 123)hsl(2 100% 74%)oklch(74.2% 0.157 23.4)5.62 AA
绿color2#beda78rgb(190 218 120)hsl(77 57% 66%)oklch(84.6% 0.128 122.2)8.85 AAA
黄color3#ffd67crgb(255 214 124)hsl(41 100% 74%)oklch(89.3% 0.118 85.5)9.94 AAA
蓝color4#90bee1rgb(144 190 225)hsl(206 57% 72%)oklch(78.1% 0.070 241.6)6.98 AA
品红color5#efb3f7rgb(239 179 247)hsl(293 81% 84%)oklch(84.4% 0.113 322.5)8.17 AAA
青color6#bed6ffrgb(190 214 255)hsl(218 100% 87%)oklch(87.2% 0.063 261.1)9.35 AAA
白color7#ccccccrgb(204 204 204)hsl(0 0% 80%)oklch(84.5% 0.000 0)8.58 AAA
亮黑color8#777777rgb(119 119 119)hsl(0 0% 47%)oklch(56.9% 0.000 0)3.08 AA 大字号
亮红color9#ff7f7brgb(255 127 123)hsl(2 100% 74%)oklch(74.2% 0.157 23.4)5.62 AA
亮绿color10#beda78rgb(190 218 120)hsl(77 57% 66%)oklch(84.6% 0.128 122.2)8.85 AAA
亮黄color11#ffd67crgb(255 214 124)hsl(41 100% 74%)oklch(89.3% 0.118 85.5)9.94 AAA
亮蓝color12#90bee1rgb(144 190 225)hsl(206 57% 72%)oklch(78.1% 0.070 241.6)6.98 AA
亮品红color13#efb3f7rgb(239 179 247)hsl(293 81% 84%)oklch(84.4% 0.113 322.5)8.17 AAA
亮青color14#bed6ffrgb(190 214 255)hsl(218 100% 87%)oklch(87.2% 0.063 261.1)9.35 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)13.77 AAA

关于 Decaf

Decaf 采用中性色调的深色背景(#2d2d2d),默认前景色为 #cccccc。正文的 WCAG 对比度为 8.58:1(AAA),12 种 ANSI 彩色槽位平均对比度 8.15:1,最低 5.62:1。

色板整体色彩饱和度适中,其中红色为 #ff7f7b、绿色为 #beda78、蓝色为 #90bee1、品红为 #efb3f7。

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

与 Decaf 相似的配色

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