跳到主要內容

Midnight In Mojave

Midnight In Mojave 是一套深色終端機配色(鮮艷),背景色 #1e1e1e,文字色 #ffffff,對比度 16.7:1

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

Midnight In Mojave 的設定檔

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

Midnight In Mojave

存到 ~/.config/ghostty/themes/Midnight In Mojave,再在 config 或 config.ghostty 裏寫 theme = Midnight In Mojave

更多 Ghostty 配色
原始檔案
# Theme: Midnight In Mojave (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-hk/schemes/midnight-in-mojave?format=ghostty

palette = 0=#1e1e1e
palette = 1=#ff453a
palette = 2=#32d74b
palette = 3=#ffd60a
palette = 4=#0a84ff
palette = 5=#bf5af2
palette = 6=#5ac8fa
palette = 7=#ffffff
palette = 8=#1e1e1e
palette = 9=#ff453a
palette = 10=#32d74b
palette = 11=#ffd60a
palette = 12=#0a84ff
palette = 13=#bf5af2
palette = 14=#5ac8fa
palette = 15=#ffffff
background = #1e1e1e
foreground = #ffffff
cursor-color = #32d74b
cursor-text = #1c1c1c
selection-background = #4a504d
selection-foreground = #ffffff

Midnight In Mojave 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1e1e1ergb(30 30 30)hsl(0 0% 12%)oklch(23.5% 0.000 0)—
前景色foreground#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.67 AAA
光標cursor#32d74brgb(50 215 75)hsl(129 67% 52%)oklch(77.0% 0.224 145.0)8.70 AAA
光標文字cursorText#1c1c1crgb(28 28 28)hsl(0 0% 11%)oklch(22.6% 0.000 0)1.02 低於 AA
選取範圍selection#4a504drgb(74 80 77)hsl(150 4% 30%)oklch(42.5% 0.009 164.6)2.02 低於 AA
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.67 AAA
黑color0#1e1e1ergb(30 30 30)hsl(0 0% 12%)oklch(23.5% 0.000 0)1.00 低於 AA
紅color1#ff453argb(255 69 58)hsl(3 100% 61%)oklch(66.3% 0.224 28.3)4.89 AA
綠color2#32d74brgb(50 215 75)hsl(129 67% 52%)oklch(77.0% 0.224 145.0)8.70 AAA
黃color3#ffd60argb(255 214 10)hsl(50 100% 52%)oklch(88.5% 0.181 94.8)11.81 AAA
藍color4#0a84ffrgb(10 132 255)hsl(210 100% 52%)oklch(62.4% 0.206 255.5)4.57 AA
洋紅color5#bf5af2rgb(191 90 242)hsl(280 85% 65%)oklch(65.6% 0.227 312.4)4.73 AA
青color6#5ac8fargb(90 200 250)hsl(199 94% 67%)oklch(78.9% 0.122 230.8)8.79 AAA
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.67 AAA
亮黑color8#1e1e1ergb(30 30 30)hsl(0 0% 12%)oklch(23.5% 0.000 0)1.00 低於 AA
亮紅color9#ff453argb(255 69 58)hsl(3 100% 61%)oklch(66.3% 0.224 28.3)4.89 AA
亮綠color10#32d74brgb(50 215 75)hsl(129 67% 52%)oklch(77.0% 0.224 145.0)8.70 AAA
亮黃color11#ffd60argb(255 214 10)hsl(50 100% 52%)oklch(88.5% 0.181 94.8)11.81 AAA
亮藍color12#0a84ffrgb(10 132 255)hsl(210 100% 52%)oklch(62.4% 0.206 255.5)4.57 AA
亮洋紅color13#bf5af2rgb(191 90 242)hsl(280 85% 65%)oklch(65.6% 0.227 312.4)4.73 AA
亮青color14#5ac8fargb(90 200 250)hsl(199 94% 67%)oklch(78.9% 0.122 230.8)8.79 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.67 AAA

關於 Midnight In Mojave

Midnight In Mojave 採用中性色調的深色背景(#1e1e1e),預設前景色為 #ffffff。正文的 WCAG 對比度為 16.67:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.25:1,最低 4.57:1。

色板整體色彩飽和度較高,其中紅色為 #ff453a、綠色為 #32d74b、藍色為 #0a84ff、洋紅為 #bf5af2。

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

與 Midnight In Mojave 相似的配色

資料來源:iTerm2 Color Schemes (MIT)