跳到主要內容

Charcoal

Charcoal 是一套深色終端機配色(純黑、單色),背景色 #0d0d0d,文字色 #c4c4c4,對比度 11.1:1

取得設定檔
背景色
#0d0d0d
前景色
#c4c4c4
文字對比度
11.14:1AAA
強調色對比度
8.94:1最低 5.48
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
❯

Charcoal 的設定檔

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

Charcoal

存到 ~/.config/ghostty/themes/Charcoal,再在 config 或 config.ghostty 裡寫 theme = Charcoal

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

palette = 0=#111111
palette = 1=#888888
palette = 2=#a8a8a8
palette = 3=#b0b0b0
palette = 4=#9a9a9a
palette = 5=#8a8a8a
palette = 6=#a0a0a0
palette = 7=#c0c0c0
palette = 8=#474747
palette = 9=#a0a0a0
palette = 10=#c4c4c4
palette = 11=#c8c8c8
palette = 12=#d0d0d0
palette = 13=#b8b8b8
palette = 14=#cccccc
palette = 15=#ececec
background = #0d0d0d
foreground = #c4c4c4
cursor-color = #d0d0d0
cursor-text = #0d0d0d
selection-background = #2e2e2e
selection-foreground = #e0e0e0

Charcoal 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#0d0d0drgb(13 13 13)hsl(0 0% 5%)oklch(15.9% 0.000 0)—
前景色foreground#c4c4c4rgb(196 196 196)hsl(0 0% 77%)oklch(82.0% 0.000 0)11.14 AAA
游標cursor#d0d0d0rgb(208 208 208)hsl(0 0% 82%)oklch(85.8% 0.000 0)12.60 AAA
游標文字cursorText#0d0d0drgb(13 13 13)hsl(0 0% 5%)oklch(15.9% 0.000 0)1.00 低於 AA
選取範圍selection#2e2e2ergb(46 46 46)hsl(0 0% 18%)oklch(30.1% 0.000 0)1.43 低於 AA
選取文字selectionText#e0e0e0rgb(224 224 224)hsl(0 0% 88%)oklch(90.7% 0.000 0)14.72 AAA
黑color0#111111rgb(17 17 17)hsl(0 0% 7%)oklch(17.8% 0.000 0)1.03 低於 AA
紅color1#888888rgb(136 136 136)hsl(0 0% 53%)oklch(62.7% 0.000 0)5.48 AA
綠color2#a8a8a8rgb(168 168 168)hsl(0 0% 66%)oklch(73.2% 0.000 0)8.17 AAA
黃color3#b0b0b0rgb(176 176 176)hsl(0 0% 69%)oklch(75.7% 0.000 0)8.96 AAA
藍color4#9a9a9argb(154 154 154)hsl(0 0% 60%)oklch(68.6% 0.000 0)6.91 AA
洋紅color5#8a8a8argb(138 138 138)hsl(0 0% 54%)oklch(63.3% 0.000 0)5.63 AA
青color6#a0a0a0rgb(160 160 160)hsl(0 0% 63%)oklch(70.6% 0.000 0)7.43 AAA
白color7#c0c0c0rgb(192 192 192)hsl(0 0% 75%)oklch(80.8% 0.000 0)10.68 AAA
亮黑color8#474747rgb(71 71 71)hsl(0 0% 28%)oklch(39.8% 0.000 0)2.09 低於 AA
亮紅color9#a0a0a0rgb(160 160 160)hsl(0 0% 63%)oklch(70.6% 0.000 0)7.43 AAA
亮綠color10#c4c4c4rgb(196 196 196)hsl(0 0% 77%)oklch(82.0% 0.000 0)11.14 AAA
亮黃color11#c8c8c8rgb(200 200 200)hsl(0 0% 78%)oklch(83.3% 0.000 0)11.62 AAA
亮藍color12#d0d0d0rgb(208 208 208)hsl(0 0% 82%)oklch(85.8% 0.000 0)12.60 AAA
亮洋紅color13#b8b8b8rgb(184 184 184)hsl(0 0% 72%)oklch(78.3% 0.000 0)9.80 AAA
亮青color14#ccccccrgb(204 204 204)hsl(0 0% 80%)oklch(84.5% 0.000 0)12.10 AAA
亮白color15#ecececrgb(236 236 236)hsl(0 0% 93%)oklch(94.3% 0.000 0)16.45 AAA

關於 Charcoal

Charcoal 採用中性色調的深色背景(#0d0d0d),預設前景色為 #c4c4c4。內文的 WCAG 對比度為 11.14:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.94:1,最低 5.48:1。

色票整體色彩彩度偏低,其中紅色為 #888888、綠色為 #a8a8a8、藍色為 #9a9a9a、洋紅為 #8a8a8a。

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

與 Charcoal 相似的配色

資料來源:iTerm2 Color Schemes (MIT)