跳到主要內容

Primer Dark

Primer Dark 是一套深色終端機配色(純黑、冷色),背景色 #010409,文字色 #b1bac4,對比度 10.4:1

取得設定檔
背景色
#010409
前景色
#b1bac4
文字對比度
10.45:1AAA
強調色對比度
9.00:1最低 8.08
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 Dark 的設定檔

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

Primer Dark

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

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

palette = 0=#010409
palette = 1=#ff7b72
palette = 2=#3fb950
palette = 3=#d29922
palette = 4=#58a6ff
palette = 5=#f778ba
palette = 6=#a5d6ff
palette = 7=#b1bac4
palette = 8=#484f58
palette = 9=#ff7b72
palette = 10=#3fb950
palette = 11=#d29922
palette = 12=#58a6ff
palette = 13=#f778ba
palette = 14=#a5d6ff
palette = 15=#f0f6fc
background = #010409
foreground = #b1bac4
cursor-color = #b1bac4
cursor-text = #010409
selection-background = #202830
selection-foreground = #b1bac4

Primer Dark 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#010409rgb(1 4 9)hsl(218 80% 2%)oklch(10.4% 0.019 248.3)—
前景色foreground#b1bac4rgb(177 186 196)hsl(212 14% 73%)oklch(78.5% 0.017 250.9)10.45 AAA
游標cursor#b1bac4rgb(177 186 196)hsl(212 14% 73%)oklch(78.5% 0.017 250.9)10.45 AAA
游標文字cursorText#010409rgb(1 4 9)hsl(218 80% 2%)oklch(10.4% 0.019 248.3)1.00 低於 AA
選取範圍selection#202830rgb(32 40 48)hsl(210 20% 16%)oklch(27.3% 0.019 248.5)1.38 低於 AA
選取文字selectionText#b1bac4rgb(177 186 196)hsl(212 14% 73%)oklch(78.5% 0.017 250.9)10.45 AAA
黑color0#010409rgb(1 4 9)hsl(218 80% 2%)oklch(10.4% 0.019 248.3)1.00 低於 AA
紅color1#ff7b72rgb(255 123 114)hsl(4 100% 72%)oklch(73.4% 0.163 25.8)8.14 AAA
綠color2#3fb950rgb(63 185 80)hsl(128 49% 49%)oklch(69.5% 0.181 145.6)8.08 AAA
黃color3#d29922rgb(210 153 34)hsl(41 72% 48%)oklch(72.0% 0.140 79.9)8.14 AAA
藍color4#58a6ffrgb(88 166 255)hsl(212 100% 67%)oklch(71.5% 0.152 253.3)8.13 AAA
洋紅color5#f778bargb(247 120 186)hsl(329 89% 72%)oklch(73.9% 0.171 349.7)8.17 AAA
青color6#a5d6ffrgb(165 214 255)hsl(207 100% 82%)oklch(85.6% 0.077 244.1)13.36 AAA
白color7#b1bac4rgb(177 186 196)hsl(212 14% 73%)oklch(78.5% 0.017 250.9)10.45 AAA
亮黑color8#484f58rgb(72 79 88)hsl(214 10% 31%)oklch(42.5% 0.017 254.7)2.48 低於 AA
亮紅color9#ff7b72rgb(255 123 114)hsl(4 100% 72%)oklch(73.4% 0.163 25.8)8.14 AAA
亮綠color10#3fb950rgb(63 185 80)hsl(128 49% 49%)oklch(69.5% 0.181 145.6)8.08 AAA
亮黃color11#d29922rgb(210 153 34)hsl(41 72% 48%)oklch(72.0% 0.140 79.9)8.14 AAA
亮藍color12#58a6ffrgb(88 166 255)hsl(212 100% 67%)oklch(71.5% 0.152 253.3)8.13 AAA
亮洋紅color13#f778bargb(247 120 186)hsl(329 89% 72%)oklch(73.9% 0.171 349.7)8.17 AAA
亮青color14#a5d6ffrgb(165 214 255)hsl(207 100% 82%)oklch(85.6% 0.077 244.1)13.36 AAA
亮白color15#f0f6fcrgb(240 246 252)hsl(210 67% 96%)oklch(97.0% 0.010 247.9)18.87 AAA

關於 Primer Dark

Primer Dark 採用冷色調的深色背景(#010409),預設前景色為 #b1bac4。內文的 WCAG 對比度為 10.45:1(AAA),12 種 ANSI 彩色槽位平均對比度 9.00:1,最低 8.08:1。

色票整體色彩彩度適中,其中紅色為 #ff7b72、綠色為 #3fb950、藍色為 #58a6ff、洋紅為 #f778ba。此配色歸屬 Primer 主題系列。

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

與 Primer Dark 相似的配色

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