跳到主要內容

Porcelain

Porcelain 是一套淺色終端機配色(鮮豔),背景色 #fbfbfd,文字色 #2a2e37,對比度 13.2:1

取得設定檔
背景色
#fbfbfd
前景色
#2a2e37
文字對比度
13.16:1AAA
強調色對比度
5.96:1最低 4.58
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
❯

Porcelain 的設定檔

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

Porcelain

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

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

palette = 0=#2a2e37
palette = 1=#c60018
palette = 2=#157424
palette = 3=#855700
palette = 4=#004cc8
palette = 5=#761bc3
palette = 6=#006873
palette = 7=#5a6170
palette = 8=#828896
palette = 9=#d60027
palette = 10=#1b842d
palette = 11=#af2700
palette = 12=#005bdb
palette = 13=#862ad2
palette = 14=#007f8f
palette = 15=#1b1e25
background = #fbfbfd
foreground = #2a2e37
cursor-color = #0054d1
cursor-text = #fbfbfd
selection-background = #dce6f7
selection-foreground = #aeaeb0

Porcelain 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#fbfbfdrgb(251 251 253)hsl(240 33% 99%)oklch(98.9% 0.003 286.4)—
前景色foreground#2a2e37rgb(42 46 55)hsl(222 13% 19%)oklch(30.1% 0.017 266.4)13.16 AAA
游標cursor#0054d1rgb(0 84 209)hsl(216 100% 41%)oklch(48.9% 0.205 260.5)6.37 AA
游標文字cursorText#fbfbfdrgb(251 251 253)hsl(240 33% 99%)oklch(98.9% 0.003 286.4)1.00 低於 AA
選取範圍selection#dce6f7rgb(220 230 247)hsl(218 63% 92%)oklch(92.2% 0.026 261.1)1.22 低於 AA
選取文字selectionText#aeaeb0rgb(174 174 176)hsl(240 1% 69%)oklch(75.1% 0.003 286.3)2.14 低於 AA
黑color0#2a2e37rgb(42 46 55)hsl(222 13% 19%)oklch(30.1% 0.017 266.4)13.16 AAA
紅color1#c60018rgb(198 0 24)hsl(353 100% 39%)oklch(52.0% 0.212 26.4)5.95 AA
綠color2#157424rgb(21 116 36)hsl(129 69% 27%)oklch(48.9% 0.143 145.0)5.71 AA
黃color3#855700rgb(133 87 0)hsl(39 100% 26%)oklch(49.5% 0.105 73.7)6.05 AA
藍color4#004cc8rgb(0 76 200)hsl(217 100% 39%)oklch(46.5% 0.203 261.2)7.09 AAA
洋紅color5#761bc3rgb(118 27 195)hsl(273 76% 44%)oklch(47.1% 0.230 301.8)7.48 AAA
青color6#006873rgb(0 104 115)hsl(186 100% 23%)oklch(47.3% 0.081 207.5)6.30 AA
白color7#5a6170rgb(90 97 112)hsl(221 11% 40%)oklch(49.2% 0.026 265.6)6.01 AA
亮黑color8#828896rgb(130 136 150)hsl(222 9% 55%)oklch(62.6% 0.022 267.2)3.44 AA 大字級
亮紅color9#d60027rgb(214 0 39)hsl(349 100% 42%)oklch(55.2% 0.223 24.1)5.23 AA
亮綠color10#1b842drgb(27 132 45)hsl(130 66% 31%)oklch(53.8% 0.155 145.4)4.63 AA
亮黃color11#af2700rgb(175 39 0)hsl(13 100% 34%)oklch(49.3% 0.177 34.1)6.53 AA
亮藍color12#005bdbrgb(0 91 219)hsl(215 100% 43%)oklch(51.1% 0.209 260.1)5.77 AA
亮洋紅color13#862ad2rgb(134 42 210)hsl(273 67% 49%)oklch(51.5% 0.236 303.5)6.20 AA
亮青color14#007f8frgb(0 127 143)hsl(187 100% 28%)oklch(54.7% 0.095 210.1)4.58 AA
亮白color15#1b1e25rgb(27 30 37)hsl(222 16% 13%)oklch(23.5% 0.014 267.0)16.14 AAA

關於 Porcelain

Porcelain 採用中性色調的淺色背景(#fbfbfd),預設前景色為 #2a2e37。內文的 WCAG 對比度為 13.16:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.96:1,最低 4.58:1。

色票整體色彩彩度較高,其中紅色為 #c60018、綠色為 #157424、藍色為 #004cc8、洋紅為 #761bc3。

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

與 Porcelain 相似的配色

資料來源:iTerm2 Color Schemes (MIT)