跳到主要內容

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