跳到主要內容

Material Dark

Material Dark 是一套深色終端機配色,背景色 #232322,文字色 #e5e5e5,對比度 12.5:1

取得設定檔
背景色
#232322
前景色
#e5e5e5
文字對比度
12.49:1AAA
強調色對比度
4.84:1最低 1.31
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
❯

Material Dark 的設定檔

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

Material Dark

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

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

palette = 0=#212121
palette = 1=#b7141f
palette = 2=#457b24
palette = 3=#f6981e
palette = 4=#134eb2
palette = 5=#560088
palette = 6=#0e717c
palette = 7=#efefef
palette = 8=#424242
palette = 9=#e83b3f
palette = 10=#7aba3a
palette = 11=#ffea2e
palette = 12=#54a4f3
palette = 13=#aa4dbc
palette = 14=#26bbd1
palette = 15=#d9d9d9
background = #232322
foreground = #e5e5e5
cursor-color = #16afca
cursor-text = #dfdfdf
selection-background = #dfdfdf
selection-foreground = #3d3d3d

Material Dark 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#232322rgb(35 35 34)hsl(60 1% 14%)oklch(25.6% 0.002 106.5)—
前景色foreground#e5e5e5rgb(229 229 229)hsl(0 0% 90%)oklch(92.2% 0.000 0)12.49 AAA
游標cursor#16afcargb(22 175 202)hsl(189 80% 44%)oklch(69.5% 0.119 214.3)6.01 AA
游標文字cursorText#dfdfdfrgb(223 223 223)hsl(0 0% 87%)oklch(90.4% 0.000 0)11.80 AAA
選取範圍selection#dfdfdfrgb(223 223 223)hsl(0 0% 87%)oklch(90.4% 0.000 0)11.80 AAA
選取文字selectionText#3d3d3drgb(61 61 61)hsl(0 0% 24%)oklch(36.0% 0.000 0)1.45 低於 AA
黑color0#212121rgb(33 33 33)hsl(0 0% 13%)oklch(24.8% 0.000 0)1.02 低於 AA
紅color1#b7141frgb(183 20 31)hsl(356 80% 40%)oklch(49.8% 0.192 25.8)2.35 低於 AA
綠color2#457b24rgb(69 123 36)hsl(97 55% 31%)oklch(52.6% 0.132 135.9)3.08 AA 大字級
黃color3#f6981ergb(246 152 30)hsl(34 92% 54%)oklch(76.0% 0.163 65.2)7.06 AAA
藍color4#134eb2rgb(19 78 178)hsl(218 81% 39%)oklch(45.2% 0.170 260.7)2.07 低於 AA
洋紅color5#560088rgb(86 0 136)hsl(278 100% 27%)oklch(36.1% 0.187 305.7)1.31 低於 AA
青color6#0e717crgb(14 113 124)hsl(186 80% 27%)oklch(50.3% 0.083 207.1)2.75 低於 AA
白color7#efefefrgb(239 239 239)hsl(0 0% 94%)oklch(95.2% 0.000 0)13.68 AAA
亮黑color8#424242rgb(66 66 66)hsl(0 0% 26%)oklch(37.9% 0.000 0)1.57 低於 AA
亮紅color9#e83b3frgb(232 59 63)hsl(359 79% 57%)oklch(61.6% 0.209 24.8)3.84 AA 大字級
亮綠color10#7aba3argb(122 186 58)hsl(90 52% 48%)oklch(72.0% 0.171 132.3)6.68 AA
亮黃color11#ffea2ergb(255 234 46)hsl(54 100% 59%)oklch(92.6% 0.185 102.4)12.78 AAA
亮藍color12#54a4f3rgb(84 164 243)hsl(210 87% 64%)oklch(70.3% 0.141 250.2)5.98 AA
亮洋紅color13#aa4dbcrgb(170 77 188)hsl(290 45% 52%)oklch(58.2% 0.185 320.9)3.37 AA 大字級
亮青color14#26bbd1rgb(38 187 209)hsl(188 69% 48%)oklch(72.9% 0.119 210.4)6.83 AA
亮白color15#d9d9d9rgb(217 217 217)hsl(0 0% 85%)oklch(88.5% 0.000 0)11.14 AAA

關於 Material Dark

Material Dark 採用中性色調的深色背景(#232322),預設前景色為 #e5e5e5。內文的 WCAG 對比度為 12.49:1(AAA),12 種 ANSI 彩色槽位平均對比度 4.84:1,最低 1.31:1。

色票整體色彩彩度適中,其中紅色為 #b7141f、綠色為 #457b24、藍色為 #134eb2、洋紅為 #560088。此配色歸屬 Material 主題系列。

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

與 Material Dark 相似的配色

資料來源:iTerm2 Color Schemes (MIT)