跳到主要內容

Urple

Urple 是一套深色終端機配色(柔和、冷色),背景色 #1b1b23,文字色 #877a9b,對比度 4.3:1

取得設定檔
背景色
#1b1b23
前景色
#877a9b
文字對比度
4.31:1AA 大字體
強調色對比度
5.59:1最低 2.28
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
❯

Urple 的設定檔

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

Urple

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

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

palette = 0=#000000
palette = 1=#b0425b
palette = 2=#37a415
palette = 3=#ad5c42
palette = 4=#564d9b
palette = 5=#6c3ca1
palette = 6=#808080
palette = 7=#87799c
palette = 8=#5d3225
palette = 9=#ff6388
palette = 10=#29e620
palette = 11=#f08161
palette = 12=#867aed
palette = 13=#a05eee
palette = 14=#eaeaea
palette = 15=#bfa3ff
background = #1b1b23
foreground = #877a9b
cursor-color = #a063eb
cursor-text = #1b1b22
selection-background = #a063eb
selection-foreground = #1b1b22

Urple 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1b1b23rgb(27 27 35)hsl(240 13% 12%)oklch(22.6% 0.015 285.1)—
前景色foreground#877a9brgb(135 122 155)hsl(264 14% 54%)oklch(60.3% 0.051 302.8)4.31 AA 大字體
光標cursor#a063ebrgb(160 99 235)hsl(267 77% 65%)oklch(62.9% 0.199 301.6)4.46 AA 大字體
光標文字cursorText#1b1b22rgb(27 27 34)hsl(240 11% 12%)oklch(22.5% 0.014 285.3)1.00 低於 AA
選取範圍selection#a063ebrgb(160 99 235)hsl(267 77% 65%)oklch(62.9% 0.199 301.6)4.46 AA 大字體
選取文字selectionText#1b1b22rgb(27 27 34)hsl(240 11% 12%)oklch(22.5% 0.014 285.3)1.00 低於 AA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.23 低於 AA
紅color1#b0425brgb(176 66 91)hsl(346 45% 47%)oklch(53.6% 0.144 9.5)3.08 AA 大字體
綠color2#37a415rgb(55 164 21)hsl(106 77% 36%)oklch(63.2% 0.196 140.1)5.28 AA
黃color3#ad5c42rgb(173 92 66)hsl(15 45% 47%)oklch(56.5% 0.113 38.5)3.57 AA 大字體
藍color4#564d9brgb(86 77 155)hsl(247 34% 45%)oklch(46.8% 0.123 285.9)2.39 低於 AA
洋紅color5#6c3ca1rgb(108 60 161)hsl(269 46% 43%)oklch(46.6% 0.158 302.6)2.28 低於 AA
青color6#808080rgb(128 128 128)hsl(0 0% 50%)oklch(60.0% 0.000 0)4.33 AA 大字體
白color7#87799crgb(135 121 156)hsl(264 15% 54%)oklch(60.1% 0.055 303.0)4.27 AA 大字體
亮黑color8#5d3225rgb(93 50 37)hsl(14 43% 25%)oklch(36.9% 0.066 37.6)1.59 低於 AA
亮紅color9#ff6388rgb(255 99 136)hsl(346 100% 69%)oklch(70.8% 0.191 8.9)6.02 AA
亮綠color10#29e620rgb(41 230 32)hsl(117 80% 51%)oklch(80.5% 0.263 142.3)10.13 AAA
亮黃color11#f08161rgb(240 129 97)hsl(13 83% 66%)oklch(72.0% 0.144 36.9)6.53 AA
亮藍color12#867aedrgb(134 122 237)hsl(246 76% 70%)oklch(64.4% 0.167 285.4)4.90 AA
亮洋紅color13#a05eeergb(160 94 238)hsl(268 81% 65%)oklch(62.4% 0.209 301.7)4.34 AA 大字體
亮青color14#eaeaeargb(234 234 234)hsl(0 0% 92%)oklch(93.7% 0.000 0)14.22 AAA
亮白color15#bfa3ffrgb(191 163 255)hsl(258 100% 82%)oklch(77.5% 0.131 297.2)8.06 AAA

關於 Urple

Urple 採用冷色調的深色背景(#1b1b23),預設前景色為 #877a9b。正文的 WCAG 對比度為 4.31:1(AA 大字體),12 種 ANSI 彩色槽位平均對比度 5.59:1,最低 2.28:1。

色板整體色彩飽和度適中,其中紅色為 #b0425b、綠色為 #37a415、藍色為 #564d9b、洋紅為 #6c3ca1。

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

與 Urple 相似的配色

資料來源:iTerm2 Color Schemes (MIT)