跳到主要內容

Purplepeter

Purplepeter 是一套深色終端機配色(冷色),背景色 #2a1a4a,文字色 #ece7fa,對比度 12.9:1

取得設定檔
背景色
#2a1a4a
前景色
#ece7fa
文字對比度
12.92:1AAA
強調色對比度
8.14:1最低 6.01
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
❯

Purplepeter 的設定檔

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

Purplepeter

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

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

palette = 0=#0a0520
palette = 1=#ff796d
palette = 2=#99b481
palette = 3=#efdfac
palette = 4=#66d9ef
palette = 5=#e78fcd
palette = 6=#ba8cff
palette = 7=#ffba81
palette = 8=#100b23
palette = 9=#f99f92
palette = 10=#b4be8f
palette = 11=#f2e9bf
palette = 12=#79daed
palette = 13=#ba91d4
palette = 14=#a0a0d6
palette = 15=#b9aed3
background = #2a1a4a
foreground = #ece7fa
cursor-color = #c7c7c7
cursor-text = #ffffff
selection-background = #8689c2
selection-foreground = #271c50

Purplepeter 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#2a1a4argb(42 26 74)hsl(260 48% 20%)oklch(26.7% 0.086 295.4)—
前景色foreground#ece7fargb(236 231 250)hsl(256 66% 94%)oklch(93.7% 0.026 297.9)12.92 AAA
光標cursor#c7c7c7rgb(199 199 199)hsl(0 0% 78%)oklch(83.0% 0.000 0)9.24 AAA
光標文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)15.61 AAA
選取範圍selection#8689c2rgb(134 137 194)hsl(237 33% 64%)oklch(65.0% 0.085 281.4)4.74 AA
選取文字selectionText#271c50rgb(39 28 80)hsl(253 48% 21%)oklch(27.3% 0.091 288.6)1.02 低於 AA
黑color0#0a0520rgb(10 5 32)hsl(251 73% 7%)oklch(14.6% 0.056 287.2)1.27 低於 AA
紅color1#ff796drgb(255 121 109)hsl(5 100% 71%)oklch(73.1% 0.166 27.1)6.10 AA
綠color2#99b481rgb(153 180 129)hsl(92 25% 61%)oklch(73.6% 0.077 130.8)6.84 AA
黃color3#efdfacrgb(239 223 172)hsl(46 68% 81%)oklch(90.4% 0.068 92.7)11.76 AAA
藍color4#66d9efrgb(102 217 239)hsl(190 81% 67%)oklch(82.7% 0.108 212.0)9.47 AAA
洋紅color5#e78fcdrgb(231 143 205)hsl(318 65% 73%)oklch(76.0% 0.131 338.7)6.85 AA
青color6#ba8cffrgb(186 140 255)hsl(264 100% 77%)oklch(73.0% 0.166 300.8)6.16 AA
白color7#ffba81rgb(255 186 129)hsl(27 100% 75%)oklch(84.1% 0.108 60.1)9.36 AAA
亮黑color8#100b23rgb(16 11 35)hsl(252 52% 9%)oklch(17.2% 0.048 290.0)1.23 低於 AA
亮紅color9#f99f92rgb(249 159 146)hsl(8 90% 77%)oklch(79.0% 0.110 28.7)7.73 AAA
亮綠color10#b4be8frgb(180 190 143)hsl(73 27% 65%)oklch(78.2% 0.065 117.7)7.96 AAA
亮黃color11#f2e9bfrgb(242 233 191)hsl(49 66% 85%)oklch(93.1% 0.056 97.3)12.77 AAA
亮藍color12#79daedrgb(121 218 237)hsl(190 76% 70%)oklch(83.6% 0.095 211.8)9.71 AAA
亮洋紅color13#ba91d4rgb(186 145 212)hsl(277 44% 70%)oklch(71.9% 0.105 311.8)6.01 AA
亮青color14#a0a0d6rgb(160 160 214)hsl(240 40% 73%)oklch(72.5% 0.078 284.3)6.31 AA
亮白color15#b9aed3rgb(185 174 211)hsl(258 30% 75%)oklch(77.2% 0.053 298.7)7.48 AAA

關於 Purplepeter

Purplepeter 採用冷色調的深色背景(#2a1a4a),預設前景色為 #ece7fa。正文的 WCAG 對比度為 12.92:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.14:1,最低 6.01:1。

色板整體色彩飽和度適中,其中紅色為 #ff796d、綠色為 #99b481、藍色為 #66d9ef、洋紅為 #e78fcd。

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

與 Purplepeter 相似的配色

資料來源:iTerm2 Color Schemes (MIT)