跳到正文

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