跳到正文

Chalk

Chalk 是一套深色终端配色,背景色 #2b2d2e,文字色 #d2d8d9,对比度 9.6:1

获取配置
背景色
#2b2d2e
前景色
#d2d8d9
文字对比度
9.60:1AAA
强调色对比度
5.13:1最低 2.39
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
❯

Chalk 的配置文件

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

Chalk

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

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

palette = 0=#7d8b8f
palette = 1=#b23a52
palette = 2=#789b6a
palette = 3=#b9ac4a
palette = 4=#2a7fac
palette = 5=#bd4f5a
palette = 6=#44a799
palette = 7=#d2d8d9
palette = 8=#888888
palette = 9=#f24840
palette = 10=#80c470
palette = 11=#ffeb62
palette = 12=#4196ff
palette = 13=#fc5275
palette = 14=#53cdbd
palette = 15=#d2d8d9
background = #2b2d2e
foreground = #d2d8d9
cursor-color = #708284
cursor-text = #002831
selection-background = #e4e8ed
selection-foreground = #3f4041

Chalk 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#2b2d2ergb(43 45 46)hsl(200 3% 17%)oklch(29.6% 0.003 228.9)—
前景色foreground#d2d8d9rgb(210 216 217)hsl(189 8% 84%)oklch(87.8% 0.007 208.8)9.60 AAA
光标cursor#708284rgb(112 130 132)hsl(186 8% 48%)oklch(59.3% 0.021 204.8)3.44 AA 大字号
光标文字cursorText#002831rgb(0 40 49)hsl(191 100% 10%)oklch(25.5% 0.046 216.8)1.13 低于 AA
选区selection#e4e8edrgb(228 232 237)hsl(213 20% 91%)oklch(92.9% 0.008 253.9)11.24 AAA
选区文字selectionText#3f4041rgb(63 64 65)hsl(210 2% 25%)oklch(37.1% 0.002 247.9)1.33 低于 AA
黑color0#7d8b8frgb(125 139 143)hsl(193 7% 53%)oklch(62.7% 0.017 216.8)3.93 AA 大字号
红color1#b23a52rgb(178 58 82)hsl(348 51% 46%)oklch(52.8% 0.155 12.4)2.39 低于 AA
绿color2#789b6argb(120 155 106)hsl(103 20% 51%)oklch(65.0% 0.081 137.0)4.41 AA 大字号
黄color3#b9ac4argb(185 172 74)hsl(53 44% 51%)oklch(73.6% 0.120 101.8)5.97 AA
蓝color4#2a7facrgb(42 127 172)hsl(201 61% 42%)oklch(56.7% 0.105 236.4)3.12 AA 大字号
品红color5#bd4f5argb(189 79 90)hsl(354 45% 53%)oklch(57.3% 0.142 16.7)2.92 低于 AA
青color6#44a799rgb(68 167 153)hsl(172 42% 46%)oklch(66.6% 0.095 182.6)4.77 AA
白color7#d2d8d9rgb(210 216 217)hsl(189 8% 84%)oklch(87.8% 0.007 208.8)9.60 AAA
亮黑color8#888888rgb(136 136 136)hsl(0 0% 53%)oklch(62.7% 0.000 0)3.90 AA 大字号
亮红color9#f24840rgb(242 72 64)hsl(3 87% 60%)oklch(64.5% 0.208 27.4)3.81 AA 大字号
亮绿color10#80c470rgb(128 196 112)hsl(109 42% 60%)oklch(75.5% 0.135 139.8)6.62 AA
亮黄color11#ffeb62rgb(255 235 98)hsl(52 100% 69%)oklch(93.1% 0.156 101.0)11.41 AAA
亮蓝color12#4196ffrgb(65 150 255)hsl(213 100% 63%)oklch(67.3% 0.176 255.5)4.63 AA
亮品红color13#fc5275rgb(252 82 117)hsl(348 97% 65%)oklch(68.0% 0.206 12.4)4.35 AA 大字号
亮青color14#53cdbdrgb(83 205 189)hsl(172 55% 56%)oklch(77.5% 0.111 183.4)7.14 AAA
亮白color15#d2d8d9rgb(210 216 217)hsl(189 8% 84%)oklch(87.8% 0.007 208.8)9.60 AAA

关于 Chalk

Chalk 采用中性色调的深色背景(#2b2d2e),默认前景色为 #d2d8d9。正文的 WCAG 对比度为 9.60:1(AAA),12 种 ANSI 彩色槽位平均对比度 5.13:1,最低 2.39:1。

色板整体色彩饱和度适中,其中红色为 #b23a52、绿色为 #789b6a、蓝色为 #2a7fac、品红为 #bd4f5a。

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

与 Chalk 相似的配色

数据来源:iTerm2 Color Schemes (MIT)