跳到主要內容

Galaxy

Galaxy 是一套深色終端機配色(冷色),背景色 #1d2837,文字色 #ffffff,對比度 14.9:1

取得設定檔
背景色
#1d2837
前景色
#ffffff
文字對比度
14.88:1AAA
強調色對比度
6.28:1最低 2.66
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
❯

Galaxy 的設定檔

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

Galaxy

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

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

palette = 0=#000000
palette = 1=#f9555f
palette = 2=#21b089
palette = 3=#fef02a
palette = 4=#589df6
palette = 5=#944d95
palette = 6=#1f9ee7
palette = 7=#bbbbbb
palette = 8=#555555
palette = 9=#fa8c8f
palette = 10=#35bb9a
palette = 11=#ffff55
palette = 12=#589df6
palette = 13=#e75699
palette = 14=#3979bc
palette = 15=#ffffff
background = #1d2837
foreground = #ffffff
cursor-color = #bbbbbb
cursor-text = #ffffff
selection-background = #b5d5ff
selection-foreground = #000000

Galaxy 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1d2837rgb(29 40 55)hsl(215 31% 16%)oklch(27.4% 0.032 256.3)—
前景色foreground#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.88 AAA
游標cursor#bbbbbbrgb(187 187 187)hsl(0 0% 73%)oklch(79.2% 0.000 0)7.75 AAA
游標文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.88 AAA
選取範圍selection#b5d5ffrgb(181 213 255)hsl(214 100% 85%)oklch(86.4% 0.068 255.3)9.87 AAA
選取文字selectionText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.41 低於 AA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.41 低於 AA
紅color1#f9555frgb(249 85 95)hsl(356 93% 65%)oklch(67.4% 0.199 20.9)4.60 AA
綠color2#21b089rgb(33 176 137)hsl(164 68% 41%)oklch(67.6% 0.129 168.8)5.41 AA
黃color3#fef02argb(254 240 42)hsl(56 99% 58%)oklch(93.7% 0.191 105.0)12.55 AAA
藍color4#589df6rgb(88 157 246)hsl(214 90% 65%)oklch(69.1% 0.149 255.6)5.36 AA
洋紅color5#944d95rgb(148 77 149)hsl(299 32% 44%)oklch(53.3% 0.134 326.7)2.66 低於 AA
青color6#1f9ee7rgb(31 158 231)hsl(202 81% 51%)oklch(66.9% 0.149 241.3)5.03 AA
白color7#bbbbbbrgb(187 187 187)hsl(0 0% 73%)oklch(79.2% 0.000 0)7.75 AAA
亮黑color8#555555rgb(85 85 85)hsl(0 0% 33%)oklch(45.0% 0.000 0)2.00 低於 AA
亮紅color9#fa8c8frgb(250 140 143)hsl(358 92% 76%)oklch(75.9% 0.133 19.0)6.53 AA
亮綠color10#35bb9argb(53 187 154)hsl(165 56% 47%)oklch(71.3% 0.123 172.4)6.18 AA
亮黃color11#ffff55rgb(255 255 85)hsl(60 100% 67%)oklch(97.1% 0.183 109.4)13.95 AAA
亮藍color12#589df6rgb(88 157 246)hsl(214 90% 65%)oklch(69.1% 0.149 255.6)5.36 AA
亮洋紅color13#e75699rgb(231 86 153)hsl(332 75% 62%)oklch(66.3% 0.190 354.9)4.39 AA 大字級
亮青color14#3979bcrgb(57 121 188)hsl(211 53% 48%)oklch(56.6% 0.123 251.8)3.29 AA 大字級
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.88 AAA

關於 Galaxy

Galaxy 採用冷色調的深色背景(#1d2837),預設前景色為 #ffffff。內文的 WCAG 對比度為 14.88:1(AAA),12 種 ANSI 彩色槽位平均對比度 6.28:1,最低 2.66:1。

色票整體色彩彩度適中,其中紅色為 #f9555f、綠色為 #21b089、藍色為 #589df6、洋紅為 #944d95。

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

與 Galaxy 相似的配色

資料來源:iTerm2 Color Schemes (MIT)