跳到正文

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/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)