跳到主要內容

Prime

Prime 是一套深色終端機配色(柔和、冷色),背景色 #202030,文字色 #9090b2,對比度 5.2:1

取得設定檔
背景色
#202030
前景色
#9090b2
文字對比度
5.20:1AA
強調色對比度
8.05:1最低 2.43
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 的設定檔

16 種格式,都從同一份色板產生

Prime

存到 ~/.config/ghostty/themes/Prime,再在 config 或 config.ghostty 裏寫 theme = Prime

更多 Ghostty 配色
原始檔案
# Theme: Prime (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-hk/schemes/prime?format=ghostty

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

Prime 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#202030rgb(32 32 48)hsl(240 20% 16%)oklch(25.1% 0.030 284.0)—
前景色foreground#9090b2rgb(144 144 178)hsl(240 18% 63%)oklch(66.5% 0.050 285.0)5.20 AA
光標cursor#f8f8f0rgb(248 248 240)hsl(60 36% 96%)oklch(97.7% 0.011 106.6)15.01 AAA
光標文字cursorText#9090b2rgb(144 144 178)hsl(240 18% 63%)oklch(66.5% 0.050 285.0)5.20 AA
選取範圍selection#ee4266rgb(238 66 102)hsl(347 83% 60%)oklch(63.9% 0.207 13.5)4.28 AA 大字體
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.02 AAA
黑color0#2a2a3frgb(42 42 63)hsl(240 20% 21%)oklch(29.5% 0.038 283.8)1.15 低於 AA
紅color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)2.43 低於 AA
綠color2#9d50bargb(157 80 186)hsl(284 43% 52%)oklch(56.9% 0.172 315.9)3.27 AA 大字體
黃color3#ee4266rgb(238 66 102)hsl(347 83% 60%)oklch(63.9% 0.207 13.5)4.28 AA 大字體
藍color4#ffd23frgb(255 210 63)hsl(46 100% 62%)oklch(87.9% 0.162 90.9)11.10 AAA
洋紅color5#f3fcf0rgb(243 252 240)hsl(105 67% 96%)oklch(98.1% 0.018 137.8)15.25 AAA
青color6#ee4266rgb(238 66 102)hsl(347 83% 60%)oklch(63.9% 0.207 13.5)4.28 AA 大字體
白color7#9f9fbcrgb(159 159 188)hsl(240 18% 68%)oklch(71.2% 0.042 285.3)6.23 AA
亮黑color8#3f3f5ergb(63 63 94)hsl(240 20% 31%)oklch(38.2% 0.053 283.6)1.59 低於 AA
亮紅color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)3.54 AA 大字體
亮綠color10#c699d7rgb(198 153 215)hsl(284 44% 72%)oklch(74.6% 0.100 316.6)6.82 AA
亮黃color11#f6a0b2rgb(246 160 178)hsl(347 83% 80%)oklch(79.6% 0.104 6.1)8.08 AAA
亮藍color12#ffeaa5rgb(255 234 165)hsl(46 100% 82%)oklch(93.8% 0.090 93.2)13.40 AAA
亮洋紅color13#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.02 AAA
亮青color14#f6a0b2rgb(246 160 178)hsl(347 83% 80%)oklch(79.6% 0.104 6.1)8.08 AAA
亮白color15#bdbdd1rgb(189 189 209)hsl(240 18% 78%)oklch(80.5% 0.028 285.8)8.67 AAA

關於 Prime

Prime 採用冷色調的深色背景(#202030),預設前景色為 #9090b2。正文的 WCAG 對比度為 5.20:1(AA),12 種 ANSI 彩色槽位平均對比度 8.05:1,最低 2.43: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 相似的配色

資料來源:Rainglow (MIT)