跳到正文

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