跳到正文

Tokyo City Dark

Tokyo City Dark 是一套深色终端配色(冷色),背景色 #171d23,文字色 #d8e2ec,对比度 12.9:1

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

Tokyo City Dark 的配置文件

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

Tokyo City Dark

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

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

palette = 0=#171d23
palette = 1=#f7768e
palette = 2=#9ece6a
palette = 3=#b7c5d3
palette = 4=#7aa2f7
palette = 5=#bb9af7
palette = 6=#89ddff
palette = 7=#d8e2ec
palette = 8=#526270
palette = 9=#f7768e
palette = 10=#9ece6a
palette = 11=#b7c5d3
palette = 12=#7aa2f7
palette = 13=#bb9af7
palette = 14=#89ddff
palette = 15=#fbfbfd
background = #171d23
foreground = #d8e2ec
cursor-color = #d8e2ec
cursor-text = #171d23
selection-background = #41484f
selection-foreground = #d8e2ec

Tokyo City Dark 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#171d23rgb(23 29 35)hsl(210 21% 11%)oklch(22.7% 0.015 248.5)—
前景色foreground#d8e2ecrgb(216 226 236)hsl(210 34% 89%)oklch(90.8% 0.017 248.0)12.95 AAA
光标cursor#d8e2ecrgb(216 226 236)hsl(210 34% 89%)oklch(90.8% 0.017 248.0)12.95 AAA
光标文字cursorText#171d23rgb(23 29 35)hsl(210 21% 11%)oklch(22.7% 0.015 248.5)1.00 低于 AA
选区selection#41484frgb(65 72 79)hsl(210 10% 28%)oklch(39.8% 0.015 248.2)1.83 低于 AA
选区文字selectionText#d8e2ecrgb(216 226 236)hsl(210 34% 89%)oklch(90.8% 0.017 248.0)12.95 AAA
黑color0#171d23rgb(23 29 35)hsl(210 21% 11%)oklch(22.7% 0.015 248.5)1.00 低于 AA
红color1#f7768ergb(247 118 142)hsl(349 89% 72%)oklch(72.3% 0.159 10.3)6.42 AA
绿color2#9ece6argb(158 206 106)hsl(89 51% 61%)oklch(79.5% 0.139 130.1)9.29 AAA
黄color3#b7c5d3rgb(183 197 211)hsl(210 24% 77%)oklch(81.7% 0.025 248.1)9.66 AAA
蓝color4#7aa2f7rgb(122 162 247)hsl(221 89% 72%)oklch(71.9% 0.132 264.2)6.74 AA
品红color5#bb9af7rgb(187 154 247)hsl(261 85% 79%)oklch(75.1% 0.134 299.5)7.34 AAA
青color6#89ddffrgb(137 221 255)hsl(197 100% 77%)oklch(85.6% 0.094 225.9)11.20 AAA
白color7#d8e2ecrgb(216 226 236)hsl(210 34% 89%)oklch(90.8% 0.017 248.0)12.95 AAA
亮黑color8#526270rgb(82 98 112)hsl(208 15% 38%)oklch(48.8% 0.030 244.9)2.70 低于 AA
亮红color9#f7768ergb(247 118 142)hsl(349 89% 72%)oklch(72.3% 0.159 10.3)6.42 AA
亮绿color10#9ece6argb(158 206 106)hsl(89 51% 61%)oklch(79.5% 0.139 130.1)9.29 AAA
亮黄color11#b7c5d3rgb(183 197 211)hsl(210 24% 77%)oklch(81.7% 0.025 248.1)9.66 AAA
亮蓝color12#7aa2f7rgb(122 162 247)hsl(221 89% 72%)oklch(71.9% 0.132 264.2)6.74 AA
亮品红color13#bb9af7rgb(187 154 247)hsl(261 85% 79%)oklch(75.1% 0.134 299.5)7.34 AAA
亮青color14#89ddffrgb(137 221 255)hsl(197 100% 77%)oklch(85.6% 0.094 225.9)11.20 AAA
亮白color15#fbfbfdrgb(251 251 253)hsl(240 33% 99%)oklch(98.9% 0.003 286.4)16.43 AAA

关于 Tokyo City Dark

Tokyo City Dark 采用冷色调的深色背景(#171d23),默认前景色为 #d8e2ec。正文的 WCAG 对比度为 12.95:1(AAA),12 种 ANSI 彩色槽位平均对比度 8.44:1,最低 6.42:1。

色板整体色彩饱和度适中,其中红色为 #f7768e、绿色为 #9ece6a、蓝色为 #7aa2f7、品红为 #bb9af7。该配色归属 Tokyo Night 主题系列。

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

与 Tokyo City Dark 相似的配色

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