跳到正文

Phd

Phd 是一套深色终端配色(冷色),背景色 #061229,文字色 #b8bbc2,对比度 9.7:1

获取配置
背景色
#061229
前景色
#b8bbc2
文字对比度
9.70:1AAA
强调色对比度
7.95:1最低 5.52
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
❯

Phd 的配置文件

16 种格式,都从同一份色板生成

Phd

存到 ~/.config/ghostty/themes/Phd,再在 config 或 config.ghostty 里写 theme = Phd

更多 Ghostty 配色
原始文件
# Theme: Phd (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/schemes/phd?format=ghostty

palette = 0=#061229
palette = 1=#d07346
palette = 2=#99bf52
palette = 3=#fbd461
palette = 4=#5299bf
palette = 5=#9989cc
palette = 6=#72b9bf
palette = 7=#b8bbc2
palette = 8=#717885
palette = 9=#d07346
palette = 10=#99bf52
palette = 11=#fbd461
palette = 12=#5299bf
palette = 13=#9989cc
palette = 14=#72b9bf
palette = 15=#ffffff
background = #061229
foreground = #b8bbc2
cursor-color = #b8bbc2
cursor-text = #061229
selection-background = #2c374c
selection-foreground = #b8bbc2

Phd 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#061229rgb(6 18 41)hsl(219 74% 9%)oklch(18.6% 0.050 261.3)—
前景色foreground#b8bbc2rgb(184 187 194)hsl(222 8% 74%)oklch(79.2% 0.010 267.3)9.70 AAA
光标cursor#b8bbc2rgb(184 187 194)hsl(222 8% 74%)oklch(79.2% 0.010 267.3)9.70 AAA
光标文字cursorText#061229rgb(6 18 41)hsl(219 74% 9%)oklch(18.6% 0.050 261.3)1.00 低于 AA
选区selection#2c374crgb(44 55 76)hsl(219 27% 24%)oklch(33.6% 0.040 263.0)1.56 低于 AA
选区文字selectionText#b8bbc2rgb(184 187 194)hsl(222 8% 74%)oklch(79.2% 0.010 267.3)9.70 AAA
黑color0#061229rgb(6 18 41)hsl(219 74% 9%)oklch(18.6% 0.050 261.3)1.00 低于 AA
红color1#d07346rgb(208 115 70)hsl(20 59% 55%)oklch(65.1% 0.131 45.4)5.52 AA
绿color2#99bf52rgb(153 191 82)hsl(81 46% 54%)oklch(75.4% 0.144 125.8)8.82 AAA
黄color3#fbd461rgb(251 212 97)hsl(45 95% 68%)oklch(88.2% 0.139 90.5)13.04 AAA
蓝color4#5299bfrgb(82 153 191)hsl(201 46% 54%)oklch(65.2% 0.091 233.9)5.92 AA
品红color5#9989ccrgb(153 137 204)hsl(254 40% 67%)oklch(67.0% 0.099 294.5)6.04 AA
青color6#72b9bfrgb(114 185 191)hsl(185 38% 60%)oklch(74.1% 0.072 202.6)8.35 AAA
白color7#b8bbc2rgb(184 187 194)hsl(222 8% 74%)oklch(79.2% 0.010 267.3)9.70 AAA
亮黑color8#717885rgb(113 120 133)hsl(219 8% 48%)oklch(57.1% 0.022 262.9)4.20 AA 大字号
亮红color9#d07346rgb(208 115 70)hsl(20 59% 55%)oklch(65.1% 0.131 45.4)5.52 AA
亮绿color10#99bf52rgb(153 191 82)hsl(81 46% 54%)oklch(75.4% 0.144 125.8)8.82 AAA
亮黄color11#fbd461rgb(251 212 97)hsl(45 95% 68%)oklch(88.2% 0.139 90.5)13.04 AAA
亮蓝color12#5299bfrgb(82 153 191)hsl(201 46% 54%)oklch(65.2% 0.091 233.9)5.92 AA
亮品红color13#9989ccrgb(153 137 204)hsl(254 40% 67%)oklch(67.0% 0.099 294.5)6.04 AA
亮青color14#72b9bfrgb(114 185 191)hsl(185 38% 60%)oklch(74.1% 0.072 202.6)8.35 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.65 AAA

关于 Phd

Phd 采用冷色调的深色背景(#061229),默认前景色为 #b8bbc2。正文的 WCAG 对比度为 9.70:1(AAA),12 种 ANSI 彩色槽位平均对比度 7.95:1,最低 5.52:1。

色板整体色彩饱和度适中,其中红色为 #d07346、绿色为 #99bf52、蓝色为 #5299bf、品红为 #9989cc。

支持一键导出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 终端配置文件,同时提供 VS Code 与 Zed 集成终端、CSS 变量、Tailwind CSS 及 JSON 色板格式。

与 Phd 相似的配色

数据来源:Gogh (MIT OR Apache-2.0)