跳到主要內容

Xcode Dark hc

Xcode Dark hc 是一套深色終端機配色(粉彩),背景色 #1f1f24,文字色 #ffffff,對比度 16.4:1

取得設定檔
背景色
#1f1f24
前景色
#ffffff
文字對比度
16.41:1AAA
強調色對比度
8.94:1最低 7.16
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 hc 的設定檔

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

Xcode Dark hc

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

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

palette = 0=#43454b
palette = 1=#ff8a7a
palette = 2=#83c9bc
palette = 3=#d9c668
palette = 4=#4ec4e6
palette = 5=#ff85b8
palette = 6=#cda1ff
palette = 7=#ffffff
palette = 8=#838991
palette = 9=#ff8a7a
palette = 10=#b1faeb
palette = 11=#ffa14f
palette = 12=#6bdfff
palette = 13=#ff85b8
palette = 14=#e5cfff
palette = 15=#ffffff
background = #1f1f24
foreground = #ffffff
cursor-color = #ffffff
cursor-text = #1f1f24
selection-background = #43454b
selection-foreground = #ffffff

Xcode Dark hc 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1f1f24rgb(31 31 36)hsl(240 7% 13%)oklch(24.1% 0.009 285.7)—
前景色foreground#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.41 AAA
光標cursor#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.41 AAA
光標文字cursorText#1f1f24rgb(31 31 36)hsl(240 7% 13%)oklch(24.1% 0.009 285.7)1.00 低於 AA
選取範圍selection#43454brgb(67 69 75)hsl(225 6% 28%)oklch(39.1% 0.010 271.1)1.71 低於 AA
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.41 AAA
黑color0#43454brgb(67 69 75)hsl(225 6% 28%)oklch(39.1% 0.010 271.1)1.71 低於 AA
紅color1#ff8a7argb(255 138 122)hsl(7 100% 74%)oklch(75.8% 0.145 29.0)7.16 AAA
綠color2#83c9bcrgb(131 201 188)hsl(169 39% 65%)oklch(78.6% 0.073 181.3)8.63 AAA
黃color3#d9c668rgb(217 198 104)hsl(50 60% 63%)oklch(82.3% 0.117 98.1)9.56 AAA
藍color4#4ec4e6rgb(78 196 230)hsl(193 75% 60%)oklch(76.7% 0.115 220.4)8.10 AAA
洋紅color5#ff85b8rgb(255 133 184)hsl(335 100% 76%)oklch(76.6% 0.157 355.0)7.27 AAA
青color6#cda1ffrgb(205 161 255)hsl(268 100% 82%)oklch(78.4% 0.137 305.0)7.92 AAA
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.41 AAA
亮黑color8#838991rgb(131 137 145)hsl(214 6% 54%)oklch(62.8% 0.014 255.5)4.65 AA
亮紅color9#ff8a7argb(255 138 122)hsl(7 100% 74%)oklch(75.8% 0.145 29.0)7.16 AAA
亮綠color10#b1faebrgb(177 250 235)hsl(168 88% 84%)oklch(93.3% 0.075 180.4)13.86 AAA
亮黃color11#ffa14frgb(255 161 79)hsl(28 100% 65%)oklch(79.0% 0.147 59.1)8.18 AAA
亮藍color12#6bdfffrgb(107 223 255)hsl(193 100% 71%)oklch(84.8% 0.114 218.6)10.65 AAA
亮洋紅color13#ff85b8rgb(255 133 184)hsl(335 100% 76%)oklch(76.6% 0.157 355.0)7.27 AAA
亮青color14#e5cfffrgb(229 207 255)hsl(268 100% 91%)oklch(88.8% 0.069 305.8)11.49 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.41 AAA

關於 Xcode Dark hc

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

色板整體色彩飽和度適中,其中紅色為 #ff8a7a、綠色為 #83c9bc、藍色為 #4ec4e6、洋紅為 #ff85b8。該配色歸屬 Xcode 主題系列。

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

與 Xcode Dark hc 相似的配色

資料來源:iTerm2 Color Schemes (ISC)