跳到主要內容

Vegetable Contrast

Vegetable Contrast 是一套深色終端機配色,背景色 #161314,文字色 #e2dcdd,對比度 13.6:1

取得設定檔
背景色
#161314
前景色
#e2dcdd
文字對比度
13.64:1AAA
強調色對比度
9.40:1最低 2.80
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
❯

Vegetable Contrast 的設定檔

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

Vegetable Contrast

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

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

palette = 0=#241f20
palette = 1=#ba0e2e
palette = 2=#f0a56c
palette = 3=#689d81
palette = 4=#d8ca96
palette = 5=#f0a56c
palette = 6=#689d81
palette = 7=#eeeaeb
palette = 8=#3f3639
palette = 9=#e61f44
palette = 10=#f9dec9
palette = 11=#a6c5b5
palette = 12=#f4f0e0
palette = 13=#f9dec9
palette = 14=#a6c5b5
palette = 15=#ffffff
background = #161314
foreground = #e2dcdd
cursor-color = #ffffff
cursor-text = #e2dcdd
selection-background = #689d81
selection-foreground = #ffffff

Vegetable Contrast 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#161314rgb(22 19 20)hsl(340 7% 8%)oklch(19.1% 0.005 355.4)—
前景色foreground#e2dcddrgb(226 220 221)hsl(350 9% 87%)oklch(90.0% 0.007 5.6)13.64 AAA
光標cursor#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.46 AAA
光標文字cursorText#e2dcddrgb(226 220 221)hsl(350 9% 87%)oklch(90.0% 0.007 5.6)13.64 AAA
選取範圍selection#689d81rgb(104 157 129)hsl(148 21% 51%)oklch(65.1% 0.071 160.5)5.92 AA
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.46 AAA
黑color0#241f20rgb(36 31 32)hsl(348 7% 13%)oklch(24.5% 0.008 4.0)1.14 低於 AA
紅color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)2.80 低於 AA
綠color2#f0a56crgb(240 165 108)hsl(26 81% 68%)oklch(78.3% 0.115 57.3)9.06 AAA
黃color3#689d81rgb(104 157 129)hsl(148 21% 51%)oklch(65.1% 0.071 160.5)5.92 AA
藍color4#d8ca96rgb(216 202 150)hsl(47 46% 72%)oklch(83.8% 0.070 94.8)11.26 AAA
洋紅color5#f0a56crgb(240 165 108)hsl(26 81% 68%)oklch(78.3% 0.115 57.3)9.06 AAA
青color6#689d81rgb(104 157 129)hsl(148 21% 51%)oklch(65.1% 0.071 160.5)5.92 AA
白color7#eeeaebrgb(238 234 235)hsl(345 11% 93%)oklch(94.0% 0.005 0.0)15.48 AAA
亮黑color8#3f3639rgb(63 54 57)hsl(340 8% 23%)oklch(34.3% 0.014 355.7)1.58 低於 AA
亮紅color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)4.08 AA 大字體
亮綠color10#f9dec9rgb(249 222 201)hsl(26 80% 88%)oklch(91.7% 0.041 60.1)14.35 AAA
亮黃color11#a6c5b5rgb(166 197 181)hsl(149 21% 71%)oklch(79.6% 0.040 162.9)9.91 AAA
亮藍color12#f4f0e0rgb(244 240 224)hsl(48 48% 92%)oklch(95.4% 0.022 95.3)16.17 AAA
亮洋紅color13#f9dec9rgb(249 222 201)hsl(26 80% 88%)oklch(91.7% 0.041 60.1)14.35 AAA
亮青color14#a6c5b5rgb(166 197 181)hsl(149 21% 71%)oklch(79.6% 0.040 162.9)9.91 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.46 AAA

關於 Vegetable Contrast

Vegetable Contrast 採用中性色調的深色背景(#161314),預設前景色為 #e2dcdd。正文的 WCAG 對比度為 13.64:1(AAA),12 種 ANSI 彩色槽位平均對比度 9.40:1,最低 2.80:1。

色板整體色彩飽和度適中,其中紅色為 #ba0e2e、綠色為 #f0a56c、藍色為 #d8ca96、洋紅為 #f0a56c。

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

與 Vegetable Contrast 相似的配色

資料來源:Rainglow (MIT)