跳到正文

Gruvbox Light Hard

Gruvbox Light Hard 是一套浅色终端配色(暖色),背景色 #f9f5d7,文字色 #3c3836,对比度 10.5:1

获取配置
背景色
#f9f5d7
前景色
#3c3836
文字对比度
10.53:1AAA
强调色对比度
4.41:1最低 2.25
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 Hard 的配置文件

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

Gruvbox Light Hard

存到 ~/.config/ghostty/themes/Gruvbox Light Hard,再在 config 或 config.ghostty 里写 theme = Gruvbox Light Hard

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

palette = 0=#f9f5d7
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 = #f9f5d7
foreground = #3c3836
cursor-color = #3c3836
cursor-text = #f9f5d7
selection-background = #3c3836
selection-foreground = #f9f5d7

Gruvbox Light Hard 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#f9f5d7rgb(249 245 215)hsl(53 74% 91%)oklch(96.5% 0.039 100.9)—
前景色foreground#3c3836rgb(60 56 54)hsl(20 5% 22%)oklch(34.4% 0.007 48.5)10.53 AAA
光标cursor#3c3836rgb(60 56 54)hsl(20 5% 22%)oklch(34.4% 0.007 48.5)10.53 AAA
光标文字cursorText#f9f5d7rgb(249 245 215)hsl(53 74% 91%)oklch(96.5% 0.039 100.9)1.00 低于 AA
选区selection#3c3836rgb(60 56 54)hsl(20 5% 22%)oklch(34.4% 0.007 48.5)10.53 AAA
选区文字selectionText#f9f5d7rgb(249 245 215)hsl(53 74% 91%)oklch(96.5% 0.039 100.9)1.00 低于 AA
黑color0#f9f5d7rgb(249 245 215)hsl(53 74% 91%)oklch(96.5% 0.039 100.9)1.00 低于 AA
红color1#cc241drgb(204 36 29)hsl(2 75% 46%)oklch(54.6% 0.203 28.7)4.97 AA
绿color2#98971argb(152 151 26)hsl(60 71% 35%)oklch(65.6% 0.135 109.1)2.81 低于 AA
黄color3#d79921rgb(215 153 33)hsl(40 73% 49%)oklch(72.5% 0.143 77.7)2.25 低于 AA
蓝color4#458588rgb(69 133 136)hsl(183 33% 40%)oklch(57.6% 0.066 199.5)3.84 AA 大字号
品红color5#b16286rgb(177 98 134)hsl(333 34% 54%)oklch(59.7% 0.111 352.2)3.84 AA 大字号
青color6#689d6argb(104 157 106)hsl(122 21% 51%)oklch(64.5% 0.094 145.3)2.88 低于 AA
白color7#7c6f64rgb(124 111 100)hsl(28 11% 44%)oklch(55.0% 0.023 62.6)4.42 AA 大字号
亮黑color8#928374rgb(146 131 116)hsl(30 12% 51%)oklch(61.9% 0.029 67.3)3.33 AA 大字号
亮红color9#9d0006rgb(157 0 6)hsl(358 100% 31%)oklch(43.7% 0.179 28.3)7.83 AAA
亮绿color10#79740ergb(121 116 14)hsl(57 79% 26%)oklch(54.6% 0.112 106.5)4.42 AA 大字号
亮黄color11#b57614rgb(181 118 20)hsl(37 80% 39%)oklch(61.8% 0.128 70.7)3.43 AA 大字号
亮蓝color12#076678rgb(7 102 120)hsl(190 89% 25%)oklch(47.1% 0.082 215.8)6.00 AA
亮品红color13#8f3f71rgb(143 63 113)hsl(323 39% 40%)oklch(48.9% 0.124 344.3)6.12 AA
亮青color14#427b58rgb(66 123 88)hsl(143 30% 37%)oklch(53.4% 0.082 155.4)4.53 AA
亮白color15#3c3836rgb(60 56 54)hsl(20 5% 22%)oklch(34.4% 0.007 48.5)10.53 AAA

关于 Gruvbox Light Hard

Gruvbox Light Hard 采用暖色调的浅色背景(#f9f5d7),默认前景色为 #3c3836。正文的 WCAG 对比度为 10.53:1(AAA),12 种 ANSI 彩色槽位平均对比度 4.41:1,最低 2.25: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, hard 的名称发布

与 Gruvbox Light Hard 相似的配色

数据来源:iTerm2 Color Schemes (MIT)