跳到正文

Gotham

Gotham 是一套深色终端配色(冷色),背景色 #0a0f14,文字色 #98d1ce,对比度 11.3:1

获取配置
背景色
#0a0f14
前景色
#98d1ce
文字对比度
11.31:1AAA
强调色对比度
4.32:1最低 1.14
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
❯

Gotham 的配置文件

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

Gotham

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

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

palette = 0=#0a0f14
palette = 1=#c33027
palette = 2=#26a98b
palette = 3=#edb54b
palette = 4=#195465
palette = 5=#4e5165
palette = 6=#33859d
palette = 7=#98d1ce
palette = 8=#10151b
palette = 9=#d26939
palette = 10=#081f2d
palette = 11=#245361
palette = 12=#093748
palette = 13=#888ba5
palette = 14=#599caa
palette = 15=#d3ebe9
background = #0a0f14
foreground = #98d1ce
cursor-color = #98d1ce
cursor-text = #0a0f14
selection-background = #28383c
selection-foreground = #98d1ce

Gotham 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#0a0f14rgb(10 15 20)hsl(210 33% 6%)oklch(16.6% 0.013 248.6)—
前景色foreground#98d1cergb(152 209 206)hsl(177 38% 71%)oklch(82.1% 0.059 192.0)11.31 AAA
光标cursor#98d1cergb(152 209 206)hsl(177 38% 71%)oklch(82.1% 0.059 192.0)11.31 AAA
光标文字cursorText#0a0f14rgb(10 15 20)hsl(210 33% 6%)oklch(16.6% 0.013 248.6)1.00 低于 AA
选区selection#28383crgb(40 56 60)hsl(192 20% 20%)oklch(32.8% 0.022 214.8)1.58 低于 AA
选区文字selectionText#98d1cergb(152 209 206)hsl(177 38% 71%)oklch(82.1% 0.059 192.0)11.31 AAA
黑color0#0a0f14rgb(10 15 20)hsl(210 33% 6%)oklch(16.6% 0.013 248.6)1.00 低于 AA
红color1#c33027rgb(195 48 39)hsl(3 67% 46%)oklch(54.0% 0.185 28.5)3.46 AA 大字号
绿color2#26a98brgb(38 169 139)hsl(166 63% 41%)oklch(65.9% 0.118 172.9)6.53 AA
黄color3#edb54brgb(237 181 75)hsl(39 82% 61%)oklch(80.6% 0.137 80.4)10.37 AAA
蓝color4#195465rgb(25 84 101)hsl(193 60% 25%)oklch(41.6% 0.065 221.0)2.29 低于 AA
品红color5#4e5165rgb(78 81 101)hsl(232 13% 35%)oklch(44.0% 0.033 278.3)2.46 低于 AA
青color6#33859drgb(51 133 157)hsl(194 51% 41%)oklch(57.7% 0.086 220.7)4.57 AA
白color7#98d1cergb(152 209 206)hsl(177 38% 71%)oklch(82.1% 0.059 192.0)11.31 AAA
亮黑color8#10151brgb(16 21 27)hsl(213 26% 8%)oklch(19.3% 0.014 253.2)1.05 低于 AA
亮红color9#d26939rgb(210 105 57)hsl(19 63% 52%)oklch(63.7% 0.146 43.6)5.33 AA
亮绿color10#081f2drgb(8 31 45)hsl(203 70% 10%)oklch(22.9% 0.040 238.5)1.14 低于 AA
亮黄color11#245361rgb(36 83 97)hsl(194 46% 26%)oklch(41.6% 0.056 220.1)2.28 低于 AA
亮蓝color12#093748rgb(9 55 72)hsl(196 78% 16%)oklch(31.6% 0.056 228.1)1.51 低于 AA
亮品红color13#888ba5rgb(136 139 165)hsl(234 14% 59%)oklch(64.3% 0.039 280.1)5.76 AA
亮青color14#599caargb(89 156 170)hsl(190 32% 51%)oklch(65.4% 0.071 212.6)6.19 AA
亮白color15#d3ebe9rgb(211 235 233)hsl(175 38% 87%)oklch(92.2% 0.025 190.6)15.42 AAA

关于 Gotham

Gotham 采用冷色调的深色背景(#0a0f14),默认前景色为 #98d1ce。正文的 WCAG 对比度为 11.31:1(AAA),12 种 ANSI 彩色槽位平均对比度 4.32:1,最低 1.14:1。

色板整体色彩饱和度适中,其中红色为 #c33027、绿色为 #26a98b、蓝色为 #195465、品红为 #4e5165。

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

与 Gotham 相似的配色

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