跳到主要內容

Mud Contrast

Mud Contrast 是一套深色終端機配色(純黑、高對比),背景色 #0d0b0b,文字色 #ffffff,對比度 19.6:1

取得設定檔
背景色
#0d0b0b
前景色
#ffffff
文字對比度
19.63:1AAA
強調色對比度
9.93:1最低 2.98
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
❯

Mud Contrast 的設定檔

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

Mud Contrast

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

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

palette = 0=#1b1717
palette = 1=#ba0e2e
palette = 2=#f2c12f
palette = 3=#f55239
palette = 4=#8ee350
palette = 5=#f8553c
palette = 6=#eaba2c
palette = 7=#ffffff
palette = 8=#362e2e
palette = 9=#e61f44
palette = 10=#f8de8f
palette = 11=#faa79a
palette = 12=#c7f1a8
palette = 13=#fcab9e
palette = 14=#f3d889
palette = 15=#ffffff
background = #0d0b0b
foreground = #ffffff
cursor-color = #f8f8f0
cursor-text = #ffffff
selection-background = #b5db99
selection-foreground = #4e653d

Mud Contrast 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#0d0b0brgb(13 11 11)hsl(0 8% 5%)oklch(15.2% 0.003 17.5)—
前景色foreground#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)19.63 AAA
光標cursor#f8f8f0rgb(248 248 240)hsl(60 36% 96%)oklch(97.7% 0.011 106.6)18.39 AAA
光標文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)19.63 AAA
選取範圍selection#b5db99rgb(181 219 153)hsl(95 48% 73%)oklch(84.8% 0.097 132.5)12.67 AAA
選取文字selectionText#4e653drgb(78 101 61)hsl(94 25% 32%)oklch(47.7% 0.067 132.8)3.04 AA 大字體
黑color0#1b1717rgb(27 23 23)hsl(0 8% 10%)oklch(20.9% 0.006 17.7)1.10 低於 AA
紅color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)2.98 低於 AA
綠color2#f2c12frgb(242 193 47)hsl(45 88% 57%)oklch(83.2% 0.158 88.5)11.63 AAA
黃color3#f55239rgb(245 82 57)hsl(8 90% 59%)oklch(65.9% 0.203 31.5)5.75 AA
藍color4#8ee350rgb(142 227 80)hsl(95 72% 60%)oklch(83.3% 0.198 134.5)12.39 AAA
洋紅color5#f8553crgb(248 85 60)hsl(8 93% 60%)oklch(66.8% 0.203 31.5)5.94 AA
青color6#eaba2crgb(234 186 44)hsl(45 82% 55%)oklch(81.0% 0.155 88.3)10.80 AAA
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)19.63 AAA
亮黑color8#362e2ergb(54 46 46)hsl(0 8% 20%)oklch(31.0% 0.012 17.8)1.48 低於 AA
亮紅color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)4.34 AA 大字體
亮綠color10#f8de8frgb(248 222 143)hsl(45 88% 77%)oklch(90.5% 0.102 91.9)14.80 AAA
亮黃color11#faa79argb(250 167 154)hsl(8 91% 79%)oklch(80.6% 0.101 29.2)10.34 AAA
亮藍color12#c7f1a8rgb(199 241 168)hsl(95 72% 80%)oklch(91.1% 0.105 132.5)15.49 AAA
亮洋紅color13#fcab9ergb(252 171 158)hsl(8 94% 80%)oklch(81.6% 0.098 29.4)10.71 AAA
亮青color14#f3d889rgb(243 216 137)hsl(45 82% 75%)oklch(88.8% 0.103 91.3)14.02 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)19.63 AAA

關於 Mud Contrast

Mud Contrast 採用中性色調的深色背景(#0d0b0b),預設前景色為 #ffffff。正文的 WCAG 對比度為 19.63:1(AAA),12 種 ANSI 彩色槽位平均對比度 9.93:1,最低 2.98:1。

色板整體色彩飽和度適中,其中紅色為 #ba0e2e、綠色為 #f2c12f、藍色為 #8ee350、洋紅為 #f8553c。

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

與 Mud Contrast 相似的配色

資料來源:Rainglow (MIT)