跳到正文

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