跳到主要內容

Cacao

Cacao 是一套深色終端機配色(暖色),背景色 #160f0c,文字色 #e8d6c4,對比度 13.4:1

取得設定檔
背景色
#160f0c
前景色
#e8d6c4
文字對比度
13.40:1AAA
強調色對比度
8.20:1最低 6.00
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
❯

Cacao 的設定檔

16 種格式,都從同一份色板產生

Cacao

存到 ~/.config/ghostty/themes/Cacao,再在 config 或 config.ghostty 裏寫 theme = Cacao

更多 Ghostty 配色
原始檔案
# Theme: Cacao (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-hk/schemes/cacao?format=ghostty

palette = 0=#160f0c
palette = 1=#e0705c
palette = 2=#9ac97a
palette = 3=#e8a84a
palette = 4=#a89ad0
palette = 5=#ce8ab0
palette = 6=#74c8b0
palette = 7=#e8d6c4
palette = 8=#766052
palette = 9=#e0705c
palette = 10=#9ac97a
palette = 11=#e8a84a
palette = 12=#a89ad0
palette = 13=#ce8ab0
palette = 14=#74c8b0
palette = 15=#f4e6d6
background = #160f0c
foreground = #e8d6c4
cursor-color = #e8d6c4
cursor-text = #160f0c
selection-background = #433933
selection-foreground = #e8d6c4

Cacao 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#160f0crgb(22 15 12)hsl(18 29% 7%)oklch(17.6% 0.013 44.4)—
前景色foreground#e8d6c4rgb(232 214 196)hsl(30 44% 84%)oklch(88.6% 0.031 67.4)13.40 AAA
光標cursor#e8d6c4rgb(232 214 196)hsl(30 44% 84%)oklch(88.6% 0.031 67.4)13.40 AAA
光標文字cursorText#160f0crgb(22 15 12)hsl(18 29% 7%)oklch(17.6% 0.013 44.4)1.00 低於 AA
選取範圍selection#433933rgb(67 57 51)hsl(23 14% 23%)oklch(35.3% 0.017 52.9)1.69 低於 AA
選取文字selectionText#e8d6c4rgb(232 214 196)hsl(30 44% 84%)oklch(88.6% 0.031 67.4)13.40 AAA
黑color0#160f0crgb(22 15 12)hsl(18 29% 7%)oklch(17.6% 0.013 44.4)1.00 低於 AA
紅color1#e0705crgb(224 112 92)hsl(9 68% 62%)oklch(67.2% 0.144 31.6)6.00 AA
綠color2#9ac97argb(154 201 122)hsl(96 42% 63%)oklch(78.4% 0.117 133.5)9.94 AAA
黃color3#e8a84argb(232 168 74)hsl(36 77% 60%)oklch(77.5% 0.132 73.8)9.15 AAA
藍color4#a89ad0rgb(168 154 208)hsl(256 36% 71%)oklch(71.8% 0.079 296.3)7.40 AAA
洋紅color5#ce8ab0rgb(206 138 176)hsl(326 41% 67%)oklch(71.3% 0.096 345.2)7.12 AAA
青color6#74c8b0rgb(116 200 176)hsl(163 43% 62%)oklch(77.2% 0.090 173.5)9.60 AAA
白color7#e8d6c4rgb(232 214 196)hsl(30 44% 84%)oklch(88.6% 0.031 67.4)13.40 AAA
亮黑color8#766052rgb(118 96 82)hsl(23 18% 39%)oklch(50.7% 0.036 54.2)3.22 AA 大字體
亮紅color9#e0705crgb(224 112 92)hsl(9 68% 62%)oklch(67.2% 0.144 31.6)6.00 AA
亮綠color10#9ac97argb(154 201 122)hsl(96 42% 63%)oklch(78.4% 0.117 133.5)9.94 AAA
亮黃color11#e8a84argb(232 168 74)hsl(36 77% 60%)oklch(77.5% 0.132 73.8)9.15 AAA
亮藍color12#a89ad0rgb(168 154 208)hsl(256 36% 71%)oklch(71.8% 0.079 296.3)7.40 AAA
亮洋紅color13#ce8ab0rgb(206 138 176)hsl(326 41% 67%)oklch(71.3% 0.096 345.2)7.12 AAA
亮青color14#74c8b0rgb(116 200 176)hsl(163 43% 62%)oklch(77.2% 0.090 173.5)9.60 AAA
亮白color15#f4e6d6rgb(244 230 214)hsl(32 58% 90%)oklch(93.2% 0.026 71.2)15.47 AAA

關於 Cacao

Cacao 採用暖色調的深色背景(#160f0c),預設前景色為 #e8d6c4。正文的 WCAG 對比度為 13.40:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.20:1,最低 6.00:1。

色板整體色彩飽和度適中,其中紅色為 #e0705c、綠色為 #9ac97a、藍色為 #a89ad0、洋紅為 #ce8ab0。

支援一鍵匯出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 終端機設定檔,同時提供 VS Code 與 Zed 整合終端機、CSS 變數、Tailwind CSS 及 JSON 色板格式。

與 Cacao 相似的配色

資料來源:Gogh (MIT OR Apache-2.0)