跳到主要內容

GitHub Dark High Contrast

GitHub Dark High Contrast 是一套深色終端機配色(純黑、高對比),背景色 #0a0c10,文字色 #f0f3f6,對比度 17.6:1

取得設定檔
背景色
#0a0c10
前景色
#f0f3f6
文字對比度
17.57:1AAA
強調色對比度
10.50:1最低 9.20
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
❯

GitHub Dark High Contrast 的設定檔

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

GitHub Dark High Contrast

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

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

palette = 0=#7a828e
palette = 1=#ff9492
palette = 2=#26cd4d
palette = 3=#f0b72f
palette = 4=#71b7ff
palette = 5=#cb9eff
palette = 6=#39c5cf
palette = 7=#d9dee3
palette = 8=#9ea7b3
palette = 9=#ffb1af
palette = 10=#4ae168
palette = 11=#f7c843
palette = 12=#91cbff
palette = 13=#dbb7ff
palette = 14=#56d4dd
palette = 15=#ffffff
background = #0a0c10
foreground = #f0f3f6
cursor-color = #71b7ff
cursor-text = #71b7ff
selection-background = #f0f3f6
selection-foreground = #0a0c10

GitHub Dark High Contrast 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#0a0c10rgb(10 12 16)hsl(220 23% 5%)oklch(15.4% 0.009 264.3)—
前景色foreground#f0f3f6rgb(240 243 246)hsl(210 25% 95%)oklch(96.3% 0.005 247.9)17.57 AAA
光標cursor#71b7ffrgb(113 183 255)hsl(210 100% 72%)oklch(76.3% 0.126 250.4)9.24 AAA
光標文字cursorText#71b7ffrgb(113 183 255)hsl(210 100% 72%)oklch(76.3% 0.126 250.4)9.24 AAA
選取範圍selection#f0f3f6rgb(240 243 246)hsl(210 25% 95%)oklch(96.3% 0.005 247.9)17.57 AAA
選取文字selectionText#0a0c10rgb(10 12 16)hsl(220 23% 5%)oklch(15.4% 0.009 264.3)1.00 低於 AA
黑color0#7a828ergb(122 130 142)hsl(216 8% 52%)oklch(60.4% 0.021 258.4)5.04 AA
紅color1#ff9492rgb(255 148 146)hsl(1 100% 79%)oklch(77.9% 0.129 21.6)9.23 AAA
綠color2#26cd4drgb(38 205 77)hsl(134 69% 48%)oklch(74.2% 0.214 146.2)9.25 AAA
黃color3#f0b72frgb(240 183 47)hsl(42 87% 56%)oklch(81.1% 0.154 83.8)10.74 AAA
藍color4#71b7ffrgb(113 183 255)hsl(210 100% 72%)oklch(76.3% 0.126 250.4)9.24 AAA
洋紅color5#cb9effrgb(203 158 255)hsl(268 100% 81%)oklch(77.7% 0.142 304.7)9.20 AAA
青color6#39c5cfrgb(57 197 207)hsl(184 61% 52%)oklch(75.5% 0.116 202.1)9.38 AAA
白color7#d9dee3rgb(217 222 227)hsl(210 15% 87%)oklch(89.8% 0.009 247.9)14.45 AAA
亮黑color8#9ea7b3rgb(158 167 179)hsl(214 12% 66%)oklch(72.5% 0.020 255.6)8.05 AAA
亮紅color9#ffb1afrgb(255 177 175)hsl(1 100% 84%)oklch(83.4% 0.092 20.8)11.33 AAA
亮綠color10#4ae168rgb(74 225 104)hsl(132 72% 59%)oklch(80.4% 0.207 146.8)11.43 AAA
亮黃color11#f7c843rgb(247 200 67)hsl(44 92% 62%)oklch(85.2% 0.153 88.6)12.39 AAA
亮藍color12#91cbffrgb(145 203 255)hsl(208 100% 78%)oklch(82.1% 0.095 246.3)11.36 AAA
亮洋紅color13#dbb7ffrgb(219 183 255)hsl(270 100% 86%)oklch(83.5% 0.105 307.0)11.40 AAA
亮青color14#56d4ddrgb(86 212 221)hsl(184 67% 60%)oklch(80.4% 0.111 201.8)11.05 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)19.57 AAA

關於 GitHub Dark High Contrast

GitHub Dark High Contrast 採用中性色調的深色背景(#0a0c10),預設前景色為 #f0f3f6。正文的 WCAG 對比度為 17.57:1(AAA),12 種 ANSI 彩色槽位平均對比度 10.50:1,最低 9.20:1。

色板整體色彩飽和度適中,其中紅色為 #ff9492、綠色為 #26cd4d、藍色為 #71b7ff、洋紅為 #cb9eff。該配色歸屬 GitHub 主題系列。

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

與 GitHub Dark High Contrast 相似的配色

資料來源:iTerm2 Color Schemes (MIT)