跳到主要內容

Horizon

Horizon 是一套深色終端機配色(冷色),背景色 #1c1e26,文字色 #d5d8da,對比度 11.6:1

取得設定檔
背景色
#1c1e26
前景色
#d5d8da
文字對比度
11.61:1AAA
強調色對比度
8.11:1最低 4.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
❯

Horizon 的設定檔

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

Horizon

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

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

palette = 0=#000000
palette = 1=#e95678
palette = 2=#29d398
palette = 3=#fab795
palette = 4=#26bbd9
palette = 5=#ee64ac
palette = 6=#59e1e3
palette = 7=#e5e5e5
palette = 8=#666666
palette = 9=#ec6a88
palette = 10=#3fdaa4
palette = 11=#fbc3a7
palette = 12=#3fc4de
palette = 13=#f075b5
palette = 14=#6be4e6
palette = 15=#e5e5e5
background = #1c1e26
foreground = #d5d8da
cursor-color = #6c6f93
cursor-text = #6c6f93
selection-background = #6c6f93
selection-foreground = #1c1e26

Horizon 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1c1e26rgb(28 30 38)hsl(228 15% 13%)oklch(23.7% 0.016 274.1)—
前景色foreground#d5d8dargb(213 216 218)hsl(204 6% 85%)oklch(88.0% 0.004 236.5)11.61 AAA
光標cursor#6c6f93rgb(108 111 147)hsl(235 15% 50%)oklch(55.3% 0.056 280.7)3.43 AA 大字體
光標文字cursorText#6c6f93rgb(108 111 147)hsl(235 15% 50%)oklch(55.3% 0.056 280.7)3.43 AA 大字體
選取範圍selection#6c6f93rgb(108 111 147)hsl(235 15% 50%)oklch(55.3% 0.056 280.7)3.43 AA 大字體
選取文字selectionText#1c1e26rgb(28 30 38)hsl(228 15% 13%)oklch(23.7% 0.016 274.1)1.00 低於 AA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.26 低於 AA
紅color1#e95678rgb(233 86 120)hsl(346 77% 63%)oklch(65.6% 0.183 9.6)4.80 AA
綠color2#29d398rgb(41 211 152)hsl(159 67% 49%)oklch(77.1% 0.157 163.4)8.60 AAA
黃color3#fab795rgb(250 183 149)hsl(20 91% 78%)oklch(83.4% 0.091 47.9)9.72 AAA
藍color4#26bbd9rgb(38 187 217)hsl(190 70% 50%)oklch(73.2% 0.123 215.7)7.28 AAA
洋紅color5#ee64acrgb(238 100 172)hsl(329 80% 66%)oklch(69.6% 0.186 350.6)5.58 AA
青color6#59e1e3rgb(89 225 227)hsl(181 71% 62%)oklch(83.7% 0.117 196.5)10.53 AAA
白color7#e5e5e5rgb(229 229 229)hsl(0 0% 90%)oklch(92.2% 0.000 0)13.20 AAA
亮黑color8#666666rgb(102 102 102)hsl(0 0% 40%)oklch(51.0% 0.000 0)2.90 低於 AA
亮紅color9#ec6a88rgb(236 106 136)hsl(346 77% 67%)oklch(69.0% 0.162 8.0)5.53 AA
亮綠color10#3fdaa4rgb(63 218 164)hsl(159 68% 55%)oklch(79.5% 0.150 165.0)9.32 AAA
亮黃color11#fbc3a7rgb(251 195 167)hsl(20 91% 82%)oklch(86.0% 0.075 47.8)10.66 AAA
亮藍color12#3fc4dergb(63 196 222)hsl(190 71% 56%)oklch(76.0% 0.117 213.7)8.05 AAA
亮洋紅color13#f075b5rgb(240 117 181)hsl(329 80% 70%)oklch(72.4% 0.166 349.6)6.27 AA
亮青color14#6be4e6rgb(107 228 230)hsl(181 71% 66%)oklch(85.1% 0.108 196.8)10.98 AAA
亮白color15#e5e5e5rgb(229 229 229)hsl(0 0% 90%)oklch(92.2% 0.000 0)13.20 AAA

關於 Horizon

Horizon 採用冷色調的深色背景(#1c1e26),預設前景色為 #d5d8da。正文的 WCAG 對比度為 11.61:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.11:1,最低 4.80:1。

色板整體色彩飽和度適中,其中紅色為 #e95678、綠色為 #29d398、藍色為 #26bbd9、洋紅為 #ee64ac。該配色歸屬 Horizon 主題系列。

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

與 Horizon 相似的配色

資料來源:iTerm2 Color Schemes (MIT)