跳到主要內容

Trick or Treat

Trick or Treat 是一套深色終端機配色(粉彩、冷色),背景色 #40145f,文字色 #fff0e3,對比度 12.7:1

取得設定檔
背景色
#40145f
前景色
#fff0e3
文字對比度
12.69:1AAA
強調色對比度
8.55:1最低 6.12
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
❯

Trick or Treat 的設定檔

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

Trick or Treat

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

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

palette = 0=#bbaec8
palette = 1=#ff8b82
palette = 2=#a8dc72
palette = 3=#f8c94e
palette = 4=#8fc9f2
palette = 5=#e78bd8
palette = 6=#78dce1
palette = 7=#fff0e3
palette = 8=#cec1da
palette = 9=#ffa5a0
palette = 10=#bde88d
palette = 11=#fbdc72
palette = 12=#acd9f7
palette = 13=#efaae3
palette = 14=#99e7ea
palette = 15=#fffaf2
background = #40145f
foreground = #fff0e3
cursor-color = #ff65bd
cursor-text = #40145f
selection-background = #642b82
selection-foreground = #fff9f0

Trick or Treat 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#40145frgb(64 20 95)hsl(275 65% 23%)oklch(30.5% 0.126 307.1)—
前景色foreground#fff0e3rgb(255 240 227)hsl(28 100% 95%)oklch(96.3% 0.024 63.5)12.69 AAA
光標cursor#ff65bdrgb(255 101 189)hsl(326 100% 70%)oklch(72.7% 0.207 348.1)5.29 AA
光標文字cursorText#40145frgb(64 20 95)hsl(275 65% 23%)oklch(30.5% 0.126 307.1)1.00 低於 AA
選取範圍selection#642b82rgb(100 43 130)hsl(279 50% 34%)oklch(41.0% 0.145 311.8)1.49 低於 AA
選取文字selectionText#fff9f0rgb(255 249 240)hsl(36 100% 97%)oklch(98.4% 0.014 78.3)13.52 AAA
黑color0#bbaec8rgb(187 174 200)hsl(270 19% 73%)oklch(77.0% 0.039 307.9)6.74 AA
紅color1#ff8b82rgb(255 139 130)hsl(4 100% 75%)oklch(76.1% 0.142 25.6)6.25 AA
綠color2#a8dc72rgb(168 220 114)hsl(89 60% 65%)oklch(83.5% 0.147 130.5)8.86 AAA
黃color3#f8c94ergb(248 201 78)hsl(43 92% 64%)oklch(85.6% 0.147 87.6)9.07 AAA
藍color4#8fc9f2rgb(143 201 242)hsl(205 79% 75%)oklch(81.1% 0.083 239.9)7.96 AAA
洋紅color5#e78bd8rgb(231 139 216)hsl(310 66% 73%)oklch(75.8% 0.147 333.1)6.12 AA
青color6#78dce1rgb(120 220 225)hsl(183 64% 68%)oklch(83.6% 0.094 199.8)8.85 AAA
白color7#fff0e3rgb(255 240 227)hsl(28 100% 95%)oklch(96.3% 0.024 63.5)12.69 AAA
亮黑color8#cec1dargb(206 193 218)hsl(271 25% 81%)oklch(82.9% 0.037 308.8)8.27 AAA
亮紅color9#ffa5a0rgb(255 165 160)hsl(3 100% 81%)oklch(81.0% 0.108 23.2)7.51 AAA
亮綠color10#bde88drgb(189 232 141)hsl(88 66% 73%)oklch(88.0% 0.126 129.3)10.17 AAA
亮黃color11#fbdc72rgb(251 220 114)hsl(46 94% 72%)oklch(89.9% 0.130 93.3)10.50 AAA
亮藍color12#acd9f7rgb(172 217 247)hsl(204 82% 82%)oklch(86.4% 0.063 237.6)9.45 AAA
亮洋紅color13#efaae3rgb(239 170 227)hsl(310 68% 80%)oklch(82.1% 0.109 332.8)7.77 AAA
亮青color14#99e7eargb(153 231 234)hsl(182 66% 76%)oklch(87.9% 0.077 198.9)10.09 AAA
亮白color15#fffaf2rgb(255 250 242)hsl(37 100% 97%)oklch(98.7% 0.012 79.8)13.62 AAA

關於 Trick or Treat

Trick or Treat 採用冷色調的深色背景(#40145f),預設前景色為 #fff0e3。正文的 WCAG 對比度為 12.69:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.55:1,最低 6.12:1。

色板整體色彩飽和度適中,其中紅色為 #ff8b82、綠色為 #a8dc72、藍色為 #8fc9f2、洋紅為 #e78bd8。

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

與 Trick or Treat 相似的配色

資料來源:iTerm2 Color Schemes (MIT)