本文へスキップ

Github Contrast

Github Contrast はダーク系のターミナル配色。背景色 #111111、文字色 #ffffff、コントラスト比 18.9:1

設定を取得
背景色
#111111
前景色
#ffffff
文字のコントラスト
18.88:1AAA
アクセントのコントラスト
8.44:1最小 2.87
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 Contrast の設定ファイル

16 種類の形式を、ひとつのパレットから生成

Github Contrast

~/.config/ghostty/themes/Github Contrast に保存し、config または config.ghostty に theme = Github Contrast を書く

Ghostty の配色をもっと見る
元ファイル
# Theme: Github Contrast (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/ja/schemes/github-contrast?format=ghostty

palette = 0=#1e1e1e
palette = 1=#ba0e2e
palette = 2=#7385bc
palette = 3=#66c4c4
palette = 4=#e53d67
palette = 5=#cccccc
palette = 6=#5a6fad
palette = 7=#ffffff
palette = 8=#373737
palette = 9=#e61f44
palette = 10=#b8c1dd
palette = 11=#b0e0e0
palette = 12=#f197ad
palette = 13=#ffffff
palette = 14=#9eaacf
palette = 15=#ffffff
background = #111111
foreground = #ffffff
cursor-color = #ffffff
cursor-text = #ffffff
selection-background = #008080
selection-foreground = #ffffff

Github Contrast のパレット

パレット各スロットの色値と背景に対する WCAG コントラスト比
カラースロットHEXRGBHSLOKLCHコントラスト
背景色background#111111rgb(17 17 17)hsl(0 0% 7%)oklch(17.8% 0.000 0)—
前景色foreground#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.88 AAA
カーソルcursor#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.88 AAA
カーソルの文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.88 AAA
選択範囲selection#008080rgb(0 128 128)hsl(180 100% 25%)oklch(54.3% 0.093 194.8)3.96 AA(大きな文字)
選択範囲の文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.88 AAA
黒color0#1e1e1ergb(30 30 30)hsl(0 0% 12%)oklch(23.5% 0.000 0)1.13 AA 未満
赤color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)2.87 AA 未満
緑color2#7385bcrgb(115 133 188)hsl(225 35% 59%)oklch(62.4% 0.086 269.9)5.22 AA
黄color3#66c4c4rgb(102 196 196)hsl(180 44% 58%)oklch(76.3% 0.089 195.4)9.22 AAA
青color4#e53d67rgb(229 61 103)hsl(345 76% 57%)oklch(62.0% 0.204 11.1)4.67 AA
マゼンタcolor5#ccccccrgb(204 204 204)hsl(0 0% 80%)oklch(84.5% 0.000 0)11.76 AAA
シアンcolor6#5a6fadrgb(90 111 173)hsl(225 34% 52%)oklch(55.2% 0.100 268.8)3.88 AA(大きな文字)
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.88 AAA
明るい黒color8#373737rgb(55 55 55)hsl(0 0% 22%)oklch(33.7% 0.000 0)1.59 AA 未満
明るい赤color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)4.18 AA(大きな文字)
明るい緑color10#b8c1ddrgb(184 193 221)hsl(225 35% 79%)oklch(81.3% 0.041 271.4)10.53 AAA
明るい黄color11#b0e0e0rgb(176 224 224)hsl(180 44% 78%)oklch(87.3% 0.050 196.3)13.11 AAA
明るい青color12#f197adrgb(241 151 173)hsl(345 76% 77%)oklch(77.4% 0.111 4.1)8.79 AAA
明るいマゼンタcolor13#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.88 AAA
明るいシアンcolor14#9eaacfrgb(158 170 207)hsl(225 34% 72%)oklch(74.1% 0.055 270.9)8.19 AAA
明るい白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.88 AAA

Github Contrast について

Github Contrast はニュートラルのダーク背景(#111111)を採用し、標準の前景色に #ffffff を使ったターミナル配色です。本文の WCAG コントラスト比は 18.88:1(AAA)、12 色の ANSI カラーは平均 8.44:1、最小 2.87:1 です。

パレット全体は適度な彩度で、赤 #ba0e2e、緑 #7385bc、青 #e53d67、マゼンタ #cccccc を基調としています。GitHub テーマファミリーに属する配色です。

Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 向けの設定ファイルを書き出せるほか、VS Code・Zed の統合ターミナル、CSS 変数、Tailwind CSS、JSON 形式にも対応しています。

Github Contrast に似た配色

データ出典:Rainglow (MIT)