跳到主要內容

Box

Box 是一套深色終端機配色(鮮艷、冷色),背景色 #141d2b,文字色 #9fef00,對比度 11.9:1

取得設定檔
背景色
#141d2b
前景色
#9fef00
文字對比度
11.95:1AAA
強調色對比度
7.69:1最低 2.89
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
❯

Box 的設定檔

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

Box

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

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

palette = 0=#000000
palette = 1=#cc0403
palette = 2=#19cb00
palette = 3=#cecb00
palette = 4=#0d73cc
palette = 5=#cb1ed1
palette = 6=#0dcdcd
palette = 7=#dddddd
palette = 8=#767676
palette = 9=#f2201f
palette = 10=#23fd00
palette = 11=#fffd00
palette = 12=#1a8fff
palette = 13=#fd28ff
palette = 14=#14ffff
palette = 15=#ffffff
background = #141d2b
foreground = #9fef00
cursor-color = #9fef00
cursor-text = #111111
selection-background = #a4b1cd
selection-foreground = #141d2b

Box 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#141d2brgb(20 29 43)hsl(217 37% 12%)oklch(22.9% 0.030 259.0)—
前景色foreground#9fef00rgb(159 239 0)hsl(80 100% 47%)oklch(86.7% 0.233 129.9)11.95 AAA
光標cursor#9fef00rgb(159 239 0)hsl(80 100% 47%)oklch(86.7% 0.233 129.9)11.95 AAA
光標文字cursorText#111111rgb(17 17 17)hsl(0 0% 7%)oklch(17.8% 0.000 0)1.12 低於 AA
選取範圍selection#a4b1cdrgb(164 177 205)hsl(221 29% 72%)oklch(76.0% 0.043 265.6)7.86 AAA
選取文字selectionText#141d2brgb(20 29 43)hsl(217 37% 12%)oklch(22.9% 0.030 259.0)1.00 低於 AA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.24 低於 AA
紅color1#cc0403rgb(204 4 3)hsl(0 97% 41%)oklch(53.2% 0.217 29.2)2.89 低於 AA
綠color2#19cb00rgb(25 203 0)hsl(113 100% 40%)oklch(73.1% 0.246 142.0)7.73 AAA
黃color3#cecb00rgb(206 203 0)hsl(59 100% 40%)oklch(81.8% 0.177 108.7)9.81 AAA
藍color4#0d73ccrgb(13 115 204)hsl(208 88% 43%)oklch(55.2% 0.161 252.1)3.50 AA 大字體
洋紅color5#cb1ed1rgb(203 30 209)hsl(298 75% 47%)oklch(60.3% 0.265 326.6)3.75 AA 大字體
青color6#0dcdcdrgb(13 205 205)hsl(180 88% 43%)oklch(76.9% 0.130 194.8)8.57 AAA
白color7#ddddddrgb(221 221 221)hsl(0 0% 87%)oklch(89.8% 0.000 0)12.46 AAA
亮黑color8#767676rgb(118 118 118)hsl(0 0% 46%)oklch(56.6% 0.000 0)3.73 AA 大字體
亮紅color9#f2201frgb(242 32 31)hsl(0 89% 54%)oklch(61.4% 0.238 28.2)4.03 AA 大字體
亮綠color10#23fd00rgb(35 253 0)hsl(112 100% 50%)oklch(86.3% 0.290 142.0)12.19 AAA
亮黃color11#fffd00rgb(255 253 0)hsl(60 100% 50%)oklch(96.4% 0.209 109.2)15.56 AAA
亮藍color12#1a8fffrgb(26 143 255)hsl(209 100% 55%)oklch(64.9% 0.192 253.2)5.17 AA
亮洋紅color13#fd28ffrgb(253 40 255)hsl(299 100% 58%)oklch(70.8% 0.309 327.8)5.58 AA
亮青color14#14ffffrgb(20 255 255)hsl(180 100% 54%)oklch(90.6% 0.153 194.8)13.53 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.93 AAA

關於 Box

Box 採用冷色調的深色背景(#141d2b),預設前景色為 #9fef00。正文的 WCAG 對比度為 11.95:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.69:1,最低 2.89:1。

色板整體色彩飽和度較高,其中紅色為 #cc0403、綠色為 #19cb00、藍色為 #0d73cc、洋紅為 #cb1ed1。

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

與 Box 相似的配色

資料來源:iTerm2 Color Schemes (MIT)