跳到正文

Serendipity Midnight

Serendipity Midnight 是一套深色终端配色(冷色),背景色 #151726,文字色 #dee0ef,对比度 13.5:1

获取配置
背景色
#151726
前景色
#dee0ef
文字对比度
13.54:1AAA
强调色对比度
8.67:1最低 6.36
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
❯

Serendipity Midnight 的配置文件

16 种格式,都从同一份色板生成

Serendipity Midnight

存到 ~/.config/ghostty/themes/Serendipity Midnight,再在 config 或 config.ghostty 里写 theme = Serendipity Midnight

更多 Ghostty 配色
原始文件
# Theme: Serendipity Midnight (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/schemes/serendipity-midnight?format=ghostty

palette = 0=#232534
palette = 1=#ee8679
palette = 2=#5ba2d0
palette = 3=#a78bfa
palette = 4=#94b8ff
palette = 5=#9ccfd8
palette = 6=#f8d2c9
palette = 7=#dee0ef
palette = 8=#8d8f9e
palette = 9=#ee8679
palette = 10=#5ba2d0
palette = 11=#a78bfa
palette = 12=#94b8ff
palette = 13=#9ccfd8
palette = 14=#f8d2c9
palette = 15=#dee0ef
background = #151726
foreground = #dee0ef
cursor-color = #6b6d7c
cursor-text = #dee0ef
selection-background = #6b6d7c
selection-foreground = #dee0ef

Serendipity Midnight 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#151726rgb(21 23 38)hsl(233 29% 12%)oklch(21.0% 0.030 277.7)—
前景色foreground#dee0efrgb(222 224 239)hsl(233 35% 90%)oklch(91.0% 0.020 279.9)13.54 AAA
光标cursor#6b6d7crgb(107 109 124)hsl(233 7% 45%)oklch(53.8% 0.023 279.6)3.47 AA 大字号
光标文字cursorText#dee0efrgb(222 224 239)hsl(233 35% 90%)oklch(91.0% 0.020 279.9)13.54 AAA
选区selection#6b6d7crgb(107 109 124)hsl(233 7% 45%)oklch(53.8% 0.023 279.6)3.47 AA 大字号
选区文字selectionText#dee0efrgb(222 224 239)hsl(233 35% 90%)oklch(91.0% 0.020 279.9)13.54 AAA
黑color0#232534rgb(35 37 52)hsl(233 20% 17%)oklch(26.9% 0.028 278.4)1.17 低于 AA
红color1#ee8679rgb(238 134 121)hsl(7 77% 70%)oklch(73.0% 0.130 28.1)7.04 AAA
绿color2#5ba2d0rgb(91 162 208)hsl(204 55% 59%)oklch(68.4% 0.099 238.9)6.36 AA
黄color3#a78bfargb(167 139 250)hsl(255 92% 76%)oklch(70.9% 0.159 293.5)6.53 AA
蓝color4#94b8ffrgb(148 184 255)hsl(220 100% 79%)oklch(78.4% 0.109 263.4)8.93 AAA
品红color5#9ccfd8rgb(156 207 216)hsl(189 43% 73%)oklch(82.2% 0.054 209.6)10.43 AAA
青color6#f8d2c9rgb(248 210 201)hsl(11 77% 88%)oklch(89.4% 0.045 33.5)12.73 AAA
白color7#dee0efrgb(222 224 239)hsl(233 35% 90%)oklch(91.0% 0.020 279.9)13.54 AAA
亮黑color8#8d8f9ergb(141 143 158)hsl(233 8% 59%)oklch(65.3% 0.022 279.7)5.54 AA
亮红color9#ee8679rgb(238 134 121)hsl(7 77% 70%)oklch(73.0% 0.130 28.1)7.04 AAA
亮绿color10#5ba2d0rgb(91 162 208)hsl(204 55% 59%)oklch(68.4% 0.099 238.9)6.36 AA
亮黄color11#a78bfargb(167 139 250)hsl(255 92% 76%)oklch(70.9% 0.159 293.5)6.53 AA
亮蓝color12#94b8ffrgb(148 184 255)hsl(220 100% 79%)oklch(78.4% 0.109 263.4)8.93 AAA
亮品红color13#9ccfd8rgb(156 207 216)hsl(189 43% 73%)oklch(82.2% 0.054 209.6)10.43 AAA
亮青color14#f8d2c9rgb(248 210 201)hsl(11 77% 88%)oklch(89.4% 0.045 33.5)12.73 AAA
亮白color15#dee0efrgb(222 224 239)hsl(233 35% 90%)oklch(91.0% 0.020 279.9)13.54 AAA

关于 Serendipity Midnight

Serendipity Midnight 采用冷色调的深色背景(#151726),默认前景色为 #dee0ef。正文的 WCAG 对比度为 13.54:1(AAA),12 种 ANSI 彩色槽位平均对比度 8.67:1,最低 6.36:1。

色板整体色彩饱和度适中,其中红色为 #ee8679、绿色为 #5ba2d0、蓝色为 #94b8ff、品红为 #9ccfd8。

支持一键导出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 终端配置文件,同时提供 VS Code 与 Zed 集成终端、CSS 变量、Tailwind CSS 及 JSON 色板格式。

与 Serendipity Midnight 相似的配色

数据来源:iTerm2 Color Schemes (MIT)