跳到主要內容

Hocus Pocus

Hocus Pocus 是一套深色終端機配色(粉彩、冷色),背景色 #431455,文字色 #f6edff,對比度 12.6:1

取得設定檔
背景色
#431455
前景色
#f6edff
文字對比度
12.57:1AAA
強調色對比度
7.69:1最低 5.64
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
❯

Hocus Pocus 的設定檔

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

Hocus Pocus

存到 ~/.config/ghostty/themes/Hocus Pocus,再在 config 或 config.ghostty 裡寫 theme = Hocus Pocus

更多 Ghostty 配色
原始檔
# Theme: Hocus Pocus (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-tw/schemes/hocus-pocus?format=ghostty

palette = 0=#c2b1ca
palette = 1=#f18b8c
palette = 2=#9bd674
palette = 3=#e9c657
palette = 4=#8fc1e8
palette = 5=#d187e4
palette = 6=#7bd3d1
palette = 7=#f6edff
palette = 8=#c9bad0
palette = 9=#f3999a
palette = 10=#a7db85
palette = 11=#eccd6b
palette = 12=#9cc8eb
palette = 13=#d795e7
palette = 14=#8bd8d7
palette = 15=#f7efff
background = #431455
foreground = #f6edff
cursor-color = #f3999a
cursor-text = #431455
selection-background = #c9bad0
selection-foreground = #918999

Hocus Pocus 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#431455rgb(67 20 85)hsl(283 62% 21%)oklch(30.1% 0.116 314.9)—
前景色foreground#f6edffrgb(246 237 255)hsl(270 100% 96%)oklch(95.8% 0.026 308.2)12.57 AAA
游標cursor#f3999argb(243 153 154)hsl(359 79% 78%)oklch(77.5% 0.108 19.1)6.69 AA
游標文字cursorText#431455rgb(67 20 85)hsl(283 62% 21%)oklch(30.1% 0.116 314.9)1.00 低於 AA
選取範圍selection#c9bad0rgb(201 186 208)hsl(281 19% 77%)oklch(80.8% 0.035 315.2)7.77 AAA
選取文字selectionText#918999rgb(145 137 153)hsl(270 7% 57%)oklch(64.2% 0.025 308.0)4.25 AA 大字級
黑color0#c2b1cargb(194 177 202)hsl(281 19% 74%)oklch(78.3% 0.040 315.1)7.10 AAA
紅color1#f18b8crgb(241 139 140)hsl(359 78% 75%)oklch(74.6% 0.124 19.8)5.99 AA
綠color2#9bd674rgb(155 214 116)hsl(96 54% 65%)oklch(81.3% 0.143 134.1)8.34 AAA
黃color3#e9c657rgb(233 198 87)hsl(46 77% 63%)oklch(83.6% 0.134 91.7)8.63 AAA
藍color4#8fc1e8rgb(143 193 232)hsl(206 66% 74%)oklch(79.0% 0.077 242.4)7.46 AAA
洋紅color5#d187e4rgb(209 135 228)hsl(288 63% 71%)oklch(73.2% 0.151 319.2)5.64 AA
青color6#7bd3d1rgb(123 211 209)hsl(179 50% 65%)oklch(81.1% 0.085 193.7)8.22 AAA
白color7#f6edffrgb(246 237 255)hsl(270 100% 96%)oklch(95.8% 0.026 308.2)12.57 AAA
亮黑color8#c9bad0rgb(201 186 208)hsl(281 19% 77%)oklch(80.8% 0.035 315.2)7.77 AAA
亮紅color9#f3999argb(243 153 154)hsl(359 79% 78%)oklch(77.5% 0.108 19.1)6.69 AA
亮綠color10#a7db85rgb(167 219 133)hsl(96 54% 69%)oklch(83.5% 0.126 133.8)8.92 AAA
亮黃color11#eccd6brgb(236 205 107)hsl(46 77% 67%)oklch(85.5% 0.123 92.1)9.19 AAA
亮藍color12#9cc8ebrgb(156 200 235)hsl(207 66% 77%)oklch(81.4% 0.068 242.6)8.08 AAA
亮洋紅color13#d795e7rgb(215 149 231)hsl(288 63% 75%)oklch(76.3% 0.134 319.6)6.36 AA
亮青color14#8bd8d7rgb(139 216 215)hsl(179 50% 70%)oklch(83.2% 0.076 194.7)8.78 AAA
亮白color15#f7efffrgb(247 239 255)hsl(270 100% 97%)oklch(96.3% 0.023 308.2)12.75 AAA

關於 Hocus Pocus

Hocus Pocus 採用冷色調的深色背景(#431455),預設前景色為 #f6edff。內文的 WCAG 對比度為 12.57:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.69:1,最低 5.64:1。

色票整體色彩彩度適中,其中紅色為 #f18b8c、綠色為 #9bd674、藍色為 #8fc1e8、洋紅為 #d187e4。

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

與 Hocus Pocus 相似的配色

資料來源:iTerm2 Color Schemes (MIT)