跳到正文

urban

urban 是一套深色终端配色(柔和、低饱和),背景色 #312e39,文字色 #c0a79a,对比度 5.8:1

获取配置
背景色
#312e39
前景色
#c0a79a
文字对比度
5.84:1AA
强调色对比度
2.45:1最低 1.53
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
❯

urban 的配置文件

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

urban

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

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

palette = 0=#33303b
palette = 1=#87404f
palette = 2=#74934e
palette = 3=#ae835a
palette = 4=#615772
palette = 5=#783e57
palette = 6=#554757
palette = 7=#c0a79a
palette = 8=#4f4b58
palette = 9=#87404f
palette = 10=#74934e
palette = 11=#ae835a
palette = 12=#615772
palette = 13=#783e57
palette = 14=#554757
palette = 15=#c0a79a
background = #312e39
foreground = #c0a79a
cursor-color = #c0a79a
cursor-text = #312e39
selection-background = #c0a79a
selection-foreground = #312e39

urban 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#312e39rgb(49 46 57)hsl(256 11% 20%)oklch(30.9% 0.020 297.7)—
前景色foreground#c0a79argb(192 167 154)hsl(21 23% 68%)oklch(74.7% 0.035 49.2)5.84 AA
光标cursor#c0a79argb(192 167 154)hsl(21 23% 68%)oklch(74.7% 0.035 49.2)5.84 AA
光标文字cursorText#312e39rgb(49 46 57)hsl(256 11% 20%)oklch(30.9% 0.020 297.7)1.00 低于 AA
选区selection#c0a79argb(192 167 154)hsl(21 23% 68%)oklch(74.7% 0.035 49.2)5.84 AA
选区文字selectionText#312e39rgb(49 46 57)hsl(256 11% 20%)oklch(30.9% 0.020 297.7)1.00 低于 AA
黑color0#33303brgb(51 48 59)hsl(256 10% 21%)oklch(31.7% 0.020 297.7)1.03 低于 AA
红color1#87404frgb(135 64 79)hsl(347 36% 39%)oklch(46.7% 0.098 8.3)1.82 低于 AA
绿color2#74934ergb(116 147 78)hsl(87 31% 44%)oklch(62.3% 0.102 128.8)3.81 AA 大字号
黄color3#ae835argb(174 131 90)hsl(29 34% 52%)oklch(64.2% 0.077 64.4)3.92 AA 大字号
蓝color4#615772rgb(97 87 114)hsl(262 13% 39%)oklch(47.7% 0.044 301.7)1.97 低于 AA
品红color5#783e57rgb(120 62 87)hsl(334 32% 36%)oklch(44.4% 0.086 353.9)1.66 低于 AA
青color6#554757rgb(85 71 87)hsl(293 10% 31%)oklch(41.8% 0.032 322.1)1.53 低于 AA
白color7#c0a79argb(192 167 154)hsl(21 23% 68%)oklch(74.7% 0.035 49.2)5.84 AA
亮黑color8#4f4b58rgb(79 75 88)hsl(258 8% 32%)oklch(42.2% 0.022 299.5)1.57 低于 AA
亮红color9#87404frgb(135 64 79)hsl(347 36% 39%)oklch(46.7% 0.098 8.3)1.82 低于 AA
亮绿color10#74934ergb(116 147 78)hsl(87 31% 44%)oklch(62.3% 0.102 128.8)3.81 AA 大字号
亮黄color11#ae835argb(174 131 90)hsl(29 34% 52%)oklch(64.2% 0.077 64.4)3.92 AA 大字号
亮蓝color12#615772rgb(97 87 114)hsl(262 13% 39%)oklch(47.7% 0.044 301.7)1.97 低于 AA
亮品红color13#783e57rgb(120 62 87)hsl(334 32% 36%)oklch(44.4% 0.086 353.9)1.66 低于 AA
亮青color14#554757rgb(85 71 87)hsl(293 10% 31%)oklch(41.8% 0.032 322.1)1.53 低于 AA
亮白color15#c0a79argb(192 167 154)hsl(21 23% 68%)oklch(74.7% 0.035 49.2)5.84 AA

关于 urban

urban 采用冷色调的深色背景(#312e39),默认前景色为 #c0a79a。正文的 WCAG 对比度为 5.84:1(AA),12 种 ANSI 彩色槽位平均对比度 2.45:1,最低 1.53:1。

色板整体色彩饱和度偏低,其中红色为 #87404f、绿色为 #74934e、蓝色为 #615772、品红为 #783e57。

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

与 urban 相似的配色

数据来源:iTerm2 Color Schemes (MIT)