跳到正文

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