跳到正文

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/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)