跳到主要內容

Harper

Harper 是一套深色終端機配色(純黑),背景色 #010101,文字色 #a8a49d,對比度 8.4:1

取得設定檔
背景色
#010101
前景色
#a8a49d
文字對比度
8.41:1AAA
強調色對比度
10.42:1最低 6.22
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
❯

Harper 的設定檔

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

Harper

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

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

palette = 0=#010101
palette = 1=#f8b63f
palette = 2=#7fb5e1
palette = 3=#d6da25
palette = 4=#489e48
palette = 5=#b296c6
palette = 6=#f5bfd7
palette = 7=#a8a49d
palette = 8=#726e6a
palette = 9=#f8b63f
palette = 10=#7fb5e1
palette = 11=#d6da25
palette = 12=#489e48
palette = 13=#b296c6
palette = 14=#f5bfd7
palette = 15=#fefbea
background = #010101
foreground = #a8a49d
cursor-color = #a8a49d
cursor-text = #010101
selection-background = #5a5753
selection-foreground = #a8a49d

Harper 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#010101rgb(1 1 1)hsl(0 0% 0%)oklch(6.7% 0.000 0)—
前景色foreground#a8a49drgb(168 164 157)hsl(38 6% 64%)oklch(72.0% 0.011 81.8)8.41 AAA
光標cursor#a8a49drgb(168 164 157)hsl(38 6% 64%)oklch(72.0% 0.011 81.8)8.41 AAA
光標文字cursorText#010101rgb(1 1 1)hsl(0 0% 0%)oklch(6.7% 0.000 0)1.00 低於 AA
選取範圍selection#5a5753rgb(90 87 83)hsl(34 4% 34%)oklch(45.8% 0.007 75.3)2.91 低於 AA
選取文字selectionText#a8a49drgb(168 164 157)hsl(38 6% 64%)oklch(72.0% 0.011 81.8)8.41 AAA
黑color0#010101rgb(1 1 1)hsl(0 0% 0%)oklch(6.7% 0.000 0)1.00 低於 AA
紅color1#f8b63frgb(248 182 63)hsl(39 93% 61%)oklch(81.8% 0.149 78.0)11.68 AAA
綠color2#7fb5e1rgb(127 181 225)hsl(207 62% 69%)oklch(75.2% 0.085 243.8)9.54 AAA
黃color3#d6da25rgb(214 218 37)hsl(61 71% 50%)oklch(85.7% 0.181 111.1)13.83 AAA
藍color4#489e48rgb(72 158 72)hsl(120 37% 45%)oklch(62.6% 0.148 143.6)6.22 AA
洋紅color5#b296c6rgb(178 150 198)hsl(275 30% 68%)oklch(71.5% 0.075 310.9)8.02 AAA
青color6#f5bfd7rgb(245 191 215)hsl(333 73% 85%)oklch(86.0% 0.069 350.2)13.24 AAA
白color7#a8a49drgb(168 164 157)hsl(38 6% 64%)oklch(72.0% 0.011 81.8)8.41 AAA
亮黑color8#726e6argb(114 110 106)hsl(30 4% 43%)oklch(54.1% 0.008 67.7)4.13 AA 大字體
亮紅color9#f8b63frgb(248 182 63)hsl(39 93% 61%)oklch(81.8% 0.149 78.0)11.68 AAA
亮綠color10#7fb5e1rgb(127 181 225)hsl(207 62% 69%)oklch(75.2% 0.085 243.8)9.54 AAA
亮黃color11#d6da25rgb(214 218 37)hsl(61 71% 50%)oklch(85.7% 0.181 111.1)13.83 AAA
亮藍color12#489e48rgb(72 158 72)hsl(120 37% 45%)oklch(62.6% 0.148 143.6)6.22 AA
亮洋紅color13#b296c6rgb(178 150 198)hsl(275 30% 68%)oklch(71.5% 0.075 310.9)8.02 AAA
亮青color14#f5bfd7rgb(245 191 215)hsl(333 73% 85%)oklch(86.0% 0.069 350.2)13.24 AAA
亮白color15#fefbeargb(254 251 234)hsl(51 91% 96%)oklch(98.6% 0.023 98.6)20.08 AAA

關於 Harper

Harper 採用中性色調的深色背景(#010101),預設前景色為 #a8a49d。正文的 WCAG 對比度為 8.41:1(AAA),12 種 ANSI 彩色槽位平均對比度 10.42:1,最低 6.22:1。

色板整體色彩飽和度適中,其中紅色為 #f8b63f、綠色為 #7fb5e1、藍色為 #489e48、洋紅為 #b296c6。

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

與 Harper 相似的配色

資料來源:iTerm2 Color Schemes (CC-BY-SA-4.0)