跳到正文

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/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)