跳到主要內容

Matrix

Matrix 是一套深色終端機配色(柔和、冷色),背景色 #0f191c,文字色 #426644,對比度 2.7:1

取得設定檔
背景色
#0f191c
前景色
#426644
文字對比度
2.73:1低於 AA
強調色對比度
8.89:1最低 2.12
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
❯

Matrix 的設定檔

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

Matrix

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

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

palette = 0=#0f191c
palette = 1=#23755a
palette = 2=#82d967
palette = 3=#ffd700
palette = 4=#3f5242
palette = 5=#409931
palette = 6=#50b45a
palette = 7=#507350
palette = 8=#688060
palette = 9=#2fc079
palette = 10=#90d762
palette = 11=#faff00
palette = 12=#4f7e7e
palette = 13=#11ff25
palette = 14=#c1ff8a
palette = 15=#678c61
background = #0f191c
foreground = #426644
cursor-color = #384545
cursor-text = #00ff00
selection-background = #18282e
selection-foreground = #00ff87

Matrix 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#0f191crgb(15 25 28)hsl(194 30% 8%)oklch(20.5% 0.016 218.3)—
前景色foreground#426644rgb(66 102 68)hsl(123 21% 33%)oklch(47.3% 0.068 145.7)2.73 低於 AA
游標cursor#384545rgb(56 69 69)hsl(180 10% 25%)oklch(37.9% 0.017 196.5)1.79 低於 AA
游標文字cursorText#00ff00rgb(0 255 0)hsl(120 100% 50%)oklch(86.6% 0.295 142.5)13.01 AAA
選取範圍selection#18282ergb(24 40 46)hsl(196 31% 14%)oklch(26.5% 0.024 223.5)1.17 低於 AA
選取文字selectionText#00ff87rgb(0 255 135)hsl(152 100% 50%)oklch(87.6% 0.229 152.4)13.31 AAA
黑color0#0f191crgb(15 25 28)hsl(194 30% 8%)oklch(20.5% 0.016 218.3)1.00 低於 AA
紅color1#23755argb(35 117 90)hsl(160 54% 30%)oklch(50.6% 0.090 167.0)3.20 AA 大字級
綠color2#82d967rgb(130 217 103)hsl(106 60% 63%)oklch(80.5% 0.172 138.8)10.26 AAA
黃color3#ffd700rgb(255 215 0)hsl(51 100% 50%)oklch(88.7% 0.182 95.3)12.73 AAA
藍color4#3f5242rgb(63 82 66)hsl(129 13% 28%)oklch(41.7% 0.035 149.3)2.12 低於 AA
洋紅color5#409931rgb(64 153 49)hsl(111 51% 40%)oklch(60.7% 0.164 140.9)4.95 AA
青color6#50b45argb(80 180 90)hsl(126 40% 51%)oklch(68.9% 0.158 145.5)6.82 AA
白color7#507350rgb(80 115 80)hsl(120 18% 38%)oklch(51.9% 0.067 144.5)3.32 AA 大字級
亮黑color8#688060rgb(104 128 96)hsl(105 14% 44%)oklch(57.2% 0.055 138.0)4.12 AA 大字級
亮紅color9#2fc079rgb(47 192 121)hsl(151 61% 47%)oklch(71.6% 0.158 156.4)7.60 AAA
亮綠color10#90d762rgb(144 215 98)hsl(96 59% 61%)oklch(80.7% 0.167 134.6)10.27 AAA
亮黃color11#faff00rgb(250 255 0)hsl(61 100% 50%)oklch(96.4% 0.212 111.2)16.47 AAA
亮藍color12#4f7e7ergb(79 126 126)hsl(180 23% 40%)oklch(56.0% 0.051 195.8)3.93 AA 大字級
亮洋紅color13#11ff25rgb(17 255 37)hsl(125 100% 53%)oklch(86.8% 0.288 143.0)13.06 AAA
亮青color14#c1ff8argb(193 255 138)hsl(92 100% 77%)oklch(93.3% 0.160 131.7)15.25 AAA
亮白color15#678c61rgb(103 140 97)hsl(112 18% 46%)oklch(60.1% 0.076 141.1)4.68 AA

關於 Matrix

Matrix 採用冷色調的深色背景(#0f191c),預設前景色為 #426644。內文的 WCAG 對比度為 2.73:1(低於 AA),12 種 ANSI 彩色槽位平均對比度 8.89:1,最低 2.12:1。

色票整體色彩彩度適中,其中紅色為 #23755a、綠色為 #82d967、藍色為 #3f5242、洋紅為 #409931。

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

與 Matrix 相似的配色

資料來源:iTerm2 Color Schemes (MIT)