跳到正文

Mellow Contrast

Mellow Contrast 是一套深色终端配色(纯黑、高对比度),背景色 #0b0a09,文字色 #f8f8f2,对比度 18.6:1

获取配置
背景色
#0b0a09
前景色
#f8f8f2
文字对比度
18.56:1AAA
强调色对比度
10.03:1最低 3.01
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
❯

Mellow Contrast 的配置文件

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

Mellow Contrast

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

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

palette = 0=#191714
palette = 1=#ba0e2e
palette = 2=#f2bc79
palette = 3=#1f8181
palette = 4=#f28972
palette = 5=#f2bc79
palette = 6=#f55d79
palette = 7=#ffffff
palette = 8=#35302b
palette = 9=#e61f44
palette = 10=#fbead6
palette = 11=#37cfcf
palette = 12=#fbd7cf
palette = 13=#fbead6
palette = 14=#fbbdc8
palette = 15=#ffffff
background = #0b0a09
foreground = #f8f8f2
cursor-color = #f8f8f0
cursor-text = #f8f8f2
selection-background = #f55d79
selection-foreground = #ffffff

Mellow Contrast 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#0b0a09rgb(11 10 9)hsl(30 10% 4%)oklch(14.6% 0.003 68.6)—
前景色foreground#f8f8f2rgb(248 248 242)hsl(60 30% 96%)oklch(97.7% 0.008 106.5)18.56 AAA
光标cursor#f8f8f0rgb(248 248 240)hsl(60 36% 96%)oklch(97.7% 0.011 106.6)18.53 AAA
光标文字cursorText#f8f8f2rgb(248 248 242)hsl(60 30% 96%)oklch(97.7% 0.008 106.5)18.56 AAA
选区selection#f55d79rgb(245 93 121)hsl(349 88% 66%)oklch(68.3% 0.186 12.4)6.33 AA
选区文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)19.78 AAA
黑color0#191714rgb(25 23 20)hsl(36 11% 9%)oklch(20.6% 0.007 78.2)1.11 低于 AA
红color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)3.01 AA 大字号
绿color2#f2bc79rgb(242 188 121)hsl(33 82% 71%)oklch(83.0% 0.105 71.5)11.53 AAA
黄color3#1f8181rgb(31 129 129)hsl(180 61% 31%)oklch(55.0% 0.086 195.0)4.25 AA 大字号
蓝color4#f28972rgb(242 137 114)hsl(11 83% 70%)oklch(73.8% 0.133 33.4)8.10 AAA
品红color5#f2bc79rgb(242 188 121)hsl(33 82% 71%)oklch(83.0% 0.105 71.5)11.53 AAA
青color6#f55d79rgb(245 93 121)hsl(349 88% 66%)oklch(68.3% 0.186 12.4)6.33 AA
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)19.78 AAA
亮黑color8#35302brgb(53 48 43)hsl(30 10% 19%)oklch(31.3% 0.011 67.4)1.52 低于 AA
亮红color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)4.37 AA 大字号
亮绿color10#fbead6rgb(251 234 214)hsl(32 82% 91%)oklch(94.5% 0.032 71.9)16.81 AAA
亮黄color11#37cfcfrgb(55 207 207)hsl(180 61% 51%)oklch(77.9% 0.122 194.9)10.35 AAA
亮蓝color12#fbd7cfrgb(251 215 207)hsl(11 85% 90%)oklch(90.7% 0.042 32.6)14.81 AAA
亮品红color13#fbead6rgb(251 234 214)hsl(32 82% 91%)oklch(94.5% 0.032 71.9)16.81 AAA
亮青color14#fbbdc8rgb(251 189 200)hsl(349 89% 86%)oklch(85.8% 0.073 6.9)12.45 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)19.78 AAA

关于 Mellow Contrast

Mellow Contrast 采用中性色调的深色背景(#0b0a09),默认前景色为 #f8f8f2。正文的 WCAG 对比度为 18.56:1(AAA),12 种 ANSI 彩色槽位平均对比度 10.03:1,最低 3.01:1。

色板整体色彩饱和度适中,其中红色为 #ba0e2e、绿色为 #f2bc79、蓝色为 #f28972、品红为 #f2bc79。

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

与 Mellow Contrast 相似的配色

数据来源:Rainglow (MIT)