跳到正文

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/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)