跳到主要內容

Spacegray

Spacegray 是一套深色終端機配色(低彩度、冷色),背景色 #20242d,文字色 #b3b8c3,對比度 7.8:1

取得設定檔
背景色
#20242d
前景色
#b3b8c3
文字對比度
7.81:1AAA
強調色對比度
5.57:1最低 2.95
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
❯

Spacegray 的設定檔

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

Spacegray

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

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

palette = 0=#000000
palette = 1=#b04b57
palette = 2=#87b379
palette = 3=#e5c179
palette = 4=#7d8fa4
palette = 5=#a47996
palette = 6=#85a7a5
palette = 7=#b3b8c3
palette = 8=#000000
palette = 9=#b04b57
palette = 10=#87b379
palette = 11=#e5c179
palette = 12=#7d8fa4
palette = 13=#a47996
palette = 14=#85a7a5
palette = 15=#ffffff
background = #20242d
foreground = #b3b8c3
cursor-color = #b3b8c3
cursor-text = #1d1f21
selection-background = #16181e
selection-foreground = #b3b8c3

Spacegray 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#20242drgb(32 36 45)hsl(222 17% 15%)oklch(26.0% 0.018 266.3)—
前景色foreground#b3b8c3rgb(179 184 195)hsl(221 12% 73%)oklch(78.2% 0.017 266.3)7.81 AAA
游標cursor#b3b8c3rgb(179 184 195)hsl(221 12% 73%)oklch(78.2% 0.017 266.3)7.81 AAA
游標文字cursorText#1d1f21rgb(29 31 33)hsl(210 6% 12%)oklch(23.8% 0.005 248.0)1.06 低於 AA
選取範圍selection#16181ergb(22 24 30)hsl(225 15% 10%)oklch(21.0% 0.012 270.8)1.14 低於 AA
選取文字selectionText#b3b8c3rgb(179 184 195)hsl(221 12% 73%)oklch(78.2% 0.017 266.3)7.81 AAA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.35 低於 AA
紅color1#b04b57rgb(176 75 87)hsl(353 40% 49%)oklch(54.7% 0.132 15.3)2.95 低於 AA
綠color2#87b379rgb(135 179 121)hsl(106 28% 59%)oklch(72.0% 0.094 138.3)6.48 AA
黃color3#e5c179rgb(229 193 121)hsl(40 68% 69%)oklch(82.7% 0.099 83.8)9.05 AAA
藍color4#7d8fa4rgb(125 143 164)hsl(212 18% 57%)oklch(64.3% 0.038 252.4)4.69 AA
洋紅color5#a47996rgb(164 121 150)hsl(320 19% 56%)oklch(62.8% 0.067 338.9)4.26 AA 大字級
青color6#85a7a5rgb(133 167 165)hsl(176 16% 59%)oklch(70.2% 0.037 191.9)5.97 AA
白color7#b3b8c3rgb(179 184 195)hsl(221 12% 73%)oklch(78.2% 0.017 266.3)7.81 AAA
亮黑color8#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.35 低於 AA
亮紅color9#b04b57rgb(176 75 87)hsl(353 40% 49%)oklch(54.7% 0.132 15.3)2.95 低於 AA
亮綠color10#87b379rgb(135 179 121)hsl(106 28% 59%)oklch(72.0% 0.094 138.3)6.48 AA
亮黃color11#e5c179rgb(229 193 121)hsl(40 68% 69%)oklch(82.7% 0.099 83.8)9.05 AAA
亮藍color12#7d8fa4rgb(125 143 164)hsl(212 18% 57%)oklch(64.3% 0.038 252.4)4.69 AA
亮洋紅color13#a47996rgb(164 121 150)hsl(320 19% 56%)oklch(62.8% 0.067 338.9)4.26 AA 大字級
亮青color14#85a7a5rgb(133 167 165)hsl(176 16% 59%)oklch(70.2% 0.037 191.9)5.97 AA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)15.54 AAA

關於 Spacegray

Spacegray 採用冷色調的深色背景(#20242d),預設前景色為 #b3b8c3。內文的 WCAG 對比度為 7.81:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.57:1,最低 2.95:1。

色票整體色彩彩度偏低,其中紅色為 #b04b57、綠色為 #87b379、藍色為 #7d8fa4、洋紅為 #a47996。此配色歸屬 Spacegray 主題系列。

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

與 Spacegray 相似的配色

資料來源:iTerm2 Color Schemes (MIT)