跳到主要內容

Purple Rain

Purple Rain 是一套深色終端機配色(鮮艷、冷色),背景色 #21084a,文字色 #fffbf6,對比度 17.0:1

取得設定檔
背景色
#21084a
前景色
#fffbf6
文字對比度
17.01:1AAA
強調色對比度
8.60:1最低 3.42
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
❯

Purple Rain 的設定檔

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

Purple Rain

存到 ~/.config/ghostty/themes/Purple Rain,再在 config 或 config.ghostty 裏寫 theme = Purple Rain

更多 Ghostty 配色
原始檔案
# Theme: Purple Rain (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-hk/schemes/purple-rain?format=ghostty

palette = 0=#000000
palette = 1=#ff260e
palette = 2=#9be205
palette = 3=#ffc400
palette = 4=#00a2fa
palette = 5=#815bb5
palette = 6=#00deef
palette = 7=#ffffff
palette = 8=#565656
palette = 9=#ff4250
palette = 10=#b8e36e
palette = 11=#ffd852
palette = 12=#00a6ff
palette = 13=#ac7bf0
palette = 14=#74fdf3
palette = 15=#ffffff
background = #21084a
foreground = #fffbf6
cursor-color = #ff271d
cursor-text = #ff271d
selection-background = #287691
selection-foreground = #ffffff

Purple Rain 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#21084argb(33 8 74)hsl(263 80% 16%)oklch(22.8% 0.110 292.4)—
前景色foreground#fffbf6rgb(255 251 246)hsl(33 100% 98%)oklch(99.0% 0.008 73.7)17.01 AAA
光標cursor#ff271drgb(255 39 29)hsl(3 100% 56%)oklch(64.0% 0.246 29.1)4.64 AA
光標文字cursorText#ff271drgb(255 39 29)hsl(3 100% 56%)oklch(64.0% 0.246 29.1)4.64 AA
選取範圍selection#287691rgb(40 118 145)hsl(195 57% 36%)oklch(53.1% 0.085 225.1)3.41 AA 大字體
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)17.53 AAA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.20 低於 AA
紅color1#ff260ergb(255 38 14)hsl(6 100% 53%)oklch(63.9% 0.247 30.4)4.62 AA
綠color2#9be205rgb(155 226 5)hsl(79 96% 45%)oklch(83.4% 0.220 128.9)11.08 AAA
黃color3#ffc400rgb(255 196 0)hsl(46 100% 50%)oklch(85.0% 0.174 86.6)10.97 AAA
藍color4#00a2fargb(0 162 250)hsl(201 100% 49%)oklch(68.6% 0.169 244.1)6.30 AA
洋紅color5#815bb5rgb(129 91 181)hsl(265 38% 53%)oklch(55.1% 0.139 301.5)3.42 AA 大字體
青color6#00deefrgb(0 222 239)hsl(184 100% 47%)oklch(82.2% 0.140 204.6)10.59 AAA
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)17.53 AAA
亮黑color8#565656rgb(86 86 86)hsl(0 0% 34%)oklch(45.3% 0.000 0)2.39 低於 AA
亮紅color9#ff4250rgb(255 66 80)hsl(356 100% 63%)oklch(66.4% 0.224 22.1)5.13 AA
亮綠color10#b8e36ergb(184 227 110)hsl(82 68% 66%)oklch(86.1% 0.153 126.1)11.89 AAA
亮黃color11#ffd852rgb(255 216 82)hsl(46 100% 66%)oklch(89.2% 0.154 92.6)12.68 AAA
亮藍color12#00a6ffrgb(0 166 255)hsl(201 100% 50%)oklch(69.8% 0.171 243.8)6.59 AA
亮洋紅color13#ac7bf0rgb(172 123 240)hsl(265 80% 71%)oklch(68.1% 0.172 301.3)5.71 AA
亮青color14#74fdf3rgb(116 253 243)hsl(176 97% 72%)oklch(91.5% 0.121 188.8)14.26 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)17.53 AAA

關於 Purple Rain

Purple Rain 採用冷色調的深色背景(#21084a),預設前景色為 #fffbf6。正文的 WCAG 對比度為 17.01:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.60:1,最低 3.42:1。

色板整體色彩飽和度較高,其中紅色為 #ff260e、綠色為 #9be205、藍色為 #00a2fa、洋紅為 #815bb5。

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

與 Purple Rain 相似的配色

資料來源:iTerm2 Color Schemes (MIT)