跳到主要內容

Prime Light

Prime Light 是一套淺色終端機配色(柔和),背景色 #ffffff,文字色 #3d3d5b,對比度 10.4:1

取得設定檔
背景色
#ffffff
前景色
#3d3d5b
文字對比度
10.41:1AAA
強調色對比度
3.26:1最低 1.20
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 Light 的設定檔

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

Prime Light

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

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

palette = 0=#ffffff
palette = 1=#ba0e2e
palette = 2=#9d50ba
palette = 3=#ee4266
palette = 4=#ffd23f
palette = 5=#727c6f
palette = 6=#ee4266
palette = 7=#47476a
palette = 8=#ffffff
palette = 9=#e61f44
palette = 10=#c699d7
palette = 11=#f6a0b2
palette = 12=#ffeaa5
palette = 13=#a6ada4
palette = 14=#f6a0b2
palette = 15=#5c5c89
background = #ffffff
foreground = #3d3d5b
cursor-color = #333333
cursor-text = #3d3d5b
selection-background = #ee4266
selection-foreground = #ffffff

Prime Light 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)—
前景色foreground#3d3d5brgb(61 61 91)hsl(240 20% 30%)oklch(37.3% 0.051 283.7)10.41 AAA
光標cursor#333333rgb(51 51 51)hsl(0 0% 20%)oklch(32.1% 0.000 0)12.63 AAA
光標文字cursorText#3d3d5brgb(61 61 91)hsl(240 20% 30%)oklch(37.3% 0.051 283.7)10.41 AAA
選取範圍selection#ee4266rgb(238 66 102)hsl(347 83% 60%)oklch(63.9% 0.207 13.5)3.75 AA 大字體
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)1.00 低於 AA
黑color0#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)1.00 低於 AA
紅color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)6.58 AA
綠color2#9d50bargb(157 80 186)hsl(284 43% 52%)oklch(56.9% 0.172 315.9)4.89 AA
黃color3#ee4266rgb(238 66 102)hsl(347 83% 60%)oklch(63.9% 0.207 13.5)3.75 AA 大字體
藍color4#ffd23frgb(255 210 63)hsl(46 100% 62%)oklch(87.9% 0.162 90.9)1.44 低於 AA
洋紅color5#727c6frgb(114 124 111)hsl(106 6% 46%)oklch(57.4% 0.023 138.5)4.35 AA 大字體
青color6#ee4266rgb(238 66 102)hsl(347 83% 60%)oklch(63.9% 0.207 13.5)3.75 AA 大字體
白color7#47476argb(71 71 106)hsl(240 20% 35%)oklch(41.3% 0.058 283.6)8.83 AAA
亮黑color8#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)1.00 低於 AA
亮紅color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)4.52 AA
亮綠color10#c699d7rgb(198 153 215)hsl(284 44% 72%)oklch(74.6% 0.100 316.6)2.35 低於 AA
亮黃color11#f6a0b2rgb(246 160 178)hsl(347 83% 80%)oklch(79.6% 0.104 6.1)1.98 低於 AA
亮藍color12#ffeaa5rgb(255 234 165)hsl(46 100% 82%)oklch(93.8% 0.090 93.2)1.20 低於 AA
亮洋紅color13#a6ada4rgb(166 173 164)hsl(107 5% 66%)oklch(73.9% 0.015 138.7)2.30 低於 AA
亮青color14#f6a0b2rgb(246 160 178)hsl(347 83% 80%)oklch(79.6% 0.104 6.1)1.98 低於 AA
亮白color15#5c5c89rgb(92 92 137)hsl(240 20% 45%)oklch(49.4% 0.071 283.5)6.27 AA

關於 Prime Light

Prime Light 採用中性色調的淺色背景(#ffffff),預設前景色為 #3d3d5b。正文的 WCAG 對比度為 10.41:1(AAA),12 種 ANSI 彩色槽位平均對比度 3.26:1,最低 1.20:1。

色板整體色彩飽和度適中,其中紅色為 #ba0e2e、綠色為 #9d50ba、藍色為 #ffd23f、洋紅為 #727c6f。

支援一鍵匯出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 終端機設定檔,同時提供 VS Code 與 Zed 整合終端機、CSS 變數、Tailwind CSS 及 JSON 色板格式。

與 Prime Light 相似的配色

資料來源:Rainglow (MIT)