跳到主要內容

Moonlight

Moonlight 是一套深色終端機配色(冷色),背景色 #212337,文字色 #a3ace1,對比度 7.0:1

取得設定檔
背景色
#212337
前景色
#a3ace1
文字對比度
7.02:1AAA
強調色對比度
8.85:1最低 4.94
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
❯

Moonlight 的設定檔

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

Moonlight

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

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

palette = 0=#212337
palette = 1=#ff5370
palette = 2=#2df4c0
palette = 3=#ffc777
palette = 4=#40ffff
palette = 5=#b994f1
palette = 6=#04d1f9
palette = 7=#a3ace1
palette = 8=#748cd6
palette = 9=#ff5370
palette = 10=#2df4c0
palette = 11=#ffc777
palette = 12=#40ffff
palette = 13=#b994f1
palette = 14=#04d1f9
palette = 15=#ef43fa
background = #212337
foreground = #a3ace1
cursor-color = #a3ace1
cursor-text = #212337
selection-background = #3e425d
selection-foreground = #a3ace1

Moonlight 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#212337rgb(33 35 55)hsl(235 25% 17%)oklch(26.4% 0.037 279.1)—
前景色foreground#a3ace1rgb(163 172 225)hsl(231 51% 76%)oklch(75.6% 0.077 276.9)7.02 AAA
游標cursor#a3ace1rgb(163 172 225)hsl(231 51% 76%)oklch(75.6% 0.077 276.9)7.02 AAA
游標文字cursorText#212337rgb(33 35 55)hsl(235 25% 17%)oklch(26.4% 0.037 279.1)1.00 低於 AA
選取範圍selection#3e425drgb(62 66 93)hsl(232 20% 30%)oklch(38.7% 0.046 277.5)1.57 低於 AA
選取文字selectionText#a3ace1rgb(163 172 225)hsl(231 51% 76%)oklch(75.6% 0.077 276.9)7.02 AAA
黑color0#212337rgb(33 35 55)hsl(235 25% 17%)oklch(26.4% 0.037 279.1)1.00 低於 AA
紅color1#ff5370rgb(255 83 112)hsl(350 100% 66%)oklch(68.5% 0.207 14.8)4.94 AA
綠color2#2df4c0rgb(45 244 192)hsl(164 90% 57%)oklch(86.3% 0.165 169.3)10.89 AAA
黃color3#ffc777rgb(255 199 119)hsl(35 100% 73%)oklch(86.3% 0.117 75.0)10.06 AAA
藍color4#40ffffrgb(64 255 255)hsl(180 100% 63%)oklch(91.1% 0.144 194.9)12.47 AAA
洋紅color5#b994f1rgb(185 148 241)hsl(264 77% 76%)oklch(73.6% 0.136 301.5)6.30 AA
青color6#04d1f9rgb(4 209 249)hsl(190 97% 50%)oklch(79.5% 0.143 218.3)8.45 AAA
白color7#a3ace1rgb(163 172 225)hsl(231 51% 76%)oklch(75.6% 0.077 276.9)7.02 AAA
亮黑color8#748cd6rgb(116 140 214)hsl(225 54% 65%)oklch(65.3% 0.114 269.4)4.75 AA
亮紅color9#ff5370rgb(255 83 112)hsl(350 100% 66%)oklch(68.5% 0.207 14.8)4.94 AA
亮綠color10#2df4c0rgb(45 244 192)hsl(164 90% 57%)oklch(86.3% 0.165 169.3)10.89 AAA
亮黃color11#ffc777rgb(255 199 119)hsl(35 100% 73%)oklch(86.3% 0.117 75.0)10.06 AAA
亮藍color12#40ffffrgb(64 255 255)hsl(180 100% 63%)oklch(91.1% 0.144 194.9)12.47 AAA
亮洋紅color13#b994f1rgb(185 148 241)hsl(264 77% 76%)oklch(73.6% 0.136 301.5)6.30 AA
亮青color14#04d1f9rgb(4 209 249)hsl(190 97% 50%)oklch(79.5% 0.143 218.3)8.45 AAA
亮白color15#ef43fargb(239 67 250)hsl(296 95% 62%)oklch(70.1% 0.280 325.4)5.04 AA

關於 Moonlight

Moonlight 採用冷色調的深色背景(#212337),預設前景色為 #a3ace1。內文的 WCAG 對比度為 7.02:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.85:1,最低 4.94:1。

色票整體色彩彩度適中,其中紅色為 #ff5370、綠色為 #2df4c0、藍色為 #40ffff、洋紅為 #b994f1。

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

與 Moonlight 相似的配色

資料來源:Gogh (MIT OR Apache-2.0)