跳到主要內容

Graphite

Graphite 是一套深色終端機配色(低飽和),背景色 #1c1e22,文字色 #d2d6dc,對比度 11.4:1

取得設定檔
背景色
#1c1e22
前景色
#d2d6dc
文字對比度
11.44:1AAA
強調色對比度
8.91:1最低 6.52
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
❯

Graphite 的設定檔

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

Graphite

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

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

palette = 0=#15171a
palette = 1=#e58888
palette = 2=#a7c59f
palette = 3=#cec59d
palette = 4=#8db4d0
palette = 5=#baabcb
palette = 6=#a8c6d4
palette = 7=#b4b9c0
palette = 8=#7e8590
palette = 9=#f19f9f
palette = 10=#b9d5b1
palette = 11=#cfba97
palette = 12=#a5c6de
palette = 13=#ccbedd
palette = 14=#bcd6e2
palette = 15=#eceff3
background = #1c1e22
foreground = #d2d6dc
cursor-color = #c4cedb
cursor-text = #1c1e22
selection-background = #2e333b
selection-foreground = #5c5e62

Graphite 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1c1e22rgb(28 30 34)hsl(220 10% 12%)oklch(23.5% 0.008 264.4)—
前景色foreground#d2d6dcrgb(210 214 220)hsl(216 13% 84%)oklch(87.5% 0.009 258.3)11.44 AAA
光標cursor#c4cedbrgb(196 206 219)hsl(214 24% 81%)oklch(84.8% 0.021 254.9)10.49 AAA
光標文字cursorText#1c1e22rgb(28 30 34)hsl(220 10% 12%)oklch(23.5% 0.008 264.4)1.00 低於 AA
選取範圍selection#2e333brgb(46 51 59)hsl(217 12% 21%)oklch(32.0% 0.016 259.8)1.31 低於 AA
選取文字selectionText#5c5e62rgb(92 94 98)hsl(220 3% 37%)oklch(48.2% 0.007 264.5)2.57 低於 AA
黑color0#15171argb(21 23 26)hsl(216 11% 9%)oklch(20.4% 0.007 258.4)1.08 低於 AA
紅color1#e58888rgb(229 136 136)hsl(0 64% 72%)oklch(72.5% 0.114 20.2)6.52 AA
綠color2#a7c59frgb(167 197 159)hsl(107 25% 70%)oklch(79.1% 0.062 139.1)8.85 AAA
黃color3#cec59drgb(206 197 157)hsl(49 33% 71%)oklch(82.1% 0.054 96.8)9.62 AAA
藍color4#8db4d0rgb(141 180 208)hsl(205 42% 68%)oklch(75.1% 0.058 239.8)7.61 AAA
洋紅color5#baabcbrgb(186 171 203)hsl(268 24% 73%)oklch(76.4% 0.048 306.4)7.77 AAA
青color6#a8c6d4rgb(168 198 212)hsl(199 34% 75%)oklch(80.9% 0.038 227.7)9.29 AAA
白color7#b4b9c0rgb(180 185 192)hsl(215 9% 73%)oklch(78.4% 0.011 256.7)8.46 AAA
亮黑color8#7e8590rgb(126 133 144)hsl(217 7% 53%)oklch(61.5% 0.019 259.4)4.49 AA 大字體
亮紅color9#f19f9frgb(241 159 159)hsl(0 75% 78%)oklch(78.4% 0.098 19.5)8.11 AAA
亮綠color10#b9d5b1rgb(185 213 177)hsl(107 30% 76%)oklch(84.3% 0.058 138.8)10.50 AAA
亮黃color11#cfba97rgb(207 186 151)hsl(37 37% 70%)oklch(79.8% 0.053 80.4)8.84 AAA
亮藍color12#a5c6dergb(165 198 222)hsl(205 46% 76%)oklch(81.0% 0.049 239.8)9.32 AAA
亮洋紅color13#ccbeddrgb(204 190 221)hsl(267 31% 81%)oklch(82.3% 0.045 305.8)9.52 AAA
亮青color14#bcd6e2rgb(188 214 226)hsl(199 40% 81%)oklch(86.1% 0.032 227.3)11.01 AAA
亮白color15#eceff3rgb(236 239 243)hsl(214 23% 94%)oklch(95.1% 0.006 255.5)14.47 AAA

關於 Graphite

Graphite 採用中性色調的深色背景(#1c1e22),預設前景色為 #d2d6dc。正文的 WCAG 對比度為 11.44:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.91:1,最低 6.52:1。

色板整體色彩飽和度偏低,其中紅色為 #e58888、綠色為 #a7c59f、藍色為 #8db4d0、洋紅為 #baabcb。

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

與 Graphite 相似的配色

資料來源:iTerm2 Color Schemes (MIT)