跳到主要內容

Horizons

Horizons 是一套淺色終端機配色,背景色 #f8fafc,文字色 #0f172a,對比度 17.1:1

取得設定檔
背景色
#f8fafc
前景色
#0f172a
文字對比度
17.06:1AAA
強調色對比度
7.51:1最低 5.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
❯

Horizons 的設定檔

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

Horizons

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

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

palette = 0=#283548
palette = 1=#761515
palette = 2=#126b32
palette = 3=#755600
palette = 4=#174da6
palette = 5=#65349a
palette = 6=#00657a
palette = 7=#3d4858
palette = 8=#536071
palette = 9=#7d1818
palette = 10=#16713a
palette = 11=#7a5c00
palette = 12=#123d82
palette = 13=#6c3ca0
palette = 14=#006c81
palette = 15=#465264
background = #f8fafc
foreground = #0f172a
cursor-color = #8a4300
cursor-text = #f8fafc
selection-background = #e2e8f0
selection-foreground = #0f172a

Horizons 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#f8fafcrgb(248 250 252)hsl(210 40% 98%)oklch(98.4% 0.003 247.9)—
前景色foreground#0f172argb(15 23 42)hsl(222 47% 11%)oklch(20.8% 0.040 265.8)17.06 AAA
光標cursor#8a4300rgb(138 67 0)hsl(29 100% 27%)oklch(46.5% 0.117 53.6)6.96 AA
光標文字cursorText#f8fafcrgb(248 250 252)hsl(210 40% 98%)oklch(98.4% 0.003 247.9)1.00 低於 AA
選取範圍selection#e2e8f0rgb(226 232 240)hsl(214 32% 91%)oklch(92.9% 0.013 255.5)1.18 低於 AA
選取文字selectionText#0f172argb(15 23 42)hsl(222 47% 11%)oklch(20.8% 0.040 265.8)17.06 AAA
黑color0#283548rgb(40 53 72)hsl(216 29% 22%)oklch(32.6% 0.038 257.8)11.86 AAA
紅color1#761515rgb(118 21 21)hsl(0 70% 27%)oklch(37.0% 0.131 26.5)10.63 AAA
綠color2#126b32rgb(18 107 50)hsl(142 71% 25%)oklch(46.4% 0.120 149.9)6.32 AA
黃color3#755600rgb(117 86 0)hsl(44 100% 23%)oklch(47.3% 0.097 84.3)6.50 AA
藍color4#174da6rgb(23 77 166)hsl(217 76% 37%)oklch(44.1% 0.154 260.2)7.58 AAA
洋紅color5#65349argb(101 52 154)hsl(269 50% 40%)oklch(44.1% 0.160 302.3)7.99 AAA
青color6#00657argb(0 101 122)hsl(190 100% 24%)oklch(46.8% 0.084 218.6)6.39 AA
白color7#3d4858rgb(61 72 88)hsl(216 18% 29%)oklch(39.8% 0.031 257.7)8.86 AAA
亮黑color8#536071rgb(83 96 113)hsl(214 15% 38%)oklch(48.4% 0.032 255.2)6.12 AA
亮紅color9#7d1818rgb(125 24 24)hsl(0 68% 29%)oklch(38.7% 0.136 26.4)9.96 AAA
亮綠color10#16713argb(22 113 58)hsl(144 67% 26%)oklch(48.4% 0.119 151.4)5.81 AA
亮黃color11#7a5c00rgb(122 92 0)hsl(45 100% 24%)oklch(49.2% 0.101 86.4)5.98 AA
亮藍color12#123d82rgb(18 61 130)hsl(217 76% 29%)oklch(37.5% 0.126 259.8)9.96 AAA
亮洋紅color13#6c3ca0rgb(108 60 160)hsl(269 45% 43%)oklch(46.5% 0.157 302.9)7.19 AAA
亮青color14#006c81rgb(0 108 129)hsl(190 100% 25%)oklch(49.0% 0.088 217.4)5.80 AA
亮白color15#465264rgb(70 82 100)hsl(216 18% 33%)oklch(43.5% 0.034 258.4)7.57 AAA

關於 Horizons

Horizons 採用中性色調的淺色背景(#f8fafc),預設前景色為 #0f172a。正文的 WCAG 對比度為 17.06:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.51:1,最低 5.80:1。

色板整體色彩飽和度適中,其中紅色為 #761515、綠色為 #126b32、藍色為 #174da6、洋紅為 #65349a。該配色歸屬 Horizon 主題系列。

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

與 Horizons 相似的配色

資料來源:iTerm2 Color Schemes (MIT)