跳到主要內容

Mezcal

Mezcal 是一套深色終端機配色,背景色 #13110e,文字色 #e0d8c8,對比度 13.3:1

取得設定檔
背景色
#13110e
前景色
#e0d8c8
文字對比度
13.31:1AAA
強調色對比度
7.72:1最低 5.69
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
❯

Mezcal 的設定檔

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

Mezcal

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

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

palette = 0=#13110e
palette = 1=#da6e54
palette = 2=#a8b84a
palette = 3=#d9a441
palette = 4=#8aa6c0
palette = 5=#c28aa8
palette = 6=#6fc8ae
palette = 7=#e0d8c8
palette = 8=#6e6450
palette = 9=#da6e54
palette = 10=#a8b84a
palette = 11=#d9a441
palette = 12=#8aa6c0
palette = 13=#c28aa8
palette = 14=#6fc8ae
palette = 15=#f2ead6
background = #13110e
foreground = #e0d8c8
cursor-color = #e0d8c8
cursor-text = #13110e
selection-background = #3f3b36
selection-foreground = #e0d8c8

Mezcal 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#13110ergb(19 17 14)hsl(36 15% 6%)oklch(17.9% 0.007 78.1)—
前景色foreground#e0d8c8rgb(224 216 200)hsl(40 28% 83%)oklch(88.4% 0.023 84.6)13.31 AAA
光標cursor#e0d8c8rgb(224 216 200)hsl(40 28% 83%)oklch(88.4% 0.023 84.6)13.31 AAA
光標文字cursorText#13110ergb(19 17 14)hsl(36 15% 6%)oklch(17.9% 0.007 78.1)1.00 低於 AA
選取範圍selection#3f3b36rgb(63 59 54)hsl(33 8% 23%)oklch(35.5% 0.010 73.6)1.70 低於 AA
選取文字selectionText#e0d8c8rgb(224 216 200)hsl(40 28% 83%)oklch(88.4% 0.023 84.6)13.31 AAA
黑color0#13110ergb(19 17 14)hsl(36 15% 6%)oklch(17.9% 0.007 78.1)1.00 低於 AA
紅color1#da6e54rgb(218 110 84)hsl(12 64% 59%)oklch(65.9% 0.141 34.7)5.69 AA
綠color2#a8b84argb(168 184 74)hsl(69 44% 51%)oklch(74.8% 0.136 116.8)8.63 AAA
黃color3#d9a441rgb(217 164 65)hsl(39 67% 55%)oklch(75.1% 0.130 79.8)8.38 AAA
藍color4#8aa6c0rgb(138 166 192)hsl(209 30% 65%)oklch(71.3% 0.049 246.6)7.45 AAA
洋紅color5#c28aa8rgb(194 138 168)hsl(328 31% 65%)oklch(69.7% 0.079 346.0)6.73 AA
青color6#6fc8aergb(111 200 174)hsl(162 45% 61%)oklch(77.0% 0.095 172.7)9.47 AAA
白color7#e0d8c8rgb(224 216 200)hsl(40 28% 83%)oklch(88.4% 0.023 84.6)13.31 AAA
亮黑color8#6e6450rgb(110 100 80)hsl(40 16% 37%)oklch(50.7% 0.033 84.5)3.23 AA 大字體
亮紅color9#da6e54rgb(218 110 84)hsl(12 64% 59%)oklch(65.9% 0.141 34.7)5.69 AA
亮綠color10#a8b84argb(168 184 74)hsl(69 44% 51%)oklch(74.8% 0.136 116.8)8.63 AAA
亮黃color11#d9a441rgb(217 164 65)hsl(39 67% 55%)oklch(75.1% 0.130 79.8)8.38 AAA
亮藍color12#8aa6c0rgb(138 166 192)hsl(209 30% 65%)oklch(71.3% 0.049 246.6)7.45 AAA
亮洋紅color13#c28aa8rgb(194 138 168)hsl(328 31% 65%)oklch(69.7% 0.079 346.0)6.73 AA
亮青color14#6fc8aergb(111 200 174)hsl(162 45% 61%)oklch(77.0% 0.095 172.7)9.47 AAA
亮白color15#f2ead6rgb(242 234 214)hsl(43 52% 89%)oklch(93.8% 0.028 88.8)15.72 AAA

關於 Mezcal

Mezcal 採用中性色調的深色背景(#13110e),預設前景色為 #e0d8c8。正文的 WCAG 對比度為 13.31:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.72:1,最低 5.69:1。

色板整體色彩飽和度適中,其中紅色為 #da6e54、綠色為 #a8b84a、藍色為 #8aa6c0、洋紅為 #c28aa8。

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

與 Mezcal 相似的配色

資料來源:Gogh (MIT OR Apache-2.0)