跳到主要內容

Material Design Colors

Material Design Colors 是一套深色終端機配色(冷色),背景色 #1d262a,文字色 #e7ebed,對比度 12.8:1

取得設定檔
背景色
#1d262a
前景色
#e7ebed
文字對比度
12.84:1AAA
強調色對比度
8.83:1最低 4.10
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 Design Colors 的設定檔

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

Material Design Colors

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

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

palette = 0=#435b67
palette = 1=#fc3841
palette = 2=#5cf19e
palette = 3=#fed032
palette = 4=#37b6ff
palette = 5=#fc226e
palette = 6=#59ffd1
palette = 7=#ffffff
palette = 8=#a1b0b8
palette = 9=#fc746d
palette = 10=#adf7be
palette = 11=#fee16c
palette = 12=#70cfff
palette = 13=#fc669b
palette = 14=#9affe6
palette = 15=#ffffff
background = #1d262a
foreground = #e7ebed
cursor-color = #eaeaea
cursor-text = #000000
selection-background = #4e6a78
selection-foreground = #e7ebed

Material Design Colors 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1d262argb(29 38 42)hsl(198 18% 14%)oklch(26.2% 0.015 226.7)—
前景色foreground#e7ebedrgb(231 235 237)hsl(200 14% 92%)oklch(93.8% 0.005 228.8)12.84 AAA
游標cursor#eaeaeargb(234 234 234)hsl(0 0% 92%)oklch(93.7% 0.000 0)12.81 AAA
游標文字cursorText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.36 低於 AA
選取範圍selection#4e6a78rgb(78 106 120)hsl(200 21% 39%)oklch(50.8% 0.040 230.1)2.68 低於 AA
選取文字selectionText#e7ebedrgb(231 235 237)hsl(200 14% 92%)oklch(93.8% 0.005 228.8)12.84 AAA
黑color0#435b67rgb(67 91 103)hsl(200 21% 33%)oklch(45.6% 0.035 230.1)2.15 低於 AA
紅color1#fc3841rgb(252 56 65)hsl(357 97% 60%)oklch(64.9% 0.230 24.5)4.24 AA 大字級
綠color2#5cf19ergb(92 241 158)hsl(147 84% 65%)oklch(85.8% 0.173 155.4)10.66 AAA
黃color3#fed032rgb(254 208 50)hsl(46 99% 60%)oklch(87.3% 0.167 91.2)10.48 AAA
藍color4#37b6ffrgb(55 182 255)hsl(202 100% 61%)oklch(74.1% 0.150 239.5)6.82 AA
洋紅color5#fc226ergb(252 34 110)hsl(339 97% 56%)oklch(64.4% 0.244 8.9)4.10 AA 大字級
青color6#59ffd1rgb(89 255 209)hsl(163 100% 67%)oklch(90.2% 0.152 170.8)12.22 AAA
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)15.41 AAA
亮黑color8#a1b0b8rgb(161 176 184)hsl(201 14% 68%)oklch(74.8% 0.020 230.8)6.91 AA
亮紅color9#fc746drgb(252 116 109)hsl(3 96% 71%)oklch(72.0% 0.168 25.1)5.77 AA
亮綠color10#adf7bergb(173 247 190)hsl(134 82% 82%)oklch(91.3% 0.107 151.0)12.34 AAA
亮黃color11#fee16crgb(254 225 108)hsl(48 99% 71%)oklch(91.1% 0.140 95.6)11.89 AAA
亮藍color12#70cfffrgb(112 207 255)hsl(200 100% 72%)oklch(81.4% 0.113 232.4)8.85 AAA
亮洋紅color13#fc669brgb(252 102 155)hsl(339 96% 69%)oklch(71.3% 0.189 1.1)5.51 AA
亮青color14#9affe6rgb(154 255 230)hsl(165 100% 80%)oklch(93.1% 0.102 176.3)13.08 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)15.41 AAA

關於 Material Design Colors

Material Design Colors 採用冷色調的深色背景(#1d262a),預設前景色為 #e7ebed。內文的 WCAG 對比度為 12.84:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.83:1,最低 4.10:1。

色票整體色彩彩度適中,其中紅色為 #fc3841、綠色為 #5cf19e、藍色為 #37b6ff、洋紅為 #fc226e。此配色歸屬 Material 主題系列。

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

與 Material Design Colors 相似的配色

資料來源:iTerm2 Color Schemes (MIT)