跳到正文

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