跳到主要內容

Gruvbox Dark Hard

Gruvbox Dark Hard 是一套深色終端機配色,背景色 #1d2021,文字色 #ebdbb2,對比度 11.9:1

取得設定檔
背景色
#1d2021
前景色
#ebdbb2
文字對比度
11.95:1AAA
強調色對比度
5.84:1最低 3.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
❯

Gruvbox Dark Hard 的設定檔

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

Gruvbox Dark Hard

存到 ~/.config/ghostty/themes/Gruvbox Dark Hard,再在 config 或 config.ghostty 裡寫 theme = Gruvbox Dark Hard

更多 Ghostty 配色
原始檔
# Theme: Gruvbox Dark Hard (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-tw/schemes/gruvbox-dark-hard?format=ghostty

palette = 0=#1d2021
palette = 1=#cc241d
palette = 2=#98971a
palette = 3=#d79921
palette = 4=#458588
palette = 5=#b16286
palette = 6=#689d6a
palette = 7=#a89984
palette = 8=#928374
palette = 9=#fb4934
palette = 10=#b8bb26
palette = 11=#fabd2f
palette = 12=#83a598
palette = 13=#d3869b
palette = 14=#8ec07c
palette = 15=#ebdbb2
background = #1d2021
foreground = #ebdbb2
cursor-color = #ebdbb2
cursor-text = #1d2021
selection-background = #665c54
selection-foreground = #ebdbb2

Gruvbox Dark Hard 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1d2021rgb(29 32 33)hsl(195 6% 12%)oklch(24.1% 0.005 219.7)—
前景色foreground#ebdbb2rgb(235 219 178)hsl(43 59% 81%)oklch(89.4% 0.057 89.2)11.95 AAA
游標cursor#ebdbb2rgb(235 219 178)hsl(43 59% 81%)oklch(89.4% 0.057 89.2)11.95 AAA
游標文字cursorText#1d2021rgb(29 32 33)hsl(195 6% 12%)oklch(24.1% 0.005 219.7)1.00 低於 AA
選取範圍selection#665c54rgb(102 92 84)hsl(27 10% 36%)oklch(48.2% 0.018 61.0)2.52 低於 AA
選取文字selectionText#ebdbb2rgb(235 219 178)hsl(43 59% 81%)oklch(89.4% 0.057 89.2)11.95 AAA
黑color0#1d2021rgb(29 32 33)hsl(195 6% 12%)oklch(24.1% 0.005 219.7)1.00 低於 AA
紅color1#cc241drgb(204 36 29)hsl(2 75% 46%)oklch(54.6% 0.203 28.7)3.00 低於 AA
綠color2#98971argb(152 151 26)hsl(60 71% 35%)oklch(65.6% 0.135 109.1)5.29 AA
黃color3#d79921rgb(215 153 33)hsl(40 73% 49%)oklch(72.5% 0.143 77.7)6.61 AA
藍color4#458588rgb(69 133 136)hsl(183 33% 40%)oklch(57.6% 0.066 199.5)3.88 AA 大字級
洋紅color5#b16286rgb(177 98 134)hsl(333 34% 54%)oklch(59.7% 0.111 352.2)3.87 AA 大字級
青color6#689d6argb(104 157 106)hsl(122 21% 51%)oklch(64.5% 0.094 145.3)5.17 AA
白color7#a89984rgb(168 153 132)hsl(35 17% 59%)oklch(69.0% 0.035 76.3)5.90 AA
亮黑color8#928374rgb(146 131 116)hsl(30 12% 51%)oklch(61.9% 0.029 67.3)4.47 AA 大字級
亮紅color9#fb4934rgb(251 73 52)hsl(6 96% 59%)oklch(66.0% 0.218 30.4)4.77 AA
亮綠color10#b8bb26rgb(184 187 38)hsl(61 66% 44%)oklch(76.5% 0.158 110.8)7.94 AAA
亮黃color11#fabd2frgb(250 189 47)hsl(42 95% 58%)oklch(83.2% 0.159 83.0)9.67 AAA
亮藍color12#83a598rgb(131 165 152)hsl(157 16% 58%)oklch(69.3% 0.042 169.8)6.09 AA
亮洋紅color13#d3869brgb(211 134 155)hsl(344 47% 68%)oklch(70.5% 0.098 2.2)5.98 AA
亮青color14#8ec07crgb(142 192 124)hsl(104 35% 62%)oklch(75.6% 0.108 137.7)7.79 AAA
亮白color15#ebdbb2rgb(235 219 178)hsl(43 59% 81%)oklch(89.4% 0.057 89.2)11.95 AAA

關於 Gruvbox Dark Hard

Gruvbox Dark Hard 採用中性色調的深色背景(#1d2021),預設前景色為 #ebdbb2。內文的 WCAG 對比度為 11.95:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.84:1,最低 3.00: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 dark, hard 的名稱發布

與 Gruvbox Dark Hard 相似的配色

資料來源:iTerm2 Color Schemes (MIT)