跳到主要內容

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