跳到正文

Prism

Prism 是一套深色终端配色(粉彩、冷色),背景色 #0b1326,文字色 #d7e3f4,对比度 14.3:1

获取配置
背景色
#0b1326
前景色
#d7e3f4
文字对比度
14.25:1AAA
强调色对比度
10.44:1最低 7.07
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
❯

Prism 的配置文件

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

Prism

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

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

palette = 0=#060c18
palette = 1=#ff7192
palette = 2=#71e0b0
palette = 3=#fad77c
palette = 4=#47b3ff
palette = 5=#9da9ff
palette = 6=#31dcf2
palette = 7=#b6c4dc
palette = 8=#5e6f90
palette = 9=#ff96ad
palette = 10=#93ecc7
palette = 11=#fca76d
palette = 12=#77caff
palette = 13=#b8c1ff
palette = 14=#6ceafb
palette = 15=#eaf1fb
background = #0b1326
foreground = #d7e3f4
cursor-color = #56d5ff
cursor-text = #0b1326
selection-background = #1e2c49
selection-foreground = #4b5366

Prism 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#0b1326rgb(11 19 38)hsl(222 55% 10%)oklch(19.0% 0.041 265.5)—
前景色foreground#d7e3f4rgb(215 227 244)hsl(215 57% 90%)oklch(91.2% 0.027 257.0)14.25 AAA
光标cursor#56d5ffrgb(86 213 255)hsl(195 100% 67%)oklch(81.9% 0.125 223.5)10.88 AAA
光标文字cursorText#0b1326rgb(11 19 38)hsl(222 55% 10%)oklch(19.0% 0.041 265.5)1.00 低于 AA
选区selection#1e2c49rgb(30 44 73)hsl(220 42% 20%)oklch(29.6% 0.056 263.7)1.33 低于 AA
选区文字selectionText#4b5366rgb(75 83 102)hsl(222 15% 35%)oklch(44.3% 0.033 267.1)2.40 低于 AA
黑color0#060c18rgb(6 12 24)hsl(220 60% 6%)oklch(15.5% 0.028 261.7)1.06 低于 AA
红color1#ff7192rgb(255 113 146)hsl(346 100% 72%)oklch(72.8% 0.175 8.0)7.07 AAA
绿color2#71e0b0rgb(113 224 176)hsl(154 64% 66%)oklch(82.8% 0.124 163.4)11.44 AAA
黄color3#fad77crgb(250 215 124)hsl(43 93% 73%)oklch(89.0% 0.117 88.9)13.28 AAA
蓝color4#47b3ffrgb(71 179 255)hsl(205 100% 64%)oklch(73.8% 0.147 243.3)8.07 AAA
品红color5#9da9ffrgb(157 169 255)hsl(233 100% 81%)oklch(75.9% 0.124 277.0)8.41 AAA
青color6#31dcf2rgb(49 220 242)hsl(187 88% 57%)oklch(82.2% 0.133 208.4)11.14 AAA
白color7#b6c4dcrgb(182 196 220)hsl(218 35% 79%)oklch(81.7% 0.037 261.3)10.50 AAA
亮黑color8#5e6f90rgb(94 111 144)hsl(220 21% 47%)oklch(54.1% 0.056 263.4)3.66 AA 大字号
亮红color9#ff96adrgb(255 150 173)hsl(347 100% 79%)oklch(78.9% 0.128 6.3)9.00 AAA
亮绿color10#93ecc7rgb(147 236 199)hsl(155 70% 75%)oklch(87.7% 0.101 165.8)13.27 AAA
亮黄color11#fca76drgb(252 167 109)hsl(24 96% 71%)oklch(80.0% 0.125 54.3)9.59 AAA
亮蓝color12#77caffrgb(119 202 255)hsl(203 100% 73%)oklch(80.6% 0.111 238.3)10.28 AAA
亮品红color13#b8c1ffrgb(184 193 255)hsl(232 100% 86%)oklch(82.6% 0.088 277.9)10.67 AAA
亮青color14#6ceafbrgb(108 234 251)hsl(187 95% 70%)oklch(87.2% 0.114 207.3)13.04 AAA
亮白color15#eaf1fbrgb(234 241 251)hsl(215 68% 95%)oklch(95.6% 0.015 257.2)16.27 AAA

关于 Prism

Prism 采用冷色调的深色背景(#0b1326),默认前景色为 #d7e3f4。正文的 WCAG 对比度为 14.25:1(AAA),12 种 ANSI 彩色槽位平均对比度 10.44:1,最低 7.07:1。

色板整体色彩饱和度适中,其中红色为 #ff7192、绿色为 #71e0b0、蓝色为 #47b3ff、品红为 #9da9ff。

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

与 Prism 相似的配色

数据来源:iTerm2 Color Schemes (MIT)