跳到主要內容

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