跳到正文

Mocha

Mocha 是一套深色终端配色(暖色),背景色 #3b3228,文字色 #d0c8c6,对比度 7.6:1

获取配置
背景色
#3b3228
前景色
#d0c8c6
文字对比度
7.63:1AAA
强调色对比度
5.45:1最低 3.28
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
❯

Mocha 的配置文件

16 种格式,都从同一份色板生成

Mocha

存到 ~/.config/ghostty/themes/Mocha,再在 config 或 config.ghostty 里写 theme = Mocha

更多 Ghostty 配色
原始文件
# Theme: Mocha (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/schemes/mocha?format=ghostty

palette = 0=#3b3228
palette = 1=#cb6077
palette = 2=#beb55b
palette = 3=#f4bc87
palette = 4=#8ab3b5
palette = 5=#a89bb9
palette = 6=#7bbda4
palette = 7=#d0c8c6
palette = 8=#7e705a
palette = 9=#cb6077
palette = 10=#beb55b
palette = 11=#f4bc87
palette = 12=#8ab3b5
palette = 13=#a89bb9
palette = 14=#7bbda4
palette = 15=#f5eeeb
background = #3b3228
foreground = #d0c8c6
cursor-color = #d0c8c6
cursor-text = #3b3228
selection-background = #5d544c
selection-foreground = #d0c8c6

Mocha 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#3b3228rgb(59 50 40)hsl(32 19% 19%)oklch(32.4% 0.021 69.9)—
前景色foreground#d0c8c6rgb(208 200 198)hsl(12 10% 80%)oklch(83.9% 0.009 34.3)7.63 AAA
光标cursor#d0c8c6rgb(208 200 198)hsl(12 10% 80%)oklch(83.9% 0.009 34.3)7.63 AAA
光标文字cursorText#3b3228rgb(59 50 40)hsl(32 19% 19%)oklch(32.4% 0.021 69.9)1.00 低于 AA
选区selection#5d544crgb(93 84 76)hsl(28 10% 33%)oklch(45.2% 0.017 64.0)1.70 低于 AA
选区文字selectionText#d0c8c6rgb(208 200 198)hsl(12 10% 80%)oklch(83.9% 0.009 34.3)7.63 AAA
黑color0#3b3228rgb(59 50 40)hsl(32 19% 19%)oklch(32.4% 0.021 69.9)1.00 低于 AA
红color1#cb6077rgb(203 96 119)hsl(347 51% 59%)oklch(62.5% 0.137 8.4)3.28 AA 大字号
绿color2#beb55brgb(190 181 91)hsl(55 43% 55%)oklch(76.2% 0.113 103.6)5.95 AA
黄color3#f4bc87rgb(244 188 135)hsl(29 83% 74%)oklch(83.4% 0.094 64.4)7.41 AAA
蓝color4#8ab3b5rgb(138 179 181)hsl(183 23% 63%)oklch(73.8% 0.044 200.0)5.50 AA
品红color5#a89bb9rgb(168 155 185)hsl(266 18% 67%)oklch(71.1% 0.045 304.9)4.81 AA
青color6#7bbda4rgb(123 189 164)hsl(157 33% 61%)oklch(74.7% 0.077 168.4)5.77 AA
白color7#d0c8c6rgb(208 200 198)hsl(12 10% 80%)oklch(83.9% 0.009 34.3)7.63 AAA
亮黑color8#7e705argb(126 112 90)hsl(37 17% 42%)oklch(55.2% 0.037 79.0)2.60 低于 AA
亮红color9#cb6077rgb(203 96 119)hsl(347 51% 59%)oklch(62.5% 0.137 8.4)3.28 AA 大字号
亮绿color10#beb55brgb(190 181 91)hsl(55 43% 55%)oklch(76.2% 0.113 103.6)5.95 AA
亮黄color11#f4bc87rgb(244 188 135)hsl(29 83% 74%)oklch(83.4% 0.094 64.4)7.41 AAA
亮蓝color12#8ab3b5rgb(138 179 181)hsl(183 23% 63%)oklch(73.8% 0.044 200.0)5.50 AA
亮品红color13#a89bb9rgb(168 155 185)hsl(266 18% 67%)oklch(71.1% 0.045 304.9)4.81 AA
亮青color14#7bbda4rgb(123 189 164)hsl(157 33% 61%)oklch(74.7% 0.077 168.4)5.77 AA
亮白color15#f5eeebrgb(245 238 235)hsl(18 33% 94%)oklch(95.4% 0.009 44.9)10.95 AAA

关于 Mocha

Mocha 采用暖色调的深色背景(#3b3228),默认前景色为 #d0c8c6。正文的 WCAG 对比度为 7.63:1(AAA),12 种 ANSI 彩色槽位平均对比度 5.45:1,最低 3.28:1。

色板整体色彩饱和度适中,其中红色为 #cb6077、绿色为 #beb55b、蓝色为 #8ab3b5、品红为 #a89bb9。

支持一键导出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 终端配置文件,同时提供 VS Code 与 Zed 集成终端、CSS 变量、Tailwind CSS 及 JSON 色板格式。

与 Mocha 相似的配色

数据来源:Gogh (MIT OR Apache-2.0)