跳到主要內容

Hackthebox

Hackthebox 是一套深色終端機配色(粉彩、冷色),背景色 #1a2332,文字色 #a4b1cd,對比度 7.3:1

取得設定檔
背景色
#1a2332
前景色
#a4b1cd
文字對比度
7.33:1AAA
強調色對比度
9.45:1最低 6.66
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
❯

Hackthebox 的設定檔

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

Hackthebox

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

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

palette = 0=#616161
palette = 1=#ff8484
palette = 2=#c5f467
palette = 3=#ffcc5c
palette = 4=#5cb2ff
palette = 5=#cf8dfb
palette = 6=#5cecc6
palette = 7=#c5d1eb
palette = 8=#8e8e8e
palette = 9=#ffa0a0
palette = 10=#c1f080
palette = 11=#ffda8a
palette = 12=#84c5ff
palette = 13=#cfadfb
palette = 14=#18efc6
palette = 15=#dfe5ee
background = #1a2332
foreground = #a4b1cd
cursor-color = #a0ef00
cursor-text = #1a2332
selection-background = #394355
selection-foreground = #a4b1cd

Hackthebox 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1a2332rgb(26 35 50)hsl(218 32% 15%)oklch(25.5% 0.031 260.4)—
前景色foreground#a4b1cdrgb(164 177 205)hsl(221 29% 72%)oklch(76.0% 0.043 265.6)7.33 AAA
光標cursor#a0ef00rgb(160 239 0)hsl(80 100% 47%)oklch(86.7% 0.232 129.7)11.16 AAA
光標文字cursorText#1a2332rgb(26 35 50)hsl(218 32% 15%)oklch(25.5% 0.031 260.4)1.00 低於 AA
選取範圍selection#394355rgb(57 67 85)hsl(219 20% 28%)oklch(38.1% 0.034 262.1)1.58 低於 AA
選取文字selectionText#a4b1cdrgb(164 177 205)hsl(221 29% 72%)oklch(76.0% 0.043 265.6)7.33 AAA
黑color0#616161rgb(97 97 97)hsl(0 0% 38%)oklch(49.3% 0.000 0)2.55 低於 AA
紅color1#ff8484rgb(255 132 132)hsl(0 100% 76%)oklch(75.1% 0.150 21.3)6.68 AA
綠color2#c5f467rgb(197 244 103)hsl(80 87% 68%)oklch(90.6% 0.176 125.3)12.41 AAA
黃color3#ffcc5crgb(255 204 92)hsl(41 100% 68%)oklch(87.0% 0.140 84.4)10.56 AAA
藍color4#5cb2ffrgb(92 178 255)hsl(208 100% 68%)oklch(74.3% 0.140 247.9)6.97 AA
洋紅color5#cf8dfbrgb(207 141 251)hsl(276 93% 77%)oklch(75.1% 0.166 310.6)6.66 AA
青color6#5cecc6rgb(92 236 198)hsl(164 79% 64%)oklch(85.5% 0.135 172.5)10.73 AAA
白color7#c5d1ebrgb(197 209 235)hsl(221 49% 85%)oklch(86.0% 0.038 265.8)10.29 AAA
亮黑color8#8e8e8ergb(142 142 142)hsl(0 0% 56%)oklch(64.7% 0.000 0)4.82 AA
亮紅color9#ffa0a0rgb(255 160 160)hsl(0 100% 81%)oklch(80.2% 0.114 19.9)8.11 AAA
亮綠color10#c1f080rgb(193 240 128)hsl(85 79% 72%)oklch(89.8% 0.149 127.8)12.06 AAA
亮黃color11#ffda8argb(255 218 138)hsl(41 100% 77%)oklch(90.2% 0.107 85.5)11.76 AAA
亮藍color12#84c5ffrgb(132 197 255)hsl(208 100% 76%)oklch(80.2% 0.106 246.5)8.58 AAA
亮洋紅color13#cfadfbrgb(207 173 251)hsl(266 91% 83%)oklch(80.5% 0.113 303.9)8.29 AAA
亮青color14#18efc6rgb(24 239 198)hsl(169 87% 52%)oklch(85.1% 0.159 174.0)10.67 AAA
亮白color15#dfe5eergb(223 229 238)hsl(216 31% 90%)oklch(92.0% 0.014 258.3)12.46 AAA

關於 Hackthebox

Hackthebox 採用冷色調的深色背景(#1a2332),預設前景色為 #a4b1cd。正文的 WCAG 對比度為 7.33:1(AAA),12 種 ANSI 彩色槽位平均對比度 9.45:1,最低 6.66:1。

色板整體色彩飽和度適中,其中紅色為 #ff8484、綠色為 #c5f467、藍色為 #5cb2ff、洋紅為 #cf8dfb。

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

與 Hackthebox 相似的配色

資料來源:Warp Themes (Apache-2.0)