跳到主要內容

Materia

Materia 是一套深色終端機配色(冷色),背景色 #263238,文字色 #cdd3de,對比度 8.8:1

取得設定檔
背景色
#263238
前景色
#cdd3de
文字對比度
8.75:1AAA
強調色對比度
6.93:1最低 4.01
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
❯

Materia 的設定檔

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

Materia

存到 ~/.config/ghostty/themes/Materia,再在 config 或 config.ghostty 裏寫 theme = Materia

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

palette = 0=#263238
palette = 1=#ec5f67
palette = 2=#8bd649
palette = 3=#ffcc00
palette = 4=#89ddff
palette = 5=#82aaff
palette = 6=#80cbc4
palette = 7=#cdd3de
palette = 8=#707880
palette = 9=#ec5f67
palette = 10=#8bd649
palette = 11=#ffcc00
palette = 12=#89ddff
palette = 13=#82aaff
palette = 14=#80cbc4
palette = 15=#ffffff
background = #263238
foreground = #cdd3de
cursor-color = #cdd3de
cursor-text = #263238
selection-background = #4c565e
selection-foreground = #cdd3de

Materia 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#263238rgb(38 50 56)hsl(200 19% 18%)oklch(30.9% 0.019 229.8)—
前景色foreground#cdd3dergb(205 211 222)hsl(219 20% 84%)oklch(86.6% 0.017 262.7)8.75 AAA
光標cursor#cdd3dergb(205 211 222)hsl(219 20% 84%)oklch(86.6% 0.017 262.7)8.75 AAA
光標文字cursorText#263238rgb(38 50 56)hsl(200 19% 18%)oklch(30.9% 0.019 229.8)1.00 低於 AA
選取範圍selection#4c565ergb(76 86 94)hsl(207 11% 33%)oklch(44.7% 0.018 242.1)1.75 低於 AA
選取文字selectionText#cdd3dergb(205 211 222)hsl(219 20% 84%)oklch(86.6% 0.017 262.7)8.75 AAA
黑color0#263238rgb(38 50 56)hsl(200 19% 18%)oklch(30.9% 0.019 229.8)1.00 低於 AA
紅color1#ec5f67rgb(236 95 103)hsl(357 79% 65%)oklch(66.8% 0.174 19.8)4.01 AA 大字體
綠color2#8bd649rgb(139 214 73)hsl(92 63% 56%)oklch(79.9% 0.188 133.1)7.40 AAA
黃color3#ffcc00rgb(255 204 0)hsl(48 100% 50%)oklch(86.5% 0.177 90.4)8.70 AAA
藍color4#89ddffrgb(137 221 255)hsl(197 100% 77%)oklch(85.6% 0.094 225.9)8.68 AAA
洋紅color5#82aaffrgb(130 170 255)hsl(221 100% 75%)oklch(74.4% 0.131 264.3)5.73 AA
青color6#80cbc4rgb(128 203 196)hsl(174 42% 65%)oklch(79.1% 0.075 188.2)7.05 AAA
白color7#cdd3dergb(205 211 222)hsl(219 20% 84%)oklch(86.6% 0.017 262.7)8.75 AAA
亮黑color8#707880rgb(112 120 128)hsl(210 7% 47%)oklch(56.9% 0.016 248.1)2.94 低於 AA
亮紅color9#ec5f67rgb(236 95 103)hsl(357 79% 65%)oklch(66.8% 0.174 19.8)4.01 AA 大字體
亮綠color10#8bd649rgb(139 214 73)hsl(92 63% 56%)oklch(79.9% 0.188 133.1)7.40 AAA
亮黃color11#ffcc00rgb(255 204 0)hsl(48 100% 50%)oklch(86.5% 0.177 90.4)8.70 AAA
亮藍color12#89ddffrgb(137 221 255)hsl(197 100% 77%)oklch(85.6% 0.094 225.9)8.68 AAA
亮洋紅color13#82aaffrgb(130 170 255)hsl(221 100% 75%)oklch(74.4% 0.131 264.3)5.73 AA
亮青color14#80cbc4rgb(128 203 196)hsl(174 42% 65%)oklch(79.1% 0.075 188.2)7.05 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)13.16 AAA

關於 Materia

Materia 採用冷色調的深色背景(#263238),預設前景色為 #cdd3de。正文的 WCAG 對比度為 8.75:1(AAA),12 種 ANSI 彩色槽位平均對比度 6.93:1,最低 4.01:1。

色板整體色彩飽和度適中,其中紅色為 #ec5f67、綠色為 #8bd649、藍色為 #89ddff、洋紅為 #82aaff。

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

與 Materia 相似的配色

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