跳到主要內容

X Madrid

X Madrid 是一套淺色終端機配色,背景色 #fafafa,文字色 #1a1a1a,對比度 16.7:1

取得設定檔
背景色
#fafafa
前景色
#1a1a1a
文字對比度
16.67:1AAA
強調色對比度
6.35:1最低 4.70
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
❯

X Madrid 的設定檔

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

X Madrid

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

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

palette = 0=#fafafa
palette = 1=#990026
palette = 2=#007a28
palette = 3=#8a6408
palette = 4=#007a9e
palette = 5=#4d2699
palette = 6=#007a9e
palette = 7=#1a1a1a
palette = 8=#4d4d4d
palette = 9=#990026
palette = 10=#007a28
palette = 11=#8a6408
palette = 12=#007a9e
palette = 13=#4d2699
palette = 14=#007a9e
palette = 15=#1a1a1a
background = #fafafa
foreground = #1a1a1a
cursor-color = #1a1a1a
cursor-text = #fafafa
selection-background = #1a1a1a
selection-foreground = #fafafa

X Madrid 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#fafafargb(250 250 250)hsl(0 0% 98%)oklch(98.5% 0.000 0)—
前景色foreground#1a1a1argb(26 26 26)hsl(0 0% 10%)oklch(21.8% 0.000 0)16.67 AAA
光標cursor#1a1a1argb(26 26 26)hsl(0 0% 10%)oklch(21.8% 0.000 0)16.67 AAA
光標文字cursorText#fafafargb(250 250 250)hsl(0 0% 98%)oklch(98.5% 0.000 0)1.00 低於 AA
選取範圍selection#1a1a1argb(26 26 26)hsl(0 0% 10%)oklch(21.8% 0.000 0)16.67 AAA
選取文字selectionText#fafafargb(250 250 250)hsl(0 0% 98%)oklch(98.5% 0.000 0)1.00 低於 AA
黑color0#fafafargb(250 250 250)hsl(0 0% 98%)oklch(98.5% 0.000 0)1.00 低於 AA
紅color1#990026rgb(153 0 38)hsl(345 100% 30%)oklch(43.2% 0.173 19.5)8.44 AAA
綠color2#007a28rgb(0 122 40)hsl(140 100% 24%)oklch(50.5% 0.151 146.7)5.27 AA
黃color3#8a6408rgb(138 100 8)hsl(42 89% 29%)oklch(52.9% 0.106 81.7)5.15 AA
藍color4#007a9ergb(0 122 158)hsl(194 100% 31%)oklch(54.1% 0.105 227.3)4.70 AA
洋紅color5#4d2699rgb(77 38 153)hsl(260 60% 37%)oklch(39.5% 0.174 291.9)9.80 AAA
青color6#007a9ergb(0 122 158)hsl(194 100% 31%)oklch(54.1% 0.105 227.3)4.70 AA
白color7#1a1a1argb(26 26 26)hsl(0 0% 10%)oklch(21.8% 0.000 0)16.67 AAA
亮黑color8#4d4d4drgb(77 77 77)hsl(0 0% 30%)oklch(42.0% 0.000 0)8.10 AAA
亮紅color9#990026rgb(153 0 38)hsl(345 100% 30%)oklch(43.2% 0.173 19.5)8.44 AAA
亮綠color10#007a28rgb(0 122 40)hsl(140 100% 24%)oklch(50.5% 0.151 146.7)5.27 AA
亮黃color11#8a6408rgb(138 100 8)hsl(42 89% 29%)oklch(52.9% 0.106 81.7)5.15 AA
亮藍color12#007a9ergb(0 122 158)hsl(194 100% 31%)oklch(54.1% 0.105 227.3)4.70 AA
亮洋紅color13#4d2699rgb(77 38 153)hsl(260 60% 37%)oklch(39.5% 0.174 291.9)9.80 AAA
亮青color14#007a9ergb(0 122 158)hsl(194 100% 31%)oklch(54.1% 0.105 227.3)4.70 AA
亮白color15#1a1a1argb(26 26 26)hsl(0 0% 10%)oklch(21.8% 0.000 0)16.67 AAA

關於 X Madrid

X Madrid 採用中性色調的淺色背景(#fafafa),預設前景色為 #1a1a1a。正文的 WCAG 對比度為 16.67:1(AAA),12 種 ANSI 彩色槽位平均對比度 6.35:1,最低 4.70:1。

色板整體色彩飽和度適中,其中紅色為 #990026、綠色為 #007a28、藍色為 #007a9e、洋紅為 #4d2699。

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

該色板在上游儲存庫中亦曾以 Madrid 的名稱發佈

與 X Madrid 相似的配色

資料來源:iTerm2 Color Schemes (MIT)