跳到主要內容

Grape

Grape 是一套深色終端機配色(柔和、冷色),背景色 #171423,文字色 #9f9fa1,對比度 6.8:1

取得設定檔
背景色
#171423
前景色
#9f9fa1
文字對比度
6.85:1AA
強調色對比度
7.66: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
❯

Grape 的設定檔

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

Grape

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

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

palette = 0=#2d283f
palette = 1=#ed2261
palette = 2=#1fa91b
palette = 3=#8ddc20
palette = 4=#487df4
palette = 5=#8d35c9
palette = 6=#3bdeed
palette = 7=#9e9ea0
palette = 8=#59516a
palette = 9=#f0729a
palette = 10=#53aa5e
palette = 11=#b2dc87
palette = 12=#a9bcec
palette = 13=#ad81c2
palette = 14=#9de3eb
palette = 15=#a288f7
background = #171423
foreground = #9f9fa1
cursor-color = #a288f7
cursor-text = #171422
selection-background = #493d70
selection-foreground = #171422

Grape 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#171423rgb(23 20 35)hsl(252 27% 11%)oklch(20.3% 0.030 292.7)—
前景色foreground#9f9fa1rgb(159 159 161)hsl(240 1% 63%)oklch(70.3% 0.003 286.3)6.85 AA
光標cursor#a288f7rgb(162 136 247)hsl(254 87% 75%)oklch(69.8% 0.159 292.6)6.38 AA
光標文字cursorText#171422rgb(23 20 34)hsl(253 26% 11%)oklch(20.2% 0.028 293.6)1.00 低於 AA
選取範圍selection#493d70rgb(73 61 112)hsl(254 29% 34%)oklch(39.7% 0.085 293.0)1.88 低於 AA
選取文字selectionText#171422rgb(23 20 34)hsl(253 26% 11%)oklch(20.2% 0.028 293.6)1.00 低於 AA
黑color0#2d283frgb(45 40 63)hsl(253 22% 20%)oklch(29.3% 0.042 293.6)1.28 低於 AA
紅color1#ed2261rgb(237 34 97)hsl(341 85% 53%)oklch(61.5% 0.231 11.2)4.31 AA 大字體
綠color2#1fa91brgb(31 169 27)hsl(118 72% 38%)oklch(64.0% 0.206 142.5)5.81 AA
黃color3#8ddc20rgb(141 220 32)hsl(85 75% 49%)oklch(81.2% 0.215 131.4)10.67 AAA
藍color4#487df4rgb(72 125 244)hsl(222 89% 62%)oklch(61.6% 0.187 263.7)4.75 AA
洋紅color5#8d35c9rgb(141 53 201)hsl(276 58% 50%)oklch(52.6% 0.218 307.5)3.00 AA 大字體
青color6#3bdeedrgb(59 222 237)hsl(185 83% 58%)oklch(82.6% 0.129 204.4)11.08 AAA
白color7#9e9ea0rgb(158 158 160)hsl(240 1% 62%)oklch(70.0% 0.003 286.3)6.76 AA
亮黑color8#59516argb(89 81 106)hsl(259 13% 37%)oklch(45.2% 0.041 299.4)2.42 低於 AA
亮紅color9#f0729argb(240 114 154)hsl(341 81% 69%)oklch(71.1% 0.160 2.0)6.53 AA
亮綠color10#53aa5ergb(83 170 94)hsl(128 34% 50%)oklch(66.5% 0.139 146.4)6.27 AA
亮黃color11#b2dc87rgb(178 220 135)hsl(90 55% 70%)oklch(84.5% 0.120 130.0)11.61 AAA
亮藍color12#a9bcecrgb(169 188 236)hsl(223 64% 79%)oklch(79.7% 0.072 267.9)9.56 AAA
亮洋紅color13#ad81c2rgb(173 129 194)hsl(281 35% 63%)oklch(66.9% 0.105 314.5)5.77 AA
亮青color14#9de3ebrgb(157 227 235)hsl(186 66% 77%)oklch(87.2% 0.071 204.9)12.60 AAA
亮白color15#a288f7rgb(162 136 247)hsl(254 87% 75%)oklch(69.8% 0.159 292.6)6.38 AA

關於 Grape

Grape 採用冷色調的深色背景(#171423),預設前景色為 #9f9fa1。正文的 WCAG 對比度為 6.85:1(AA),12 種 ANSI 彩色槽位平均對比度 7.66:1,最低 3.00:1。

色板整體色彩飽和度適中,其中紅色為 #ed2261、綠色為 #1fa91b、藍色為 #487df4、洋紅為 #8d35c9。

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

與 Grape 相似的配色

資料來源:iTerm2 Color Schemes (MIT)