跳到正文

Rapture

Rapture 是一套深色终端配色(冷色),背景色 #111e2a,文字色 #c0c9e5,对比度 10.2:1

获取配置
背景色
#111e2a
前景色
#c0c9e5
文字对比度
10.24:1AAA
强调色对比度
9.44:1最低 5.54
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
❯

Rapture 的配置文件

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

Rapture

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

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

palette = 0=#000000
palette = 1=#fc644d
palette = 2=#7afde1
palette = 3=#fff09b
palette = 4=#6c9bf5
palette = 5=#ff4fa1
palette = 6=#64e0ff
palette = 7=#c0c9e5
palette = 8=#304b66
palette = 9=#fc644d
palette = 10=#7afde1
palette = 11=#fff09b
palette = 12=#6c9bf5
palette = 13=#ff4fa1
palette = 14=#64e0ff
palette = 15=#ffffff
background = #111e2a
foreground = #c0c9e5
cursor-color = #ffffff
cursor-text = #111e2a
selection-background = #304b66
selection-foreground = #ffffff

Rapture 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#111e2argb(17 30 42)hsl(209 42% 12%)oklch(22.9% 0.030 247.3)—
前景色foreground#c0c9e5rgb(192 201 229)hsl(225 42% 83%)oklch(83.8% 0.040 271.4)10.24 AAA
光标cursor#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.89 AAA
光标文字cursorText#111e2argb(17 30 42)hsl(209 42% 12%)oklch(22.9% 0.030 247.3)1.00 低于 AA
选区selection#304b66rgb(48 75 102)hsl(210 36% 29%)oklch(40.4% 0.056 249.4)1.87 低于 AA
选区文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.89 AAA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.24 低于 AA
红color1#fc644drgb(252 100 77)hsl(8 97% 65%)oklch(69.4% 0.190 31.0)5.69 AA
绿color2#7afde1rgb(122 253 225)hsl(167 97% 74%)oklch(91.2% 0.123 177.4)13.65 AAA
黄color3#fff09brgb(255 240 155)hsl(51 100% 80%)oklch(94.8% 0.106 99.5)14.63 AAA
蓝color4#6c9bf5rgb(108 155 245)hsl(219 87% 69%)oklch(69.6% 0.142 262.4)6.15 AA
品红color5#ff4fa1rgb(255 79 161)hsl(332 100% 65%)oklch(69.4% 0.222 356.0)5.54 AA
青color6#64e0ffrgb(100 224 255)hsl(192 100% 70%)oklch(84.8% 0.118 216.9)10.98 AAA
白color7#c0c9e5rgb(192 201 229)hsl(225 42% 83%)oklch(83.8% 0.040 271.4)10.24 AAA
亮黑color8#304b66rgb(48 75 102)hsl(210 36% 29%)oklch(40.4% 0.056 249.4)1.87 低于 AA
亮红color9#fc644drgb(252 100 77)hsl(8 97% 65%)oklch(69.4% 0.190 31.0)5.69 AA
亮绿color10#7afde1rgb(122 253 225)hsl(167 97% 74%)oklch(91.2% 0.123 177.4)13.65 AAA
亮黄color11#fff09brgb(255 240 155)hsl(51 100% 80%)oklch(94.8% 0.106 99.5)14.63 AAA
亮蓝color12#6c9bf5rgb(108 155 245)hsl(219 87% 69%)oklch(69.6% 0.142 262.4)6.15 AA
亮品红color13#ff4fa1rgb(255 79 161)hsl(332 100% 65%)oklch(69.4% 0.222 356.0)5.54 AA
亮青color14#64e0ffrgb(100 224 255)hsl(192 100% 70%)oklch(84.8% 0.118 216.9)10.98 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.89 AAA

关于 Rapture

Rapture 采用冷色调的深色背景(#111e2a),默认前景色为 #c0c9e5。正文的 WCAG 对比度为 10.24:1(AAA),12 种 ANSI 彩色槽位平均对比度 9.44:1,最低 5.54:1。

色板整体色彩饱和度适中,其中红色为 #fc644d、绿色为 #7afde1、蓝色为 #6c9bf5、品红为 #ff4fa1。

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

与 Rapture 相似的配色

数据来源:iTerm2 Color Schemes (MIT)