跳到主要內容

GitHub Dark Colorblind

GitHub Dark Colorblind 是一套深色終端機配色(冷色),背景色 #0d1117,文字色 #c9d1d9,對比度 12.3:1

取得設定檔
背景色
#0d1117
前景色
#c9d1d9
文字對比度
12.26:1AAA
強調色對比度
8.87:1最低 7.49
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 Colorblind 的設定檔

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

GitHub Dark Colorblind

存到 ~/.config/ghostty/themes/GitHub Dark Colorblind,再在 config 或 config.ghostty 裡寫 theme = GitHub Dark Colorblind

更多 Ghostty 配色
原始檔
# Theme: GitHub Dark Colorblind (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-tw/schemes/github-dark-colorblind?format=ghostty

palette = 0=#484f58
palette = 1=#ec8e2c
palette = 2=#58a6ff
palette = 3=#d29922
palette = 4=#58a6ff
palette = 5=#bc8cff
palette = 6=#39c5cf
palette = 7=#b1bac4
palette = 8=#6e7681
palette = 9=#fdac54
palette = 10=#79c0ff
palette = 11=#e3b341
palette = 12=#79c0ff
palette = 13=#d2a8ff
palette = 14=#56d4dd
palette = 15=#ffffff
background = #0d1117
foreground = #c9d1d9
cursor-color = #58a6ff
cursor-text = #58a6ff
selection-background = #c9d1d9
selection-foreground = #0d1117

GitHub Dark Colorblind 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#0d1117rgb(13 17 23)hsl(216 28% 7%)oklch(17.6% 0.014 258.4)—
前景色foreground#c9d1d9rgb(201 209 217)hsl(210 17% 82%)oklch(85.7% 0.014 248.0)12.26 AAA
游標cursor#58a6ffrgb(88 166 255)hsl(212 100% 67%)oklch(71.5% 0.152 253.3)7.49 AAA
游標文字cursorText#58a6ffrgb(88 166 255)hsl(212 100% 67%)oklch(71.5% 0.152 253.3)7.49 AAA
選取範圍selection#c9d1d9rgb(201 209 217)hsl(210 17% 82%)oklch(85.7% 0.014 248.0)12.26 AAA
選取文字selectionText#0d1117rgb(13 17 23)hsl(216 28% 7%)oklch(17.6% 0.014 258.4)1.00 低於 AA
黑color0#484f58rgb(72 79 88)hsl(214 10% 31%)oklch(42.5% 0.017 254.7)2.28 低於 AA
紅color1#ec8e2crgb(236 142 44)hsl(31 83% 55%)oklch(73.1% 0.154 61.1)7.63 AAA
綠color2#58a6ffrgb(88 166 255)hsl(212 100% 67%)oklch(71.5% 0.152 253.3)7.49 AAA
黃color3#d29922rgb(210 153 34)hsl(41 72% 48%)oklch(72.0% 0.140 79.9)7.50 AAA
藍color4#58a6ffrgb(88 166 255)hsl(212 100% 67%)oklch(71.5% 0.152 253.3)7.49 AAA
洋紅color5#bc8cffrgb(188 140 255)hsl(265 100% 77%)oklch(73.2% 0.167 301.7)7.51 AAA
青color6#39c5cfrgb(57 197 207)hsl(184 61% 52%)oklch(75.5% 0.116 202.1)9.07 AAA
白color7#b1bac4rgb(177 186 196)hsl(212 14% 73%)oklch(78.5% 0.017 250.9)9.63 AAA
亮黑color8#6e7681rgb(110 118 129)hsl(215 8% 47%)oklch(56.3% 0.020 256.3)4.12 AA 大字級
亮紅color9#fdac54rgb(253 172 84)hsl(31 98% 66%)oklch(80.7% 0.140 65.6)10.10 AAA
亮綠color10#79c0ffrgb(121 192 255)hsl(208 100% 74%)oklch(78.6% 0.115 246.7)9.73 AAA
亮黃color11#e3b341rgb(227 179 65)hsl(42 74% 57%)oklch(79.0% 0.139 85.2)9.72 AAA
亮藍color12#79c0ffrgb(121 192 255)hsl(208 100% 74%)oklch(78.6% 0.115 246.7)9.73 AAA
亮洋紅color13#d2a8ffrgb(210 168 255)hsl(269 100% 83%)oklch(80.1% 0.127 305.9)9.72 AAA
亮青color14#56d4ddrgb(86 212 221)hsl(184 67% 60%)oklch(80.4% 0.111 201.8)10.69 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.92 AAA

關於 GitHub Dark Colorblind

GitHub Dark Colorblind 採用冷色調的深色背景(#0d1117),預設前景色為 #c9d1d9。內文的 WCAG 對比度為 12.26:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.87:1,最低 7.49:1。

色票整體色彩彩度適中,其中紅色為 #ec8e2c、綠色為 #58a6ff、藍色為 #58a6ff、洋紅為 #bc8cff。此配色歸屬 GitHub 主題系列。

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

與 GitHub Dark Colorblind 相似的配色

資料來源:iTerm2 Color Schemes (MIT)