跳到主要內容

GitHub Light Colorblind

GitHub Light Colorblind 是一套淺色終端機配色,背景色 #ffffff,文字色 #24292f,對比度 14.7:1

取得設定檔
背景色
#ffffff
前景色
#24292f
文字對比度
14.65:1AAA
強調色對比度
6.02:1最低 3.24
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 Light Colorblind 的設定檔

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

GitHub Light Colorblind

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

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

palette = 0=#24292f
palette = 1=#b35900
palette = 2=#0550ae
palette = 3=#4d2d00
palette = 4=#0969da
palette = 5=#8250df
palette = 6=#1b7c83
palette = 7=#6e7781
palette = 8=#57606a
palette = 9=#8a4600
palette = 10=#0969da
palette = 11=#633c01
palette = 12=#218bff
palette = 13=#a475f9
palette = 14=#3192aa
palette = 15=#8c959f
background = #ffffff
foreground = #24292f
cursor-color = #0969da
cursor-text = #0969da
selection-background = #24292f
selection-foreground = #ffffff

GitHub Light Colorblind 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)—
前景色foreground#24292frgb(36 41 47)hsl(213 13% 16%)oklch(27.9% 0.013 253.0)14.65 AAA
光標cursor#0969dargb(9 105 218)hsl(212 92% 45%)oklch(54.0% 0.191 257.5)5.19 AA
光標文字cursorText#0969dargb(9 105 218)hsl(212 92% 45%)oklch(54.0% 0.191 257.5)5.19 AA
選取範圍selection#24292frgb(36 41 47)hsl(213 13% 16%)oklch(27.9% 0.013 253.0)14.65 AAA
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)1.00 低於 AA
黑color0#24292frgb(36 41 47)hsl(213 13% 16%)oklch(27.9% 0.013 253.0)14.65 AAA
紅color1#b35900rgb(179 89 0)hsl(30 100% 35%)oklch(56.3% 0.142 53.6)4.83 AA
綠color2#0550aergb(5 80 174)hsl(213 94% 35%)oklch(45.1% 0.164 258.2)7.59 AAA
黃color3#4d2d00rgb(77 45 0)hsl(35 100% 15%)oklch(33.0% 0.072 68.3)12.42 AAA
藍color4#0969dargb(9 105 218)hsl(212 92% 45%)oklch(54.0% 0.191 257.5)5.19 AA
洋紅color5#8250dfrgb(130 80 223)hsl(261 69% 59%)oklch(56.3% 0.207 295.0)5.05 AA
青color6#1b7c83rgb(27 124 131)hsl(184 66% 31%)oklch(53.7% 0.084 202.4)4.93 AA
白color7#6e7781rgb(110 119 129)hsl(212 8% 47%)oklch(56.5% 0.019 251.0)4.55 AA
亮黑color8#57606argb(87 96 106)hsl(212 10% 38%)oklch(48.5% 0.020 251.0)6.39 AA
亮紅color9#8a4600rgb(138 70 0)hsl(30 100% 27%)oklch(47.0% 0.115 55.9)7.10 AAA
亮綠color10#0969dargb(9 105 218)hsl(212 92% 45%)oklch(54.0% 0.191 257.5)5.19 AA
亮黃color11#633c01rgb(99 60 1)hsl(36 98% 20%)oklch(39.4% 0.085 68.9)9.64 AAA
亮藍color12#218bffrgb(33 139 255)hsl(211 100% 56%)oklch(64.2% 0.195 255.0)3.39 AA 大字體
亮洋紅color13#a475f9rgb(164 117 249)hsl(261 92% 72%)oklch(66.9% 0.190 297.4)3.24 AA 大字體
亮青color14#3192aargb(49 146 170)hsl(192 55% 43%)oklch(61.4% 0.094 217.8)3.61 AA 大字體
亮白color15#8c959frgb(140 149 159)hsl(212 9% 59%)oklch(66.6% 0.018 250.9)3.04 AA 大字體

關於 GitHub Light Colorblind

GitHub Light Colorblind 採用中性色調的淺色背景(#ffffff),預設前景色為 #24292f。正文的 WCAG 對比度為 14.65:1(AAA),12 種 ANSI 彩色槽位平均對比度 6.02:1,最低 3.24:1。

色板整體色彩飽和度適中,其中紅色為 #b35900、綠色為 #0550ae、藍色為 #0969da、洋紅為 #8250df。該配色歸屬 GitHub 主題系列。

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

與 GitHub Light Colorblind 相似的配色

資料來源:iTerm2 Color Schemes (MIT)