跳到主要內容

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