跳到主要內容

Patina

Patina 是一套深色終端機配色,背景色 #0e1613,文字色 #dce5de,對比度 14.3:1

取得設定檔
背景色
#0e1613
前景色
#dce5de
文字對比度
14.27:1AAA
強調色對比度
8.69:1最低 4.98
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
❯

Patina 的設定檔

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

Patina

存到 ~/.config/ghostty/themes/Patina,再在 config 或 config.ghostty 裏寫 theme = Patina

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

palette = 0=#16201c
palette = 1=#d9603f
palette = 2=#9fc08c
palette = 3=#c8a24a
palette = 4=#5fc9b0
palette = 5=#d7b45a
palette = 6=#7fd0c0
palette = 7=#dce5de
palette = 8=#5c7068
palette = 9=#df785c
palette = 10=#abc89a
palette = 11=#d98e5a
palette = 12=#5fc9b0
palette = 13=#e0c36a
palette = 14=#8ed6c8
palette = 15=#ffffff
background = #0e1613
foreground = #dce5de
cursor-color = #e0c36a
cursor-text = #0e1613
selection-background = #23302b
selection-foreground = #4e5653

Patina 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#0e1613rgb(14 22 19)hsl(158 22% 7%)oklch(19.1% 0.013 169.8)—
前景色foreground#dce5dergb(220 229 222)hsl(133 15% 88%)oklch(91.3% 0.013 152.6)14.27 AAA
光標cursor#e0c36argb(224 195 106)hsl(45 66% 65%)oklch(82.4% 0.114 91.7)10.66 AAA
光標文字cursorText#0e1613rgb(14 22 19)hsl(158 22% 7%)oklch(19.1% 0.013 169.8)1.00 低於 AA
選取範圍selection#23302brgb(35 48 43)hsl(157 16% 16%)oklch(29.5% 0.020 169.4)1.34 低於 AA
選取文字selectionText#4e5653rgb(78 86 83)hsl(157 5% 32%)oklch(44.5% 0.011 171.3)2.43 低於 AA
黑color0#16201crgb(22 32 28)hsl(156 19% 11%)oklch(23.2% 0.016 168.4)1.10 低於 AA
紅color1#d9603frgb(217 96 63)hsl(13 67% 55%)oklch(63.4% 0.160 36.2)4.98 AA
綠color2#9fc08crgb(159 192 140)hsl(98 29% 65%)oklch(77.0% 0.080 134.4)9.09 AAA
黃color3#c8a24argb(200 162 74)hsl(42 53% 54%)oklch(73.0% 0.115 85.8)7.63 AAA
藍color4#5fc9b0rgb(95 201 176)hsl(166 50% 58%)oklch(76.6% 0.105 175.7)9.16 AAA
洋紅color5#d7b45argb(215 180 90)hsl(43 61% 60%)oklch(78.3% 0.116 88.3)9.25 AAA
青color6#7fd0c0rgb(127 208 192)hsl(168 46% 66%)oklch(80.1% 0.083 180.1)10.23 AAA
白color7#dce5dergb(220 229 222)hsl(133 15% 88%)oklch(91.3% 0.013 152.6)14.27 AAA
亮黑color8#5c7068rgb(92 112 104)hsl(156 10% 40%)oklch(52.6% 0.027 169.1)3.48 AA 大字體
亮紅color9#df785crgb(223 120 92)hsl(13 67% 62%)oklch(68.3% 0.135 36.1)6.11 AA
亮綠color10#abc89argb(171 200 154)hsl(98 29% 69%)oklch(79.9% 0.070 134.1)10.03 AAA
亮黃color11#d98e5argb(217 142 90)hsl(25 63% 60%)oklch(71.2% 0.114 54.5)6.97 AA
亮藍color12#5fc9b0rgb(95 201 176)hsl(166 50% 58%)oklch(76.6% 0.105 175.7)9.16 AAA
亮洋紅color13#e0c36argb(224 195 106)hsl(45 66% 65%)oklch(82.4% 0.114 91.7)10.66 AAA
亮青color14#8ed6c8rgb(142 214 200)hsl(168 47% 70%)oklch(82.5% 0.075 180.8)11.03 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.38 AAA

關於 Patina

Patina 採用中性色調的深色背景(#0e1613),預設前景色為 #dce5de。正文的 WCAG 對比度為 14.27:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.69:1,最低 4.98:1。

色板整體色彩飽和度適中,其中紅色為 #d9603f、綠色為 #9fc08c、藍色為 #5fc9b0、洋紅為 #d7b45a。該配色歸屬 Patina 主題系列。

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

與 Patina 相似的配色

資料來源:iTerm2 Color Schemes (MIT)