跳到主要內容

Hardcore

Hardcore 是一套深色終端機配色,背景色 #121212,文字色 #a0a0a0,對比度 7.2:1

取得設定檔
背景色
#121212
前景色
#a0a0a0
文字對比度
7.16:1AAA
強調色對比度
8.83:1最低 3.65
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
❯

Hardcore 的設定檔

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

Hardcore

存到 ~/.config/ghostty/themes/Hardcore,再在 config 或 config.ghostty 裡寫 theme = Hardcore

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

palette = 0=#1b1d1e
palette = 1=#f92672
palette = 2=#a6e22e
palette = 3=#fd971f
palette = 4=#66d9ef
palette = 5=#9e6ffe
palette = 6=#5e7175
palette = 7=#ccccc6
palette = 8=#505354
palette = 9=#ff669d
palette = 10=#beed5f
palette = 11=#e6db74
palette = 12=#66d9ef
palette = 13=#9e6ffe
palette = 14=#a3babf
palette = 15=#f8f8f2
background = #121212
foreground = #a0a0a0
cursor-color = #bbbbbb
cursor-text = #ffffff
selection-background = #453b39
selection-foreground = #b6bbc0

Hardcore 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#121212rgb(18 18 18)hsl(0 0% 7%)oklch(18.2% 0.000 0)—
前景色foreground#a0a0a0rgb(160 160 160)hsl(0 0% 63%)oklch(70.6% 0.000 0)7.16 AAA
游標cursor#bbbbbbrgb(187 187 187)hsl(0 0% 73%)oklch(79.2% 0.000 0)9.76 AAA
游標文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.73 AAA
選取範圍selection#453b39rgb(69 59 57)hsl(10 10% 25%)oklch(36.2% 0.014 31.2)1.73 低於 AA
選取文字selectionText#b6bbc0rgb(182 187 192)hsl(210 7% 73%)oklch(79.0% 0.009 247.9)9.69 AAA
黑color0#1b1d1ergb(27 29 30)hsl(200 5% 11%)oklch(22.9% 0.004 229.0)1.11 低於 AA
紅color1#f92672rgb(249 38 114)hsl(338 95% 56%)oklch(64.2% 0.240 7.5)4.95 AA
綠color2#a6e22ergb(166 226 46)hsl(80 76% 53%)oklch(84.1% 0.204 127.3)12.08 AAA
黃color3#fd971frgb(253 151 31)hsl(32 98% 56%)oklch(76.7% 0.168 62.4)8.58 AAA
藍color4#66d9efrgb(102 217 239)hsl(190 81% 67%)oklch(82.7% 0.108 212.0)11.36 AAA
洋紅color5#9e6ffergb(158 111 254)hsl(260 99% 72%)oklch(65.7% 0.204 295.4)5.49 AA
青color6#5e7175rgb(94 113 117)hsl(190 11% 41%)oklch(53.5% 0.023 211.8)3.65 AA 大字級
白color7#ccccc6rgb(204 204 198)hsl(60 6% 79%)oklch(84.4% 0.008 106.6)11.61 AAA
亮黑color8#505354rgb(80 83 84)hsl(195 2% 32%)oklch(44.0% 0.004 219.6)2.41 低於 AA
亮紅color9#ff669drgb(255 102 157)hsl(338 100% 70%)oklch(71.7% 0.192 0.8)6.81 AA
亮綠color10#beed5frgb(190 237 95)hsl(80 80% 65%)oklch(88.5% 0.176 125.3)13.80 AAA
亮黃color11#e6db74rgb(230 219 116)hsl(54 70% 68%)oklch(87.9% 0.125 103.2)13.16 AAA
亮藍color12#66d9efrgb(102 217 239)hsl(190 81% 67%)oklch(82.7% 0.108 212.0)11.36 AAA
亮洋紅color13#9e6ffergb(158 111 254)hsl(260 99% 72%)oklch(65.7% 0.204 295.4)5.49 AA
亮青color14#a3babfrgb(163 186 191)hsl(191 18% 69%)oklch(77.3% 0.026 212.3)9.22 AAA
亮白color15#f8f8f2rgb(248 248 242)hsl(60 30% 96%)oklch(97.7% 0.008 106.5)17.57 AAA

關於 Hardcore

Hardcore 採用中性色調的深色背景(#121212),預設前景色為 #a0a0a0。內文的 WCAG 對比度為 7.16:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.83:1,最低 3.65:1。

色票整體色彩彩度適中,其中紅色為 #f92672、綠色為 #a6e22e、藍色為 #66d9ef、洋紅為 #9e6ffe。

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

與 Hardcore 相似的配色

資料來源:iTerm2 Color Schemes (MIT)