跳到主要內容

Spacemacs

Spacemacs 是一套深色終端機配色(柔和),背景色 #1f2022,文字色 #a3a3a3,對比度 6.5:1

取得設定檔
背景色
#1f2022
前景色
#a3a3a3
文字對比度
6.46:1AA
強調色對比度
4.64:1最低 2.61
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
❯

Spacemacs 的設定檔

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

Spacemacs

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

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

palette = 0=#1f2022
palette = 1=#f2241f
palette = 2=#67b11d
palette = 3=#b1951d
palette = 4=#4f97d7
palette = 5=#a31db1
palette = 6=#2d9574
palette = 7=#a3a3a3
palette = 8=#585858
palette = 9=#f2241f
palette = 10=#67b11d
palette = 11=#b1951d
palette = 12=#4f97d7
palette = 13=#a31db1
palette = 14=#2d9574
palette = 15=#f8f8f8
background = #1f2022
foreground = #a3a3a3
cursor-color = #a3a3a3
cursor-text = #1f2022
selection-background = #3d3d3f
selection-foreground = #a3a3a3

Spacemacs 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1f2022rgb(31 32 34)hsl(220 5% 13%)oklch(24.3% 0.004 264.5)—
前景色foreground#a3a3a3rgb(163 163 163)hsl(0 0% 64%)oklch(71.5% 0.000 0)6.46 AA
游標cursor#a3a3a3rgb(163 163 163)hsl(0 0% 64%)oklch(71.5% 0.000 0)6.46 AA
游標文字cursorText#1f2022rgb(31 32 34)hsl(220 5% 13%)oklch(24.3% 0.004 264.5)1.00 低於 AA
選取範圍selection#3d3d3frgb(61 61 63)hsl(240 2% 24%)oklch(36.1% 0.003 286.2)1.50 低於 AA
選取文字selectionText#a3a3a3rgb(163 163 163)hsl(0 0% 64%)oklch(71.5% 0.000 0)6.46 AA
黑color0#1f2022rgb(31 32 34)hsl(220 5% 13%)oklch(24.3% 0.004 264.5)1.00 低於 AA
紅color1#f2241frgb(242 36 31)hsl(1 89% 54%)oklch(61.5% 0.236 28.5)3.92 AA 大字級
綠color2#67b11drgb(103 177 29)hsl(90 72% 40%)oklch(68.6% 0.186 133.7)6.12 AA
黃color3#b1951drgb(177 149 29)hsl(49 72% 40%)oklch(67.6% 0.131 94.6)5.58 AA
藍color4#4f97d7rgb(79 151 215)hsl(208 63% 58%)oklch(65.8% 0.120 247.6)5.23 AA
洋紅color5#a31db1rgb(163 29 177)hsl(294 72% 40%)oklch(52.1% 0.227 323.6)2.61 低於 AA
青color6#2d9574rgb(45 149 116)hsl(161 54% 38%)oklch(60.2% 0.107 167.6)4.40 AA 大字級
白color7#a3a3a3rgb(163 163 163)hsl(0 0% 64%)oklch(71.5% 0.000 0)6.46 AA
亮黑color8#585858rgb(88 88 88)hsl(0 0% 35%)oklch(46.0% 0.000 0)2.29 低於 AA
亮紅color9#f2241frgb(242 36 31)hsl(1 89% 54%)oklch(61.5% 0.236 28.5)3.92 AA 大字級
亮綠color10#67b11drgb(103 177 29)hsl(90 72% 40%)oklch(68.6% 0.186 133.7)6.12 AA
亮黃color11#b1951drgb(177 149 29)hsl(49 72% 40%)oklch(67.6% 0.131 94.6)5.58 AA
亮藍color12#4f97d7rgb(79 151 215)hsl(208 63% 58%)oklch(65.8% 0.120 247.6)5.23 AA
亮洋紅color13#a31db1rgb(163 29 177)hsl(294 72% 40%)oklch(52.1% 0.227 323.6)2.61 低於 AA
亮青color14#2d9574rgb(45 149 116)hsl(161 54% 38%)oklch(60.2% 0.107 167.6)4.40 AA 大字級
亮白color15#f8f8f8rgb(248 248 248)hsl(0 0% 97%)oklch(97.9% 0.000 0)15.35 AAA

關於 Spacemacs

Spacemacs 採用中性色調的深色背景(#1f2022),預設前景色為 #a3a3a3。內文的 WCAG 對比度為 6.46:1(AA),12 種 ANSI 彩色槽位平均對比度 4.64:1,最低 2.61:1。

色票整體色彩彩度適中,其中紅色為 #f2241f、綠色為 #67b11d、藍色為 #4f97d7、洋紅為 #a31db1。

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

與 Spacemacs 相似的配色

資料來源:Gogh (MIT OR Apache-2.0)