跳到主要內容

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/zh-hk/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)