跳到主要內容

MaterialDark

MaterialDark 是一套深色終端機配色,背景色 #222221,文字色 #e4e4e4,對比度 12.5:1

取得設定檔
背景色
#222221
前景色
#e4e4e4
文字對比度
12.52:1AAA
強調色對比度
4.87:1最低 1.32
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
❯

MaterialDark 的設定檔

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

MaterialDark

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

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

palette = 0=#212121
palette = 1=#b7141e
palette = 2=#457b23
palette = 3=#f5971d
palette = 4=#134eb2
palette = 5=#550087
palette = 6=#0e707c
palette = 7=#eeeeee
palette = 8=#424242
palette = 9=#e83a3f
palette = 10=#7aba39
palette = 11=#fee92e
palette = 12=#53a4f3
palette = 13=#a94dbb
palette = 14=#26bad1
palette = 15=#d8d8d8
background = #222221
foreground = #e4e4e4
cursor-color = #16aec9
cursor-text = #222221
selection-background = #dedede
selection-foreground = #222221

MaterialDark 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#222221rgb(34 34 33)hsl(60 1% 13%)oklch(25.2% 0.002 106.5)—
前景色foreground#e4e4e4rgb(228 228 228)hsl(0 0% 89%)oklch(91.9% 0.000 0)12.52 AAA
游標cursor#16aec9rgb(22 174 201)hsl(189 80% 44%)oklch(69.2% 0.119 214.4)6.01 AA
游標文字cursorText#222221rgb(34 34 33)hsl(60 1% 13%)oklch(25.2% 0.002 106.5)1.00 低於 AA
選取範圍selection#dededergb(222 222 222)hsl(0 0% 87%)oklch(90.1% 0.000 0)11.84 AAA
選取文字selectionText#222221rgb(34 34 33)hsl(60 1% 13%)oklch(25.2% 0.002 106.5)1.00 低於 AA
黑color0#212121rgb(33 33 33)hsl(0 0% 13%)oklch(24.8% 0.000 0)1.01 低於 AA
紅color1#b7141ergb(183 20 30)hsl(356 80% 40%)oklch(49.8% 0.192 26.0)2.38 低於 AA
綠color2#457b23rgb(69 123 35)hsl(97 56% 31%)oklch(52.6% 0.133 135.7)3.12 AA 大字級
黃color3#f5971drgb(245 151 29)hsl(34 92% 54%)oklch(75.7% 0.163 65.1)7.07 AAA
藍color4#134eb2rgb(19 78 178)hsl(218 81% 39%)oklch(45.2% 0.170 260.7)2.09 低於 AA
洋紅color5#550087rgb(85 0 135)hsl(278 100% 26%)oklch(35.8% 0.186 305.5)1.32 低於 AA
青color6#0e707crgb(14 112 124)hsl(187 80% 27%)oklch(50.0% 0.083 208.3)2.75 低於 AA
白color7#eeeeeergb(238 238 238)hsl(0 0% 93%)oklch(94.9% 0.000 0)13.72 AAA
亮黑color8#424242rgb(66 66 66)hsl(0 0% 26%)oklch(37.9% 0.000 0)1.58 低於 AA
亮紅color9#e83a3frgb(232 58 63)hsl(358 79% 57%)oklch(61.5% 0.210 24.6)3.87 AA 大字級
亮綠color10#7aba39rgb(122 186 57)hsl(90 53% 48%)oklch(72.0% 0.172 132.2)6.76 AA
亮黃color11#fee92ergb(254 233 46)hsl(54 99% 59%)oklch(92.3% 0.184 102.4)12.82 AAA
亮藍color12#53a4f3rgb(83 164 243)hsl(210 87% 64%)oklch(70.3% 0.141 250.0)6.05 AA
亮洋紅color13#a94dbbrgb(169 77 187)hsl(290 45% 52%)oklch(58.0% 0.183 320.8)3.39 AA 大字級
亮青color14#26bad1rgb(38 186 209)hsl(188 69% 48%)oklch(72.6% 0.119 211.2)6.84 AA
亮白color15#d8d8d8rgb(216 216 216)hsl(0 0% 85%)oklch(88.2% 0.000 0)11.17 AAA

關於 MaterialDark

MaterialDark 採用中性色調的深色背景(#222221),預設前景色為 #e4e4e4。內文的 WCAG 對比度為 12.52:1(AAA),12 種 ANSI 彩色槽位平均對比度 4.87:1,最低 1.32:1。

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

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

與 MaterialDark 相似的配色

資料來源:Kitty Themes (MIT)