跳到正文

City Lights

City Lights 是一套深色终端配色(冷色),背景色 #171d23,文字色 #ffffff,对比度 17.0:1

获取配置
背景色
#171d23
前景色
#ffffff
文字对比度
16.98:1AAA
强调色对比度
7.32:1最低 2.87
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
❯

City Lights 的配置文件

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

City Lights

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

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

palette = 0=#41505e
palette = 1=#d95468
palette = 2=#8bd49c
palette = 3=#ebbf83
palette = 4=#539afc
palette = 5=#b62d65
palette = 6=#70e1e8
palette = 7=#ffffff
palette = 8=#41505e
palette = 9=#d95468
palette = 10=#8bd49c
palette = 11=#ebbf83
palette = 12=#539afc
palette = 13=#b62d65
palette = 14=#70e1e8
palette = 15=#ffffff
background = #171d23
foreground = #ffffff
cursor-color = #008b94
cursor-text = #171d23
selection-background = #494e53
selection-foreground = #ffffff

City Lights 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#171d23rgb(23 29 35)hsl(210 21% 11%)oklch(22.7% 0.015 248.5)—
前景色foreground#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.98 AAA
光标cursor#008b94rgb(0 139 148)hsl(184 100% 29%)oklch(58.0% 0.099 202.8)4.14 AA 大字号
光标文字cursorText#171d23rgb(23 29 35)hsl(210 21% 11%)oklch(22.7% 0.015 248.5)1.00 低于 AA
选区selection#494e53rgb(73 78 83)hsl(210 6% 31%)oklch(42.1% 0.011 248.1)2.02 低于 AA
选区文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.98 AAA
黑color0#41505ergb(65 80 94)hsl(209 18% 31%)oklch(42.4% 0.030 246.7)2.05 低于 AA
红color1#d95468rgb(217 84 104)hsl(351 64% 59%)oklch(62.5% 0.167 14.3)4.38 AA 大字号
绿color2#8bd49crgb(139 212 156)hsl(134 46% 69%)oklch(80.7% 0.108 150.8)9.70 AAA
黄color3#ebbf83rgb(235 191 131)hsl(35 72% 72%)oklch(83.0% 0.092 74.6)9.96 AAA
蓝color4#539afcrgb(83 154 252)hsl(215 97% 66%)oklch(68.6% 0.162 257.0)5.98 AA
品红color5#b62d65rgb(182 45 101)hsl(335 60% 45%)oklch(52.7% 0.178 0.8)2.87 低于 AA
青color6#70e1e8rgb(112 225 232)hsl(184 72% 67%)oklch(84.6% 0.103 200.8)11.02 AAA
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.98 AAA
亮黑color8#41505ergb(65 80 94)hsl(209 18% 31%)oklch(42.4% 0.030 246.7)2.05 低于 AA
亮红color9#d95468rgb(217 84 104)hsl(351 64% 59%)oklch(62.5% 0.167 14.3)4.38 AA 大字号
亮绿color10#8bd49crgb(139 212 156)hsl(134 46% 69%)oklch(80.7% 0.108 150.8)9.70 AAA
亮黄color11#ebbf83rgb(235 191 131)hsl(35 72% 72%)oklch(83.0% 0.092 74.6)9.96 AAA
亮蓝color12#539afcrgb(83 154 252)hsl(215 97% 66%)oklch(68.6% 0.162 257.0)5.98 AA
亮品红color13#b62d65rgb(182 45 101)hsl(335 60% 45%)oklch(52.7% 0.178 0.8)2.87 低于 AA
亮青color14#70e1e8rgb(112 225 232)hsl(184 72% 67%)oklch(84.6% 0.103 200.8)11.02 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.98 AAA

关于 City Lights

City Lights 采用冷色调的深色背景(#171d23),默认前景色为 #ffffff。正文的 WCAG 对比度为 16.98:1(AAA),12 种 ANSI 彩色槽位平均对比度 7.32:1,最低 2.87:1。

色板整体色彩饱和度适中,其中红色为 #d95468、绿色为 #8bd49c、蓝色为 #539afc、品红为 #b62d65。

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

与 City Lights 相似的配色

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