跳到主要內容

Hacktober

Hacktober 是一套深色終端機配色,背景色 #141414,文字色 #c9c9c9,對比度 11.1:1

取得設定檔
背景色
#141414
前景色
#c9c9c9
文字對比度
11.13:1AAA
強調色對比度
5.13:1最低 2.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
❯

Hacktober 的設定檔

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

Hacktober

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

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

palette = 0=#191918
palette = 1=#b34538
palette = 2=#587744
palette = 3=#d08949
palette = 4=#206ec5
palette = 5=#864651
palette = 6=#ac9166
palette = 7=#f1eee7
palette = 8=#2c2b2a
palette = 9=#b33323
palette = 10=#42824a
palette = 11=#c75a22
palette = 12=#5389c5
palette = 13=#e795a5
palette = 14=#ebc587
palette = 15=#ffffff
background = #141414
foreground = #c9c9c9
cursor-color = #c9c9c9
cursor-text = #141414
selection-background = #141414
selection-foreground = #c9c9c9

Hacktober 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#141414rgb(20 20 20)hsl(0 0% 8%)oklch(19.1% 0.000 0)—
前景色foreground#c9c9c9rgb(201 201 201)hsl(0 0% 79%)oklch(83.6% 0.000 0)11.13 AAA
光標cursor#c9c9c9rgb(201 201 201)hsl(0 0% 79%)oklch(83.6% 0.000 0)11.13 AAA
光標文字cursorText#141414rgb(20 20 20)hsl(0 0% 8%)oklch(19.1% 0.000 0)1.00 低於 AA
選取範圍selection#141414rgb(20 20 20)hsl(0 0% 8%)oklch(19.1% 0.000 0)1.00 低於 AA
選取文字selectionText#c9c9c9rgb(201 201 201)hsl(0 0% 79%)oklch(83.6% 0.000 0)11.13 AAA
黑color0#191918rgb(25 25 24)hsl(60 2% 10%)oklch(21.3% 0.002 106.6)1.05 低於 AA
紅color1#b34538rgb(179 69 56)hsl(6 52% 46%)oklch(53.8% 0.146 29.4)3.36 AA 大字體
綠color2#587744rgb(88 119 68)hsl(96 27% 37%)oklch(53.2% 0.084 134.0)3.63 AA 大字體
黃color3#d08949rgb(208 137 73)hsl(28 59% 55%)oklch(69.0% 0.118 60.8)6.45 AA
藍color4#206ec5rgb(32 110 197)hsl(212 72% 45%)oklch(53.9% 0.154 254.6)3.60 AA 大字體
洋紅color5#864651rgb(134 70 81)hsl(350 31% 40%)oklch(47.6% 0.088 10.0)2.64 低於 AA
青color6#ac9166rgb(172 145 102)hsl(37 30% 54%)oklch(67.1% 0.067 78.8)6.14 AA
白color7#f1eee7rgb(241 238 231)hsl(42 26% 93%)oklch(95.0% 0.010 87.5)15.90 AAA
亮黑color8#2c2b2argb(44 43 42)hsl(30 2% 17%)oklch(29.0% 0.002 67.7)1.30 低於 AA
亮紅color9#b33323rgb(179 51 35)hsl(7 67% 42%)oklch(51.4% 0.167 30.6)3.00 低於 AA
亮綠color10#42824argb(66 130 74)hsl(128 33% 38%)oklch(54.9% 0.108 146.6)3.97 AA 大字體
亮黃color11#c75a22rgb(199 90 34)hsl(20 71% 46%)oklch(59.6% 0.154 44.2)4.31 AA 大字體
亮藍color12#5389c5rgb(83 137 197)hsl(212 50% 55%)oklch(61.9% 0.108 252.2)5.05 AA
亮洋紅color13#e795a5rgb(231 149 165)hsl(348 63% 75%)oklch(75.7% 0.100 7.0)8.11 AAA
亮青color14#ebc587rgb(235 197 135)hsl(37 71% 73%)oklch(84.2% 0.090 79.3)11.29 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.42 AAA

關於 Hacktober

Hacktober 採用中性色調的深色背景(#141414),預設前景色為 #c9c9c9。正文的 WCAG 對比度為 11.13:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.13:1,最低 2.64:1。

色板整體色彩飽和度適中,其中紅色為 #b34538、綠色為 #587744、藍色為 #206ec5、洋紅為 #864651。

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

與 Hacktober 相似的配色

資料來源:iTerm2 Color Schemes (MIT)