跳到主要內容

Xcode Dark

Xcode Dark 是一套深色終端機配色,背景色 #292a30,文字色 #dfdfe0,對比度 10.7:1

取得設定檔
背景色
#292a30
前景色
#dfdfe0
文字對比度
10.74:1AAA
強調色對比度
7.16:1最低 4.93
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 Dark 的設定檔

16 種格式,都從同一份色板產生

Xcode Dark

存到 ~/.config/ghostty/themes/Xcode Dark,再在 config 或 config.ghostty 裏寫 theme = Xcode Dark

更多 Ghostty 配色
原始檔案
# Theme: Xcode Dark (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-hk/schemes/xcode-dark?format=ghostty

palette = 0=#414453
palette = 1=#ff8170
palette = 2=#78c2b3
palette = 3=#d9c97c
palette = 4=#4eb0cc
palette = 5=#ff7ab2
palette = 6=#b281eb
palette = 7=#dfdfe0
palette = 8=#7f8c98
palette = 9=#ff8170
palette = 10=#acf2e4
palette = 11=#ffa14f
palette = 12=#6bdfff
palette = 13=#ff7ab2
palette = 14=#dabaff
palette = 15=#dfdfe0
background = #292a30
foreground = #dfdfe0
cursor-color = #dfdfe0
cursor-text = #292a30
selection-background = #414453
selection-foreground = #dfdfe0

Xcode Dark 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#292a30rgb(41 42 48)hsl(231 8% 17%)oklch(28.6% 0.011 278.2)—
前景色foreground#dfdfe0rgb(223 223 224)hsl(240 2% 88%)oklch(90.4% 0.001 286.4)10.74 AAA
光標cursor#dfdfe0rgb(223 223 224)hsl(240 2% 88%)oklch(90.4% 0.001 286.4)10.74 AAA
光標文字cursorText#292a30rgb(41 42 48)hsl(231 8% 17%)oklch(28.6% 0.011 278.2)1.00 低於 AA
選取範圍selection#414453rgb(65 68 83)hsl(230 12% 29%)oklch(39.0% 0.026 276.3)1.48 低於 AA
選取文字selectionText#dfdfe0rgb(223 223 224)hsl(240 2% 88%)oklch(90.4% 0.001 286.4)10.74 AAA
黑color0#414453rgb(65 68 83)hsl(230 12% 29%)oklch(39.0% 0.026 276.3)1.48 低於 AA
紅color1#ff8170rgb(255 129 112)hsl(7 100% 72%)oklch(74.3% 0.157 29.2)5.88 AA
綠color2#78c2b3rgb(120 194 179)hsl(168 38% 62%)oklch(76.1% 0.077 179.8)6.92 AA
黃color3#d9c97crgb(217 201 124)hsl(50 55% 67%)oklch(83.2% 0.099 97.9)8.58 AAA
藍color4#4eb0ccrgb(78 176 204)hsl(193 55% 55%)oklch(71.0% 0.099 219.6)5.73 AA
洋紅color5#ff7ab2rgb(255 122 178)hsl(335 100% 74%)oklch(74.9% 0.171 355.6)5.91 AA
青color6#b281ebrgb(178 129 235)hsl(268 73% 71%)oklch(69.4% 0.157 303.9)4.93 AA
白color7#dfdfe0rgb(223 223 224)hsl(240 2% 88%)oklch(90.4% 0.001 286.4)10.74 AAA
亮黑color8#7f8c98rgb(127 140 152)hsl(209 11% 55%)oklch(63.4% 0.024 246.0)4.16 AA 大字體
亮紅color9#ff8170rgb(255 129 112)hsl(7 100% 72%)oklch(74.3% 0.157 29.2)5.88 AA
亮綠color10#acf2e4rgb(172 242 228)hsl(168 73% 81%)oklch(91.1% 0.072 180.8)11.29 AAA
亮黃color11#ffa14frgb(255 161 79)hsl(28 100% 65%)oklch(79.0% 0.147 59.1)7.13 AAA
亮藍color12#6bdfffrgb(107 223 255)hsl(193 100% 71%)oklch(84.8% 0.114 218.6)9.28 AAA
亮洋紅color13#ff7ab2rgb(255 122 178)hsl(335 100% 74%)oklch(74.9% 0.171 355.6)5.91 AA
亮青color14#dabaffrgb(218 186 255)hsl(268 100% 86%)oklch(84.0% 0.100 305.5)8.48 AAA
亮白color15#dfdfe0rgb(223 223 224)hsl(240 2% 88%)oklch(90.4% 0.001 286.4)10.74 AAA

關於 Xcode Dark

Xcode Dark 採用中性色調的深色背景(#292a30),預設前景色為 #dfdfe0。正文的 WCAG 對比度為 10.74:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.16:1,最低 4.93:1。

色板整體色彩飽和度適中,其中紅色為 #ff8170、綠色為 #78c2b3、藍色為 #4eb0cc、洋紅為 #ff7ab2。該配色歸屬 Xcode 主題系列。

支援一鍵匯出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 終端機設定檔,同時提供 VS Code 與 Zed 整合終端機、CSS 變數、Tailwind CSS 及 JSON 色板格式。

與 Xcode Dark 相似的配色

資料來源:iTerm2 Color Schemes (ISC)