跳到主要內容

GitHub Light High Contrast

GitHub Light High Contrast 是一套淺色終端機配色,背景色 #ffffff,文字色 #0e1116,對比度 18.9:1

取得設定檔
背景色
#ffffff
前景色
#0e1116
文字對比度
18.91:1AAA
強調色對比度
8.21:1最低 3.61
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 High Contrast 的設定檔

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

GitHub Light High Contrast

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

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

palette = 0=#0e1116
palette = 1=#a0111f
palette = 2=#024c1a
palette = 3=#3f2200
palette = 4=#0349b4
palette = 5=#622cbc
palette = 6=#1b7c83
palette = 7=#66707b
palette = 8=#4b535d
palette = 9=#86061d
palette = 10=#055d20
palette = 11=#4e2c00
palette = 12=#1168e3
palette = 13=#844ae7
palette = 14=#3192aa
palette = 15=#88929d
background = #ffffff
foreground = #0e1116
cursor-color = #0349b4
cursor-text = #0349b4
selection-background = #0e1116
selection-foreground = #ffffff

GitHub Light High Contrast 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)—
前景色foreground#0e1116rgb(14 17 22)hsl(218 22% 7%)oklch(17.7% 0.011 260.6)18.91 AAA
游標cursor#0349b4rgb(3 73 180)hsl(216 97% 36%)oklch(44.1% 0.181 260.4)8.03 AAA
游標文字cursorText#0349b4rgb(3 73 180)hsl(216 97% 36%)oklch(44.1% 0.181 260.4)8.03 AAA
選取範圍selection#0e1116rgb(14 17 22)hsl(218 22% 7%)oklch(17.7% 0.011 260.6)18.91 AAA
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)1.00 低於 AA
黑color0#0e1116rgb(14 17 22)hsl(218 22% 7%)oklch(17.7% 0.011 260.6)18.91 AAA
紅color1#a0111frgb(160 17 31)hsl(354 81% 35%)oklch(45.2% 0.173 24.3)8.09 AAA
綠color2#024c1argb(2 76 26)hsl(139 95% 15%)oklch(36.4% 0.104 147.8)10.24 AAA
黃color3#3f2200rgb(63 34 0)hsl(32 100% 12%)oklch(28.4% 0.064 64.9)14.58 AAA
藍color4#0349b4rgb(3 73 180)hsl(216 97% 36%)oklch(44.1% 0.181 260.4)8.03 AAA
洋紅color5#622cbcrgb(98 44 188)hsl(263 62% 45%)oklch(45.6% 0.207 293.4)8.06 AAA
青color6#1b7c83rgb(27 124 131)hsl(184 66% 31%)oklch(53.7% 0.084 202.4)4.93 AA
白color7#66707brgb(102 112 123)hsl(211 9% 44%)oklch(54.1% 0.021 250.7)5.04 AA
亮黑color8#4b535drgb(75 83 93)hsl(213 11% 33%)oklch(43.9% 0.019 254.0)7.79 AAA
亮紅color9#86061drgb(134 6 29)hsl(349 91% 27%)oklch(39.5% 0.155 21.6)10.21 AAA
亮綠color10#055d20rgb(5 93 32)hsl(138 90% 19%)oklch(41.8% 0.121 147.2)8.10 AAA
亮黃color11#4e2c00rgb(78 44 0)hsl(34 100% 15%)oklch(32.9% 0.073 65.9)12.47 AAA
亮藍color12#1168e3rgb(17 104 227)hsl(215 86% 48%)oklch(54.6% 0.202 259.2)5.11 AA
亮洋紅color13#844ae7rgb(132 74 231)hsl(262 77% 60%)oklch(56.3% 0.224 295.2)5.10 AA
亮青color14#3192aargb(49 146 170)hsl(192 55% 43%)oklch(61.4% 0.094 217.8)3.61 AA 大字級
亮白color15#88929drgb(136 146 157)hsl(211 10% 57%)oklch(65.5% 0.020 250.7)3.16 AA 大字級

關於 GitHub Light High Contrast

GitHub Light High Contrast 採用中性色調的淺色背景(#ffffff),預設前景色為 #0e1116。內文的 WCAG 對比度為 18.91:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.21:1,最低 3.61:1。

色票整體色彩彩度適中,其中紅色為 #a0111f、綠色為 #024c1a、藍色為 #0349b4、洋紅為 #622cbc。此配色歸屬 GitHub 主題系列。

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

與 GitHub Light High Contrast 相似的配色

資料來源:iTerm2 Color Schemes (MIT)