跳到主要內容

Primer Light

Primer Light 是一套淺色終端機配色(柔和、鮮豔),背景色 #fafbfc,文字色 #2f363d,對比度 11.8:1

取得設定檔
背景色
#fafbfc
前景色
#2f363d
文字對比度
11.81:1AAA
強調色對比度
3.23:1最低 1.38
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
❯

Primer Light 的設定檔

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

Primer Light

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

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

palette = 0=#fafbfc
palette = 1=#d73a49
palette = 2=#28a745
palette = 3=#ffd33d
palette = 4=#0366d6
palette = 5=#ea4aaa
palette = 6=#79b8ff
palette = 7=#2f363d
palette = 8=#959da5
palette = 9=#d73a49
palette = 10=#28a745
palette = 11=#ffd33d
palette = 12=#0366d6
palette = 13=#ea4aaa
palette = 14=#79b8ff
palette = 15=#1b1f23
background = #fafbfc
foreground = #2f363d
cursor-color = #2f363d
cursor-text = #fafbfc
selection-background = #c2c5c8
selection-foreground = #2f363d

Primer Light 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#fafbfcrgb(250 251 252)hsl(210 25% 98%)oklch(98.8% 0.002 247.8)—
前景色foreground#2f363drgb(47 54 61)hsl(210 13% 21%)oklch(32.9% 0.016 248.3)11.81 AAA
游標cursor#2f363drgb(47 54 61)hsl(210 13% 21%)oklch(32.9% 0.016 248.3)11.81 AAA
游標文字cursorText#fafbfcrgb(250 251 252)hsl(210 25% 98%)oklch(98.8% 0.002 247.8)1.00 低於 AA
選取範圍selection#c2c5c8rgb(194 197 200)hsl(210 5% 77%)oklch(82.2% 0.005 247.9)1.67 低於 AA
選取文字selectionText#2f363drgb(47 54 61)hsl(210 13% 21%)oklch(32.9% 0.016 248.3)11.81 AAA
黑color0#fafbfcrgb(250 251 252)hsl(210 25% 98%)oklch(98.8% 0.002 247.8)1.00 低於 AA
紅color1#d73a49rgb(215 58 73)hsl(354 66% 54%)oklch(58.8% 0.193 20.5)4.42 AA 大字級
綠color2#28a745rgb(40 167 69)hsl(134 61% 41%)oklch(64.0% 0.175 146.7)3.02 AA 大字級
黃color3#ffd33drgb(255 211 61)hsl(46 100% 62%)oklch(88.1% 0.163 91.6)1.38 低於 AA
藍color4#0366d6rgb(3 102 214)hsl(212 97% 43%)oklch(53.0% 0.190 257.4)5.23 AA
洋紅color5#ea4aaargb(234 74 170)hsl(324 79% 60%)oklch(66.1% 0.216 347.7)3.35 AA 大字級
青color6#79b8ffrgb(121 184 255)hsl(212 100% 74%)oklch(76.9% 0.121 252.3)2.00 低於 AA
白color7#2f363drgb(47 54 61)hsl(210 13% 21%)oklch(32.9% 0.016 248.3)11.81 AAA
亮黑color8#959da5rgb(149 157 165)hsl(210 8% 62%)oklch(69.2% 0.015 248.0)2.65 低於 AA
亮紅color9#d73a49rgb(215 58 73)hsl(354 66% 54%)oklch(58.8% 0.193 20.5)4.42 AA 大字級
亮綠color10#28a745rgb(40 167 69)hsl(134 61% 41%)oklch(64.0% 0.175 146.7)3.02 AA 大字級
亮黃color11#ffd33drgb(255 211 61)hsl(46 100% 62%)oklch(88.1% 0.163 91.6)1.38 低於 AA
亮藍color12#0366d6rgb(3 102 214)hsl(212 97% 43%)oklch(53.0% 0.190 257.4)5.23 AA
亮洋紅color13#ea4aaargb(234 74 170)hsl(324 79% 60%)oklch(66.1% 0.216 347.7)3.35 AA 大字級
亮青color14#79b8ffrgb(121 184 255)hsl(212 100% 74%)oklch(76.9% 0.121 252.3)2.00 低於 AA
亮白color15#1b1f23rgb(27 31 35)hsl(210 13% 12%)oklch(23.7% 0.010 248.2)16.00 AAA

關於 Primer Light

Primer Light 採用中性色調的淺色背景(#fafbfc),預設前景色為 #2f363d。內文的 WCAG 對比度為 11.81:1(AAA),12 種 ANSI 彩色槽位平均對比度 3.23:1,最低 1.38:1。

色票整體色彩彩度較高,其中紅色為 #d73a49、綠色為 #28a745、藍色為 #0366d6、洋紅為 #ea4aaa。此配色歸屬 Primer 主題系列。

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

與 Primer Light 相似的配色

資料來源:Gogh (MIT OR Apache-2.0)