跳到主要內容

Catppuccin Mocha

Catppuccin Mocha 是一套深色終端機配色(粉彩、冷色),背景色 #1e1e2e,文字色 #cdd6f4,對比度 11.3:1

取得設定檔
背景色
#1e1e2e
前景色
#cdd6f4
文字對比度
11.34:1AAA
強調色對比度
10.37:1最低 7.08
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
❯

Catppuccin Mocha 的設定檔

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

Catppuccin Mocha

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

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

palette = 0=#45475a
palette = 1=#f38ba8
palette = 2=#a6e3a1
palette = 3=#f9e2af
palette = 4=#89b4fa
palette = 5=#f5c2e7
palette = 6=#94e2d5
palette = 7=#bac2de
palette = 8=#585b70
palette = 9=#f7aec2
palette = 10=#c2ecbf
palette = 11=#fcd682
palette = 12=#aeccfc
palette = 13=#f398da
palette = 14=#b1eae1
palette = 15=#a6adc8
background = #1e1e2e
foreground = #cdd6f4
cursor-color = #f5e0dc
cursor-text = #1e1e2e
selection-background = #f5e0dc
selection-foreground = #1e1e2e

Catppuccin Mocha 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1e1e2ergb(30 30 46)hsl(240 21% 15%)oklch(24.3% 0.030 283.9)—
前景色foreground#cdd6f4rgb(205 214 244)hsl(226 64% 88%)oklch(87.9% 0.043 272.3)11.34 AAA
光標cursor#f5e0dcrgb(245 224 220)hsl(10 56% 91%)oklch(92.3% 0.024 30.5)12.95 AAA
光標文字cursorText#1e1e2ergb(30 30 46)hsl(240 21% 15%)oklch(24.3% 0.030 283.9)1.00 低於 AA
選取範圍selection#f5e0dcrgb(245 224 220)hsl(10 56% 91%)oklch(92.3% 0.024 30.5)12.95 AAA
選取文字selectionText#1e1e2ergb(30 30 46)hsl(240 21% 15%)oklch(24.3% 0.030 283.9)1.00 低於 AA
黑color0#45475argb(69 71 90)hsl(234 13% 31%)oklch(40.4% 0.032 280.2)1.80 低於 AA
紅color1#f38ba8rgb(243 139 168)hsl(343 81% 75%)oklch(75.6% 0.130 2.8)7.08 AAA
綠color2#a6e3a1rgb(166 227 161)hsl(115 54% 76%)oklch(85.8% 0.109 142.7)11.03 AAA
黃color3#f9e2afrgb(249 226 175)hsl(41 86% 83%)oklch(91.9% 0.070 86.5)12.91 AAA
藍color4#89b4fargb(137 180 250)hsl(217 92% 76%)oklch(76.6% 0.111 259.9)7.79 AAA
洋紅color5#f5c2e7rgb(245 194 231)hsl(316 72% 86%)oklch(87.0% 0.075 336.3)10.74 AAA
青color6#94e2d5rgb(148 226 213)hsl(170 57% 73%)oklch(85.8% 0.079 182.7)11.01 AAA
白color7#bac2dergb(186 194 222)hsl(227 35% 80%)oklch(81.7% 0.040 272.9)9.26 AAA
亮黑color8#585b70rgb(88 91 112)hsl(233 12% 39%)oklch(47.7% 0.034 278.6)2.46 低於 AA
亮紅color9#f7aec2rgb(247 174 194)hsl(344 82% 83%)oklch(82.5% 0.089 1.3)9.21 AAA
亮綠color10#c2ecbfrgb(194 236 191)hsl(116 54% 84%)oklch(90.2% 0.075 143.2)12.53 AAA
亮黃color11#fcd682rgb(252 214 130)hsl(41 95% 75%)oklch(89.1% 0.111 85.8)11.78 AAA
亮藍color12#aeccfcrgb(174 204 252)hsl(217 93% 84%)oklch(84.0% 0.075 259.7)10.03 AAA
亮洋紅color13#f398dargb(243 152 218)hsl(316 79% 77%)oklch(79.2% 0.136 337.7)8.06 AAA
亮青color14#b1eae1rgb(177 234 225)hsl(171 58% 81%)oklch(89.6% 0.059 184.2)12.28 AAA
亮白color15#a6adc8rgb(166 173 200)hsl(228 24% 72%)oklch(75.1% 0.040 273.9)7.37 AAA

關於 Catppuccin Mocha

Catppuccin Mocha 採用冷色調的深色背景(#1e1e2e),預設前景色為 #cdd6f4。正文的 WCAG 對比度為 11.34:1(AAA),12 種 ANSI 彩色槽位平均對比度 10.37:1,最低 7.08:1。

色板整體色彩飽和度適中,其中紅色為 #f38ba8、綠色為 #a6e3a1、藍色為 #89b4fa、洋紅為 #f5c2e7。該配色歸屬 Catppuccin 主題系列。

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

與 Catppuccin Mocha 相似的配色

資料來源:iTerm2 Color Schemes (MIT)