跳到正文

Xcode Dusk

Xcode Dusk 是一套深色终端配色(柔和、鲜艳),背景色 #282b35,文字色 #939599,对比度 4.7:1

获取配置
背景色
#282b35
前景色
#939599
文字对比度
4.71:1AA
强调色对比度
2.80:1最低 1.67
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
❯

Xcode Dusk 的配置文件

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

Xcode Dusk

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

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

palette = 0=#282b35
palette = 1=#b21889
palette = 2=#df0002
palette = 3=#438288
palette = 4=#790ead
palette = 5=#b21889
palette = 6=#00a0be
palette = 7=#939599
palette = 8=#686a71
palette = 9=#b21889
palette = 10=#df0002
palette = 11=#438288
palette = 12=#790ead
palette = 13=#b21889
palette = 14=#00a0be
palette = 15=#bebfc2
background = #282b35
foreground = #939599
cursor-color = #939599
cursor-text = #282b35
selection-background = #41434c
selection-foreground = #939599

Xcode Dusk 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#282b35rgb(40 43 53)hsl(226 14% 18%)oklch(29.0% 0.019 272.1)—
前景色foreground#939599rgb(147 149 153)hsl(220 3% 59%)oklch(66.9% 0.006 264.5)4.71 AA
光标cursor#939599rgb(147 149 153)hsl(220 3% 59%)oklch(66.9% 0.006 264.5)4.71 AA
光标文字cursorText#282b35rgb(40 43 53)hsl(226 14% 18%)oklch(29.0% 0.019 272.1)1.00 低于 AA
选区selection#41434crgb(65 67 76)hsl(229 8% 28%)oklch(38.4% 0.015 275.7)1.43 低于 AA
选区文字selectionText#939599rgb(147 149 153)hsl(220 3% 59%)oklch(66.9% 0.006 264.5)4.71 AA
黑color0#282b35rgb(40 43 53)hsl(226 14% 18%)oklch(29.0% 0.019 272.1)1.00 低于 AA
红color1#b21889rgb(178 24 137)hsl(316 76% 40%)oklch(52.0% 0.210 342.4)2.28 低于 AA
绿color2#df0002rgb(223 0 2)hsl(359 100% 44%)oklch(56.8% 0.233 29.1)2.78 低于 AA
黄color3#438288rgb(67 130 136)hsl(185 34% 40%)oklch(56.7% 0.065 203.6)3.22 AA 大字号
蓝color4#790eadrgb(121 14 173)hsl(280 85% 37%)oklch(44.9% 0.219 309.6)1.67 低于 AA
品红color5#b21889rgb(178 24 137)hsl(316 76% 40%)oklch(52.0% 0.210 342.4)2.28 低于 AA
青color6#00a0bergb(0 160 190)hsl(189 100% 37%)oklch(65.1% 0.117 217.4)4.55 AA
白color7#939599rgb(147 149 153)hsl(220 3% 59%)oklch(66.9% 0.006 264.5)4.71 AA
亮黑color8#686a71rgb(104 106 113)hsl(227 4% 43%)oklch(52.5% 0.011 273.2)2.61 低于 AA
亮红color9#b21889rgb(178 24 137)hsl(316 76% 40%)oklch(52.0% 0.210 342.4)2.28 低于 AA
亮绿color10#df0002rgb(223 0 2)hsl(359 100% 44%)oklch(56.8% 0.233 29.1)2.78 低于 AA
亮黄color11#438288rgb(67 130 136)hsl(185 34% 40%)oklch(56.7% 0.065 203.6)3.22 AA 大字号
亮蓝color12#790eadrgb(121 14 173)hsl(280 85% 37%)oklch(44.9% 0.219 309.6)1.67 低于 AA
亮品红color13#b21889rgb(178 24 137)hsl(316 76% 40%)oklch(52.0% 0.210 342.4)2.28 低于 AA
亮青color14#00a0bergb(0 160 190)hsl(189 100% 37%)oklch(65.1% 0.117 217.4)4.55 AA
亮白color15#bebfc2rgb(190 191 194)hsl(225 3% 75%)oklch(80.5% 0.004 271.4)7.68 AAA

关于 Xcode Dusk

Xcode Dusk 采用冷色调的深色背景(#282b35),默认前景色为 #939599。正文的 WCAG 对比度为 4.71:1(AA),12 种 ANSI 彩色槽位平均对比度 2.80:1,最低 1.67:1。

色板整体色彩饱和度较高,其中红色为 #b21889、绿色为 #df0002、蓝色为 #790ead、品红为 #b21889。该配色归属 Xcode 主题系列。

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

与 Xcode Dusk 相似的配色

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