跳到主要內容

Gruber

Gruber 是一套深色終端機配色,背景色 #181818,文字色 #f4f4ff,對比度 16.3:1

取得設定檔
背景色
#181818
前景色
#f4f4ff
文字對比度
16.26:1AAA
強調色對比度
7.88:1最低 4.64
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
❯

Gruber 的設定檔

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

Gruber

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

更多 Ghostty 配色
原始檔
# Theme: Gruber (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-tw/schemes/gruber?format=ghostty

palette = 0=#181818
palette = 1=#f43841
palette = 2=#73c936
palette = 3=#ffdd33
palette = 4=#96a6c8
palette = 5=#9e95c7
palette = 6=#95a99f
palette = 7=#f4f4ff
palette = 8=#52494e
palette = 9=#f43841
palette = 10=#73c936
palette = 11=#ffdd33
palette = 12=#96a6c8
palette = 13=#9e95c7
palette = 14=#95a99f
palette = 15=#e4e4ef
background = #181818
foreground = #f4f4ff
cursor-color = #f4f4ff
cursor-text = #181818
selection-background = #484848
selection-foreground = #f4f4ff

Gruber 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#181818rgb(24 24 24)hsl(0 0% 9%)oklch(20.9% 0.000 0)—
前景色foreground#f4f4ffrgb(244 244 255)hsl(240 100% 98%)oklch(97.0% 0.015 286.1)16.26 AAA
游標cursor#f4f4ffrgb(244 244 255)hsl(240 100% 98%)oklch(97.0% 0.015 286.1)16.26 AAA
游標文字cursorText#181818rgb(24 24 24)hsl(0 0% 9%)oklch(20.9% 0.000 0)1.00 低於 AA
選取範圍selection#484848rgb(72 72 72)hsl(0 0% 28%)oklch(40.2% 0.000 0)1.94 低於 AA
選取文字selectionText#f4f4ffrgb(244 244 255)hsl(240 100% 98%)oklch(97.0% 0.015 286.1)16.26 AAA
黑color0#181818rgb(24 24 24)hsl(0 0% 9%)oklch(20.9% 0.000 0)1.00 低於 AA
紅color1#f43841rgb(244 56 65)hsl(357 90% 59%)oklch(63.5% 0.222 24.2)4.64 AA
綠color2#73c936rgb(115 201 54)hsl(95 58% 50%)oklch(75.3% 0.196 135.3)8.57 AAA
黃color3#ffdd33rgb(255 221 51)hsl(50 100% 60%)oklch(90.0% 0.174 96.9)13.23 AAA
藍color4#96a6c8rgb(150 166 200)hsl(221 31% 69%)oklch(72.4% 0.053 265.3)7.26 AAA
洋紅color5#9e95c7rgb(158 149 199)hsl(251 31% 68%)oklch(69.6% 0.073 292.6)6.41 AA
青color6#95a99frgb(149 169 159)hsl(150 10% 62%)oklch(71.6% 0.027 164.1)7.15 AAA
白color7#f4f4ffrgb(244 244 255)hsl(240 100% 98%)oklch(97.0% 0.015 286.1)16.26 AAA
亮黑color8#52494ergb(82 73 78)hsl(327 6% 30%)oklch(41.6% 0.014 343.2)2.05 低於 AA
亮紅color9#f43841rgb(244 56 65)hsl(357 90% 59%)oklch(63.5% 0.222 24.2)4.64 AA
亮綠color10#73c936rgb(115 201 54)hsl(95 58% 50%)oklch(75.3% 0.196 135.3)8.57 AAA
亮黃color11#ffdd33rgb(255 221 51)hsl(50 100% 60%)oklch(90.0% 0.174 96.9)13.23 AAA
亮藍color12#96a6c8rgb(150 166 200)hsl(221 31% 69%)oklch(72.4% 0.053 265.3)7.26 AAA
亮洋紅color13#9e95c7rgb(158 149 199)hsl(251 31% 68%)oklch(69.6% 0.073 292.6)6.41 AA
亮青color14#95a99frgb(149 169 159)hsl(150 10% 62%)oklch(71.6% 0.027 164.1)7.15 AAA
亮白color15#e4e4efrgb(228 228 239)hsl(240 26% 92%)oklch(92.2% 0.015 286.1)14.07 AAA

關於 Gruber

Gruber 採用中性色調的深色背景(#181818),預設前景色為 #f4f4ff。內文的 WCAG 對比度為 16.26:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.88:1,最低 4.64:1。

色票整體色彩彩度適中,其中紅色為 #f43841、綠色為 #73c936、藍色為 #96a6c8、洋紅為 #9e95c7。

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

與 Gruber 相似的配色

資料來源:Tinted Theming (Base16 & Base24) (MIT)