跳到正文

Prime Contrast

Prime Contrast 是一套深色终端配色(纯黑、柔和),背景色 #0b0b11,文字色 #9090b2,对比度 6.4:1

获取配置
背景色
#0b0b11
前景色
#9090b2
文字对比度
6.37:1AA
强调色对比度
9.85:1最低 2.98
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
❯

Prime Contrast 的配置文件

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

Prime Contrast

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

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

palette = 0=#151520
palette = 1=#ba0e2e
palette = 2=#9d50ba
palette = 3=#ee4266
palette = 4=#ffd23f
palette = 5=#f3fcf0
palette = 6=#ee4266
palette = 7=#9f9fbc
palette = 8=#29293f
palette = 9=#e61f44
palette = 10=#c699d7
palette = 11=#f6a0b2
palette = 12=#ffeaa5
palette = 13=#ffffff
palette = 14=#f6a0b2
palette = 15=#bdbdd1
background = #0b0b11
foreground = #9090b2
cursor-color = #f8f8f0
cursor-text = #9090b2
selection-background = #ee4266
selection-foreground = #ffffff

Prime Contrast 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#0b0b11rgb(11 11 17)hsl(240 21% 5%)oklch(15.3% 0.013 284.8)—
前景色foreground#9090b2rgb(144 144 178)hsl(240 18% 63%)oklch(66.5% 0.050 285.0)6.37 AA
光标cursor#f8f8f0rgb(248 248 240)hsl(60 36% 96%)oklch(97.7% 0.011 106.6)18.39 AAA
光标文字cursorText#9090b2rgb(144 144 178)hsl(240 18% 63%)oklch(66.5% 0.050 285.0)6.37 AA
选区selection#ee4266rgb(238 66 102)hsl(347 83% 60%)oklch(63.9% 0.207 13.5)5.24 AA
选区文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)19.62 AAA
黑color0#151520rgb(21 21 32)hsl(240 21% 10%)oklch(20.1% 0.022 284.3)1.08 低于 AA
红color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)2.98 低于 AA
绿color2#9d50bargb(157 80 186)hsl(284 43% 52%)oklch(56.9% 0.172 315.9)4.01 AA 大字号
黄color3#ee4266rgb(238 66 102)hsl(347 83% 60%)oklch(63.9% 0.207 13.5)5.24 AA
蓝color4#ffd23frgb(255 210 63)hsl(46 100% 62%)oklch(87.9% 0.162 90.9)13.59 AAA
品红color5#f3fcf0rgb(243 252 240)hsl(105 67% 96%)oklch(98.1% 0.018 137.8)18.68 AAA
青color6#ee4266rgb(238 66 102)hsl(347 83% 60%)oklch(63.9% 0.207 13.5)5.24 AA
白color7#9f9fbcrgb(159 159 188)hsl(240 18% 68%)oklch(71.2% 0.042 285.3)7.62 AAA
亮黑color8#29293frgb(41 41 63)hsl(240 21% 20%)oklch(29.1% 0.040 283.7)1.39 低于 AA
亮红color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)4.34 AA 大字号
亮绿color10#c699d7rgb(198 153 215)hsl(284 44% 72%)oklch(74.6% 0.100 316.6)8.35 AAA
亮黄color11#f6a0b2rgb(246 160 178)hsl(347 83% 80%)oklch(79.6% 0.104 6.1)9.90 AAA
亮蓝color12#ffeaa5rgb(255 234 165)hsl(46 100% 82%)oklch(93.8% 0.090 93.2)16.41 AAA
亮品红color13#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)19.62 AAA
亮青color14#f6a0b2rgb(246 160 178)hsl(347 83% 80%)oklch(79.6% 0.104 6.1)9.90 AAA
亮白color15#bdbdd1rgb(189 189 209)hsl(240 18% 78%)oklch(80.5% 0.028 285.8)10.62 AAA

关于 Prime Contrast

Prime Contrast 采用冷色调的深色背景(#0b0b11),默认前景色为 #9090b2。正文的 WCAG 对比度为 6.37:1(AA),12 种 ANSI 彩色槽位平均对比度 9.85:1,最低 2.98:1。

色板整体色彩饱和度适中,其中红色为 #ba0e2e、绿色为 #9d50ba、蓝色为 #ffd23f、品红为 #f3fcf0。

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

与 Prime Contrast 相似的配色

数据来源:Rainglow (MIT)