跳到正文

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/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)