跳到主要內容

Mesa Twilight

Mesa Twilight 是一套深色終端機配色(粉彩、冷色),背景色 #172b54,文字色 #fff0df,對比度 12.4:1

取得設定檔
背景色
#172b54
前景色
#fff0df
文字對比度
12.44:1AAA
強調色對比度
7.81:1最低 6.20
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
❯

Mesa Twilight 的設定檔

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

Mesa Twilight

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

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

palette = 0=#bfc4ce
palette = 1=#f1958c
palette = 2=#83cba2
palette = 3=#e9c96c
palette = 4=#83b9e6
palette = 5=#c89edb
palette = 6=#78ced3
palette = 7=#fff0df
palette = 8=#d0d4dc
palette = 9=#f8aca5
palette = 10=#9dd8b5
palette = 11=#f2d98a
palette = 12=#9fcaf0
palette = 13=#d9b6e5
palette = 14=#97dce0
palette = 15=#fffaf2
background = #172b54
foreground = #fff0df
cursor-color = #f3b85b
cursor-text = #172b54
selection-background = #34496d
selection-foreground = #fff8ed

Mesa Twilight 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#172b54rgb(23 43 84)hsl(220 57% 21%)oklch(29.7% 0.079 262.9)—
前景色foreground#fff0dfrgb(255 240 223)hsl(32 100% 94%)oklch(96.2% 0.028 71.0)12.44 AAA
光標cursor#f3b85brgb(243 184 91)hsl(37 86% 65%)oklch(81.9% 0.129 76.6)7.83 AAA
光標文字cursorText#172b54rgb(23 43 84)hsl(220 57% 21%)oklch(29.7% 0.079 262.9)1.00 低於 AA
選取範圍selection#34496drgb(52 73 109)hsl(218 35% 32%)oklch(40.5% 0.067 260.8)1.54 低於 AA
選取文字selectionText#fff8edrgb(255 248 237)hsl(37 100% 96%)oklch(98.2% 0.016 79.4)13.18 AAA
黑color0#bfc4cergb(191 196 206)hsl(220 13% 78%)oklch(81.9% 0.015 264.5)7.95 AAA
紅color1#f1958crgb(241 149 140)hsl(5 78% 75%)oklch(76.2% 0.113 26.0)6.24 AA
綠color2#83cba2rgb(131 203 162)hsl(146 41% 65%)oklch(78.3% 0.094 158.4)7.30 AAA
黃color3#e9c96crgb(233 201 108)hsl(45 74% 67%)oklch(84.4% 0.118 90.8)8.63 AAA
藍color4#83b9e6rgb(131 185 230)hsl(207 66% 71%)oklch(76.5% 0.086 244.4)6.65 AA
洋紅color5#c89edbrgb(200 158 219)hsl(281 46% 74%)oklch(75.8% 0.097 315.1)6.20 AA
青color6#78ced3rgb(120 206 211)hsl(183 51% 65%)oklch(79.9% 0.084 200.5)7.66 AAA
白color7#fff0dfrgb(255 240 223)hsl(32 100% 94%)oklch(96.2% 0.028 71.0)12.44 AAA
亮黑color8#d0d4dcrgb(208 212 220)hsl(220 15% 84%)oklch(86.9% 0.012 264.5)9.36 AAA
亮紅color9#f8aca5rgb(248 172 165)hsl(5 86% 81%)oklch(81.5% 0.091 25.1)7.57 AAA
亮綠color10#9dd8b5rgb(157 216 181)hsl(144 43% 73%)oklch(83.2% 0.078 158.1)8.56 AAA
亮黃color11#f2d98argb(242 217 138)hsl(46 80% 75%)oklch(88.9% 0.102 92.5)9.98 AAA
亮藍color12#9fcaf0rgb(159 202 240)hsl(208 73% 78%)oklch(82.2% 0.070 245.5)8.07 AAA
亮洋紅color13#d9b6e5rgb(217 182 229)hsl(285 47% 81%)oklch(82.2% 0.075 317.4)7.80 AAA
亮青color14#97dce0rgb(151 220 224)hsl(183 54% 74%)oklch(85.0% 0.069 200.5)9.03 AAA
亮白color15#fffaf2rgb(255 250 242)hsl(37 100% 97%)oklch(98.7% 0.012 79.8)13.38 AAA

關於 Mesa Twilight

Mesa Twilight 採用冷色調的深色背景(#172b54),預設前景色為 #fff0df。正文的 WCAG 對比度為 12.44:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.81:1,最低 6.20:1。

色板整體色彩飽和度適中,其中紅色為 #f1958c、綠色為 #83cba2、藍色為 #83b9e6、洋紅為 #c89edb。

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

與 Mesa Twilight 相似的配色

資料來源:iTerm2 Color Schemes (MIT)