跳到正文

Cai

Cai 是一套深色终端配色(冷色),背景色 #09111a,文字色 #d9e6f2,对比度 15.0:1

获取配置
背景色
#09111a
前景色
#d9e6f2
文字对比度
14.96:1AAA
强调色对比度
8.21:1最低 2.71
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
❯

Cai 的配置文件

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

Cai

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

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

palette = 0=#000000
palette = 1=#ca274d
palette = 2=#4dca27
palette = 3=#caa427
palette = 4=#274dca
palette = 5=#a427ca
palette = 6=#27caa4
palette = 7=#808080
palette = 8=#808080
palette = 9=#e98da3
palette = 10=#a3e98d
palette = 11=#e9d48d
palette = 12=#8da3e9
palette = 13=#d48de9
palette = 14=#8de9d4
palette = 15=#ffffff
background = #09111a
foreground = #d9e6f2
cursor-color = #d9e6f2
cursor-text = #09111a
selection-background = #353e49
selection-foreground = #d9e6f2

Cai 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#09111argb(9 17 26)hsl(212 49% 7%)oklch(17.4% 0.022 251.9)—
前景色foreground#d9e6f2rgb(217 230 242)hsl(209 49% 90%)oklch(91.9% 0.022 245.9)14.96 AAA
光标cursor#d9e6f2rgb(217 230 242)hsl(209 49% 90%)oklch(91.9% 0.022 245.9)14.96 AAA
光标文字cursorText#09111argb(9 17 26)hsl(212 49% 7%)oklch(17.4% 0.022 251.9)1.00 低于 AA
选区selection#353e49rgb(53 62 73)hsl(213 16% 25%)oklch(36.0% 0.023 253.6)1.75 低于 AA
选区文字selectionText#d9e6f2rgb(217 230 242)hsl(209 49% 90%)oklch(91.9% 0.022 245.9)14.96 AAA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.11 低于 AA
红color1#ca274drgb(202 39 77)hsl(346 68% 47%)oklch(55.1% 0.196 14.3)3.53 AA 大字号
绿color2#4dca27rgb(77 202 39)hsl(106 68% 47%)oklch(74.0% 0.222 139.9)8.85 AAA
黄color3#caa427rgb(202 164 39)hsl(46 68% 47%)oklch(73.3% 0.139 90.5)8.00 AAA
蓝color4#274dcargb(39 77 202)hsl(226 68% 47%)oklch(47.7% 0.198 265.9)2.71 低于 AA
品红color5#a427cargb(164 39 202)hsl(286 68% 47%)oklch(54.6% 0.239 316.5)3.36 AA 大字号
青color6#27caa4rgb(39 202 164)hsl(166 68% 47%)oklch(75.1% 0.138 171.9)9.10 AAA
白color7#808080rgb(128 128 128)hsl(0 0% 50%)oklch(60.0% 0.000 0)4.80 AA
亮黑color8#808080rgb(128 128 128)hsl(0 0% 50%)oklch(60.0% 0.000 0)4.80 AA
亮红color9#e98da3rgb(233 141 163)hsl(346 68% 73%)oklch(74.5% 0.114 4.8)7.95 AAA
亮绿color10#a3e98drgb(163 233 141)hsl(106 68% 73%)oklch(86.6% 0.141 138.5)13.19 AAA
亮黄color11#e9d48drgb(233 212 141)hsl(46 68% 73%)oklch(87.1% 0.093 93.5)12.89 AAA
亮蓝color12#8da3e9rgb(141 163 233)hsl(226 68% 73%)oklch(72.6% 0.105 270.3)7.72 AAA
亮品红color13#d48de9rgb(212 141 233)hsl(286 68% 73%)oklch(74.7% 0.148 318.3)7.94 AAA
亮青color14#8de9d4rgb(141 233 212)hsl(166 68% 73%)oklch(87.1% 0.094 177.7)13.32 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.98 AAA

关于 Cai

Cai 采用冷色调的深色背景(#09111a),默认前景色为 #d9e6f2。正文的 WCAG 对比度为 14.96:1(AAA),12 种 ANSI 彩色槽位平均对比度 8.21:1,最低 2.71:1。

色板整体色彩饱和度适中,其中红色为 #ca274d、绿色为 #4dca27、蓝色为 #274dca、品红为 #a427ca。

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

与 Cai 相似的配色

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