跳到主要內容

Horizon Contrast

Horizon Contrast 是一套深色終端機配色(鮮豔、冷色),背景色 #11101c,文字色 #edebe6,對比度 15.8:1

取得設定檔
背景色
#11101c
前景色
#edebe6
文字對比度
15.81:1AAA
強調色對比度
7.50:1最低 2.86
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
❯

Horizon Contrast 的設定檔

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

Horizon Contrast

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

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

palette = 0=#1b192c
palette = 1=#ba0e2e
palette = 2=#fd8a25
palette = 3=#b133dc
palette = 4=#fed230
palette = 5=#e5194b
palette = 6=#e524a9
palette = 7=#f8f7f5
palette = 8=#2f2c4d
palette = 9=#e61f44
palette = 10=#fec08a
palette = 11=#d28aeb
palette = 12=#fee895
palette = 13=#f07492
palette = 14=#f07fcd
palette = 15=#ffffff
background = #11101c
foreground = #edebe6
cursor-color = #f8f8f0
cursor-text = #edebe6
selection-background = #b133dc
selection-foreground = #ffffff

Horizon Contrast 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#11101crgb(17 16 28)hsl(245 27% 9%)oklch(18.1% 0.024 287.5)—
前景色foreground#edebe6rgb(237 235 230)hsl(43 16% 92%)oklch(94.0% 0.007 88.6)15.81 AAA
游標cursor#f8f8f0rgb(248 248 240)hsl(60 36% 96%)oklch(97.7% 0.011 106.6)17.65 AAA
游標文字cursorText#edebe6rgb(237 235 230)hsl(43 16% 92%)oklch(94.0% 0.007 88.6)15.81 AAA
選取範圍selection#b133dcrgb(177 51 220)hsl(285 71% 53%)oklch(58.5% 0.248 315.6)3.93 AA 大字級
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.84 AAA
黑color0#1b192crgb(27 25 44)hsl(246 28% 14%)oklch(22.6% 0.037 287.9)1.10 低於 AA
紅color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)2.86 低於 AA
綠color2#fd8a25rgb(253 138 37)hsl(28 98% 57%)oklch(74.6% 0.173 55.2)7.93 AAA
黃color3#b133dcrgb(177 51 220)hsl(285 71% 53%)oklch(58.5% 0.248 315.6)3.93 AA 大字級
藍color4#fed230rgb(254 210 48)hsl(47 99% 59%)oklch(87.7% 0.169 92.3)12.99 AAA
洋紅color5#e5194brgb(229 25 75)hsl(345 80% 50%)oklch(59.2% 0.227 16.7)4.10 AA 大字級
青color6#e524a9rgb(229 36 169)hsl(319 79% 52%)oklch(62.5% 0.248 345.0)4.63 AA
白color7#f8f7f5rgb(248 247 245)hsl(40 18% 97%)oklch(97.6% 0.003 84.6)17.60 AAA
亮黑color8#2f2c4drgb(47 44 77)hsl(245 27% 24%)oklch(31.3% 0.058 286.7)1.42 低於 AA
亮紅color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)4.17 AA 大字級
亮綠color10#fec08argb(254 192 138)hsl(28 98% 77%)oklch(85.2% 0.100 61.9)11.77 AAA
亮黃color11#d28aebrgb(210 138 235)hsl(285 71% 73%)oklch(74.1% 0.154 317.0)7.69 AAA
亮藍color12#fee895rgb(254 232 149)hsl(47 98% 79%)oklch(93.1% 0.105 95.0)15.42 AAA
亮洋紅color13#f07492rgb(240 116 146)hsl(345 81% 70%)oklch(71.1% 0.155 6.6)6.83 AA
亮青color14#f07fcdrgb(240 127 205)hsl(319 79% 72%)oklch(74.6% 0.166 340.2)7.74 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.84 AAA

關於 Horizon Contrast

Horizon Contrast 採用冷色調的深色背景(#11101c),預設前景色為 #edebe6。內文的 WCAG 對比度為 15.81:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.50:1,最低 2.86:1。

色票整體色彩彩度較高,其中紅色為 #ba0e2e、綠色為 #fd8a25、藍色為 #fed230、洋紅為 #e5194b。此配色歸屬 Horizon 主題系列。

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

與 Horizon Contrast 相似的配色

資料來源:Rainglow (MIT)