跳到主要內容

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