跳到主要內容

Cupcake

Cupcake 是一套淺色終端機配色(柔和、低飽和),背景色 #fbf1f2,文字色 #8b8198,對比度 3.3:1

取得設定檔
背景色
#fbf1f2
前景色
#8b8198
文字對比度
3.33:1AA 大字體
強調色對比度
2.33:1最低 1.80
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
❯

Cupcake 的設定檔

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

Cupcake

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

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

palette = 0=#fbf1f2
palette = 1=#d57e85
palette = 2=#a3b367
palette = 3=#dcb16c
palette = 4=#7297b9
palette = 5=#bb99b4
palette = 6=#69a9a7
palette = 7=#8b8198
palette = 8=#bfb9c6
palette = 9=#d57e85
palette = 10=#a3b367
palette = 11=#dcb16c
palette = 12=#7297b9
palette = 13=#bb99b4
palette = 14=#69a9a7
palette = 15=#585062
background = #fbf1f2
foreground = #8b8198
cursor-color = #8b8198
cursor-text = #fbf1f2
selection-background = #ded4db
selection-foreground = #8b8198

Cupcake 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#fbf1f2rgb(251 241 242)hsl(354 56% 96%)oklch(96.6% 0.011 10.3)—
前景色foreground#8b8198rgb(139 129 152)hsl(266 10% 55%)oklch(62.0% 0.036 305.0)3.33 AA 大字體
光標cursor#8b8198rgb(139 129 152)hsl(266 10% 55%)oklch(62.0% 0.036 305.0)3.33 AA 大字體
光標文字cursorText#fbf1f2rgb(251 241 242)hsl(354 56% 96%)oklch(96.6% 0.011 10.3)1.00 低於 AA
選取範圍selection#ded4dbrgb(222 212 219)hsl(318 13% 85%)oklch(88.0% 0.014 336.2)1.30 低於 AA
選取文字selectionText#8b8198rgb(139 129 152)hsl(266 10% 55%)oklch(62.0% 0.036 305.0)3.33 AA 大字體
黑color0#fbf1f2rgb(251 241 242)hsl(354 56% 96%)oklch(96.6% 0.011 10.3)1.00 低於 AA
紅color1#d57e85rgb(213 126 133)hsl(355 51% 66%)oklch(68.8% 0.108 15.1)2.65 低於 AA
綠color2#a3b367rgb(163 179 103)hsl(73 33% 55%)oklch(73.7% 0.102 118.7)2.06 低於 AA
黃color3#dcb16crgb(220 177 108)hsl(37 62% 64%)oklch(78.4% 0.100 78.3)1.80 低於 AA
藍color4#7297b9rgb(114 151 185)hsl(209 34% 59%)oklch(66.2% 0.065 246.7)2.77 低於 AA
洋紅color5#bb99b4rgb(187 153 180)hsl(312 20% 67%)oklch(72.2% 0.055 333.3)2.28 低於 AA
青color6#69a9a7rgb(105 169 167)hsl(178 27% 54%)oklch(69.1% 0.066 193.2)2.42 低於 AA
白color7#8b8198rgb(139 129 152)hsl(266 10% 55%)oklch(62.0% 0.036 305.0)3.33 AA 大字體
亮黑color8#bfb9c6rgb(191 185 198)hsl(268 10% 75%)oklch(79.5% 0.019 306.6)1.73 低於 AA
亮紅color9#d57e85rgb(213 126 133)hsl(355 51% 66%)oklch(68.8% 0.108 15.1)2.65 低於 AA
亮綠color10#a3b367rgb(163 179 103)hsl(73 33% 55%)oklch(73.7% 0.102 118.7)2.06 低於 AA
亮黃color11#dcb16crgb(220 177 108)hsl(37 62% 64%)oklch(78.4% 0.100 78.3)1.80 低於 AA
亮藍color12#7297b9rgb(114 151 185)hsl(209 34% 59%)oklch(66.2% 0.065 246.7)2.77 低於 AA
亮洋紅color13#bb99b4rgb(187 153 180)hsl(312 20% 67%)oklch(72.2% 0.055 333.3)2.28 低於 AA
亮青color14#69a9a7rgb(105 169 167)hsl(178 27% 54%)oklch(69.1% 0.066 193.2)2.42 低於 AA
亮白color15#585062rgb(88 80 98)hsl(267 10% 35%)oklch(44.6% 0.031 305.3)6.93 AA

關於 Cupcake

Cupcake 採用中性色調的淺色背景(#fbf1f2),預設前景色為 #8b8198。正文的 WCAG 對比度為 3.33:1(AA 大字體),12 種 ANSI 彩色槽位平均對比度 2.33:1,最低 1.80:1。

色板整體色彩飽和度偏低,其中紅色為 #d57e85、綠色為 #a3b367、藍色為 #7297b9、洋紅為 #bb99b4。

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

與 Cupcake 相似的配色

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