跳到主要內容

Heroku Contrast

Heroku Contrast 是一套深色終端機配色(純黑),背景色 #0b0b0f,文字色 #c8c7d5,對比度 11.8:1

取得設定檔
背景色
#0b0b0f
前景色
#c8c7d5
文字對比度
11.77:1AAA
強調色對比度
9.76:1最低 2.80
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
❯

Heroku Contrast 的設定檔

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

Heroku Contrast

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

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

palette = 0=#16161e
palette = 1=#ba0e2e
palette = 2=#585480
palette = 3=#7873ae
palette = 4=#ffffff
palette = 5=#7873ae
palette = 6=#a6fa62
palette = 7=#d6d6e0
palette = 8=#2b2b3b
palette = 9=#e61f44
palette = 10=#8c89b1
palette = 11=#b6b4d3
palette = 12=#ffffff
palette = 13=#b6b4d3
palette = 14=#defdc5
palette = 15=#f3f3f6
background = #0b0b0f
foreground = #c8c7d5
cursor-color = #f8f8f0
cursor-text = #c8c7d5
selection-background = #7873ae
selection-foreground = #ffffff

Heroku Contrast 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#0b0b0frgb(11 11 15)hsl(240 15% 5%)oklch(15.2% 0.009 285.3)—
前景色foreground#c8c7d5rgb(200 199 213)hsl(244 14% 81%)oklch(83.5% 0.019 289.3)11.77 AAA
游標cursor#f8f8f0rgb(248 248 240)hsl(60 36% 96%)oklch(97.7% 0.011 106.6)18.41 AAA
游標文字cursorText#c8c7d5rgb(200 199 213)hsl(244 14% 81%)oklch(83.5% 0.019 289.3)11.77 AAA
選取範圍selection#7873aergb(120 115 174)hsl(245 27% 57%)oklch(58.4% 0.090 287.2)4.55 AA
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)19.64 AAA
黑color0#16161ergb(22 22 30)hsl(240 15% 10%)oklch(20.4% 0.016 284.9)1.09 低於 AA
紅color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)2.98 低於 AA
綠color2#585480rgb(88 84 128)hsl(245 21% 42%)oklch(46.9% 0.071 287.5)2.80 低於 AA
黃color3#7873aergb(120 115 174)hsl(245 27% 57%)oklch(58.4% 0.090 287.2)4.55 AA
藍color4#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)19.64 AAA
洋紅color5#7873aergb(120 115 174)hsl(245 27% 57%)oklch(58.4% 0.090 287.2)4.55 AA
青color6#a6fa62rgb(166 250 98)hsl(93 94% 68%)oklch(90.1% 0.202 133.4)15.41 AAA
白color7#d6d6e0rgb(214 214 224)hsl(240 14% 86%)oklch(87.9% 0.014 286.1)13.61 AAA
亮黑color8#2b2b3brgb(43 43 59)hsl(240 16% 20%)oklch(29.6% 0.029 284.5)1.41 低於 AA
亮紅color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)4.34 AA 大字級
亮綠color10#8c89b1rgb(140 137 177)hsl(245 20% 62%)oklch(64.7% 0.059 288.1)5.92 AA
亮黃color11#b6b4d3rgb(182 180 211)hsl(244 26% 77%)oklch(78.2% 0.044 288.3)9.78 AAA
亮藍color12#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)19.64 AAA
亮洋紅color13#b6b4d3rgb(182 180 211)hsl(244 26% 77%)oklch(78.2% 0.044 288.3)9.78 AAA
亮青color14#defdc5rgb(222 253 197)hsl(93 93% 88%)oklch(95.8% 0.080 131.4)17.74 AAA
亮白color15#f3f3f6rgb(243 243 246)hsl(240 14% 96%)oklch(96.5% 0.004 286.3)17.74 AAA

關於 Heroku Contrast

Heroku Contrast 採用中性色調的深色背景(#0b0b0f),預設前景色為 #c8c7d5。內文的 WCAG 對比度為 11.77:1(AAA),12 種 ANSI 彩色槽位平均對比度 9.76:1,最低 2.80:1。

色票整體色彩彩度適中,其中紅色為 #ba0e2e、綠色為 #585480、藍色為 #ffffff、洋紅為 #7873ae。

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

與 Heroku Contrast 相似的配色

資料來源:Rainglow (MIT)