跳到正文

Earl Grey

Earl Grey 是一套浅色终端配色(柔和、低饱和),背景色 #fcfbf9,文字色 #605a52,对比度 6.6:1

获取配置
背景色
#fcfbf9
前景色
#605a52
文字对比度
6.59:1AA
强调色对比度
5.64:1最低 4.00
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
❯

Earl Grey 的配置文件

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

Earl Grey

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

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

palette = 0=#605a52
palette = 1=#8f5652
palette = 2=#747b4d
palette = 3=#897d43
palette = 4=#556995
palette = 5=#83577d
palette = 6=#477a7b
palette = 7=#c2beb8
palette = 8=#a8a094
palette = 9=#82403c
palette = 10=#656d37
palette = 11=#796d2f
palette = 12=#3e5588
palette = 13=#77406f
palette = 14=#326b6c
palette = 15=#c2beb8
background = #fcfbf9
foreground = #605a52
cursor-color = #605a52
cursor-text = #fcfbf9
selection-background = #e1ddd6
selection-foreground = #605a52

Earl Grey 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#fcfbf9rgb(252 251 249)hsl(40 33% 98%)oklch(98.8% 0.003 84.6)—
前景色foreground#605a52rgb(96 90 82)hsl(34 8% 35%)oklch(47.1% 0.015 75.2)6.59 AA
光标cursor#605a52rgb(96 90 82)hsl(34 8% 35%)oklch(47.1% 0.015 75.2)6.59 AA
光标文字cursorText#fcfbf9rgb(252 251 249)hsl(40 33% 98%)oklch(98.8% 0.003 84.6)1.00 低于 AA
选区selection#e1ddd6rgb(225 221 214)hsl(38 15% 86%)oklch(89.9% 0.010 81.8)1.31 低于 AA
选区文字selectionText#605a52rgb(96 90 82)hsl(34 8% 35%)oklch(47.1% 0.015 75.2)6.59 AA
黑color0#605a52rgb(96 90 82)hsl(34 8% 35%)oklch(47.1% 0.015 75.2)6.59 AA
红color1#8f5652rgb(143 86 82)hsl(4 27% 44%)oklch(51.7% 0.077 24.4)5.61 AA
绿color2#747b4drgb(116 123 77)hsl(69 23% 39%)oklch(56.5% 0.066 115.6)4.34 AA 大字号
黄color3#897d43rgb(137 125 67)hsl(50 34% 40%)oklch(58.7% 0.080 97.9)4.00 AA 大字号
蓝color4#556995rgb(85 105 149)hsl(221 27% 46%)oklch(52.3% 0.074 265.2)5.29 AA
品红color5#83577drgb(131 87 125)hsl(308 20% 43%)oklch(51.8% 0.079 331.6)5.60 AA
青color6#477a7brgb(71 122 123)hsl(181 27% 38%)oklch(54.4% 0.055 197.3)4.68 AA
白color7#c2beb8rgb(194 190 184)hsl(36 8% 74%)oklch(80.3% 0.009 78.3)1.79 低于 AA
亮黑color8#a8a094rgb(168 160 148)hsl(36 10% 62%)oklch(70.9% 0.019 78.2)2.50 低于 AA
亮红color9#82403crgb(130 64 60)hsl(3 37% 37%)oklch(45.4% 0.092 24.9)7.39 AAA
亮绿color10#656d37rgb(101 109 55)hsl(69 33% 32%)oklch(51.5% 0.077 116.1)5.35 AA
亮黄color11#796d2frgb(121 109 47)hsl(50 44% 33%)oklch(53.3% 0.083 98.5)5.02 AA
亮蓝color12#3e5588rgb(62 85 136)hsl(221 37% 39%)oklch(45.5% 0.088 264.7)7.10 AAA
亮品红color13#77406frgb(119 64 111)hsl(309 30% 36%)oklch(45.6% 0.100 332.7)7.39 AAA
亮青color14#326b6crgb(50 107 108)hsl(181 37% 31%)oklch(49.0% 0.060 196.9)5.88 AA
亮白color15#c2beb8rgb(194 190 184)hsl(36 8% 74%)oklch(80.3% 0.009 78.3)1.79 低于 AA

关于 Earl Grey

Earl Grey 采用中性色调的浅色背景(#fcfbf9),默认前景色为 #605a52。正文的 WCAG 对比度为 6.59:1(AA),12 种 ANSI 彩色槽位平均对比度 5.64:1,最低 4.00:1。

色板整体色彩饱和度偏低,其中红色为 #8f5652、绿色为 #747b4d、蓝色为 #556995、品红为 #83577d。

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

与 Earl Grey 相似的配色

数据来源:iTerm2 Color Schemes (MIT)