跳到主要內容

Medallion

Medallion 是一套深色終端機配色(暖色),背景色 #1d1908,文字色 #cac296,對比度 9.8:1

取得設定檔
背景色
#1d1908
前景色
#cac296
文字對比度
9.77:1AAA
強調色對比度
7.39:1最低 3.33
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
❯

Medallion 的設定檔

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

Medallion

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

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

palette = 0=#000000
palette = 1=#b64c00
palette = 2=#7c8b16
palette = 3=#d3bd26
palette = 4=#616bb0
palette = 5=#8c5a90
palette = 6=#916c25
palette = 7=#cac29a
palette = 8=#5e5219
palette = 9=#ff9149
palette = 10=#b2ca3b
palette = 11=#ffe54a
palette = 12=#acb8ff
palette = 13=#ffa0ff
palette = 14=#ffbc51
palette = 15=#fed698
background = #1d1908
foreground = #cac296
cursor-color = #d3ba30
cursor-text = #d2bc3d
selection-background = #626dac
selection-foreground = #cac29a

Medallion 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1d1908rgb(29 25 8)hsl(49 57% 7%)oklch(21.3% 0.030 96.5)—
前景色foreground#cac296rgb(202 194 150)hsl(51 33% 69%)oklch(81.0% 0.059 98.9)9.77 AAA
游標cursor#d3ba30rgb(211 186 48)hsl(51 65% 51%)oklch(78.8% 0.149 98.3)9.07 AAA
游標文字cursorText#d2bc3drgb(210 188 61)hsl(51 62% 53%)oklch(79.2% 0.143 99.2)9.21 AAA
選取範圍selection#626dacrgb(98 109 172)hsl(231 31% 53%)oklch(55.3% 0.099 275.2)3.60 AA 大字級
選取文字selectionText#cac29argb(202 194 154)hsl(50 31% 70%)oklch(81.0% 0.054 98.0)9.79 AAA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.19 低於 AA
紅color1#b64c00rgb(182 76 0)hsl(25 100% 36%)oklch(54.8% 0.154 45.9)3.37 AA 大字級
綠color2#7c8b16rgb(124 139 22)hsl(68 73% 32%)oklch(60.4% 0.133 117.3)4.65 AA
黃color3#d3bd26rgb(211 189 38)hsl(52 69% 49%)oklch(79.3% 0.156 100.2)9.27 AAA
藍color4#616bb0rgb(97 107 176)hsl(232 33% 54%)oklch(55.1% 0.108 276.0)3.55 AA 大字級
洋紅color5#8c5a90rgb(140 90 144)hsl(296 23% 46%)oklch(54.2% 0.100 324.2)3.33 AA 大字級
青color6#916c25rgb(145 108 37)hsl(39 59% 36%)oklch(55.5% 0.098 80.1)3.66 AA 大字級
白color7#cac29argb(202 194 154)hsl(50 31% 70%)oklch(81.0% 0.054 98.0)9.79 AAA
亮黑color8#5e5219rgb(94 82 25)hsl(50 58% 23%)oklch(43.9% 0.077 97.1)2.26 低於 AA
亮紅color9#ff9149rgb(255 145 73)hsl(24 100% 64%)oklch(76.2% 0.158 51.3)7.87 AAA
亮綠color10#b2ca3brgb(178 202 59)hsl(70 57% 51%)oklch(79.5% 0.165 118.7)9.54 AAA
亮黃color11#ffe54argb(255 229 74)hsl(51 100% 65%)oklch(91.7% 0.168 99.5)13.86 AAA
亮藍color12#acb8ffrgb(172 184 255)hsl(231 100% 84%)oklch(79.9% 0.102 276.5)9.25 AAA
亮洋紅color13#ffa0ffrgb(255 160 255)hsl(300 100% 81%)oklch(83.2% 0.163 326.9)9.81 AAA
亮青color14#ffbc51rgb(255 188 81)hsl(37 100% 66%)oklch(83.8% 0.143 76.0)10.52 AAA
亮白color15#fed698rgb(254 214 152)hsl(36 98% 80%)oklch(89.6% 0.090 78.1)12.79 AAA

關於 Medallion

Medallion 採用暖色調的深色背景(#1d1908),預設前景色為 #cac296。內文的 WCAG 對比度為 9.77:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.39:1,最低 3.33:1。

色票整體色彩彩度適中,其中紅色為 #b64c00、綠色為 #7c8b16、藍色為 #616bb0、洋紅為 #8c5a90。

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

與 Medallion 相似的配色

資料來源:iTerm2 Color Schemes (MIT)