跳到主要內容

Gruvbox Light

Gruvbox Light 是一套淺色終端機配色(暖色),背景色 #fbf1c7,文字色 #3c3836,對比度 10.2:1

取得設定檔
背景色
#fbf1c7
前景色
#3c3836
文字對比度
10.22:1AAA
強調色對比度
4.28:1最低 2.19
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
❯

Gruvbox Light 的設定檔

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

Gruvbox Light

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

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

palette = 0=#fbf1c7
palette = 1=#cc241d
palette = 2=#98971a
palette = 3=#d79921
palette = 4=#458588
palette = 5=#b16286
palette = 6=#689d6a
palette = 7=#7c6f64
palette = 8=#928374
palette = 9=#9d0006
palette = 10=#79740e
palette = 11=#b57614
palette = 12=#076678
palette = 13=#8f3f71
palette = 14=#427b58
palette = 15=#3c3836
background = #fbf1c7
foreground = #3c3836
cursor-color = #3c3836
cursor-text = #fbf1c7
selection-background = #3c3836
selection-foreground = #fbf1c7

Gruvbox Light 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#fbf1c7rgb(251 241 199)hsl(48 87% 88%)oklch(95.6% 0.055 96.2)—
前景色foreground#3c3836rgb(60 56 54)hsl(20 5% 22%)oklch(34.4% 0.007 48.5)10.22 AAA
光標cursor#3c3836rgb(60 56 54)hsl(20 5% 22%)oklch(34.4% 0.007 48.5)10.22 AAA
光標文字cursorText#fbf1c7rgb(251 241 199)hsl(48 87% 88%)oklch(95.6% 0.055 96.2)1.00 低於 AA
選取範圍selection#3c3836rgb(60 56 54)hsl(20 5% 22%)oklch(34.4% 0.007 48.5)10.22 AAA
選取文字selectionText#fbf1c7rgb(251 241 199)hsl(48 87% 88%)oklch(95.6% 0.055 96.2)1.00 低於 AA
黑color0#fbf1c7rgb(251 241 199)hsl(48 87% 88%)oklch(95.6% 0.055 96.2)1.00 低於 AA
紅color1#cc241drgb(204 36 29)hsl(2 75% 46%)oklch(54.6% 0.203 28.7)4.82 AA
綠color2#98971argb(152 151 26)hsl(60 71% 35%)oklch(65.6% 0.135 109.1)2.73 低於 AA
黃color3#d79921rgb(215 153 33)hsl(40 73% 49%)oklch(72.5% 0.143 77.7)2.19 低於 AA
藍color4#458588rgb(69 133 136)hsl(183 33% 40%)oklch(57.6% 0.066 199.5)3.73 AA 大字體
洋紅color5#b16286rgb(177 98 134)hsl(333 34% 54%)oklch(59.7% 0.111 352.2)3.73 AA 大字體
青color6#689d6argb(104 157 106)hsl(122 21% 51%)oklch(64.5% 0.094 145.3)2.80 低於 AA
白color7#7c6f64rgb(124 111 100)hsl(28 11% 44%)oklch(55.0% 0.023 62.6)4.29 AA 大字體
亮黑color8#928374rgb(146 131 116)hsl(30 12% 51%)oklch(61.9% 0.029 67.3)3.24 AA 大字體
亮紅color9#9d0006rgb(157 0 6)hsl(358 100% 31%)oklch(43.7% 0.179 28.3)7.60 AAA
亮綠color10#79740ergb(121 116 14)hsl(57 79% 26%)oklch(54.6% 0.112 106.5)4.29 AA 大字體
亮黃color11#b57614rgb(181 118 20)hsl(37 80% 39%)oklch(61.8% 0.128 70.7)3.33 AA 大字體
亮藍color12#076678rgb(7 102 120)hsl(190 89% 25%)oklch(47.1% 0.082 215.8)5.82 AA
亮洋紅color13#8f3f71rgb(143 63 113)hsl(323 39% 40%)oklch(48.9% 0.124 344.3)5.94 AA
亮青color14#427b58rgb(66 123 88)hsl(143 30% 37%)oklch(53.4% 0.082 155.4)4.40 AA 大字體
亮白color15#3c3836rgb(60 56 54)hsl(20 5% 22%)oklch(34.4% 0.007 48.5)10.22 AAA

關於 Gruvbox Light

Gruvbox Light 採用暖色調的淺色背景(#fbf1c7),預設前景色為 #3c3836。正文的 WCAG 對比度為 10.22:1(AAA),12 種 ANSI 彩色槽位平均對比度 4.28:1,最低 2.19:1。

色板整體色彩飽和度適中,其中紅色為 #cc241d、綠色為 #98971a、藍色為 #458588、洋紅為 #b16286。該配色歸屬 Gruvbox 主題系列。

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

與 Gruvbox Light 相似的配色

資料來源:iTerm2 Color Schemes (MIT)