跳到主要內容

Letterpress

Letterpress 是一套淺色終端機配色(暖色),背景色 #f3ecdf,文字色 #3a352c,對比度 10.4:1

取得設定檔
背景色
#f3ecdf
前景色
#3a352c
文字對比度
10.36:1AAA
強調色對比度
5.53:1最低 4.82
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
❯

Letterpress 的設定檔

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

Letterpress

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

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

palette = 0=#3a352c
palette = 1=#b0202a
palette = 2=#506b24
palette = 3=#8a5e0a
palette = 4=#2a5c8a
palette = 5=#6e4b2e
palette = 6=#176b5f
palette = 7=#aeaba4
palette = 8=#8e886f
palette = 9=#b0202a
palette = 10=#506b24
palette = 11=#8a4fa0
palette = 12=#2a5c8a
palette = 13=#176b5f
palette = 14=#176b5f
palette = 15=#3a352c
background = #f3ecdf
foreground = #3a352c
cursor-color = #2a5c8a
cursor-text = #f3ecdf
selection-background = #e3d8c4
selection-foreground = #a69f92

Letterpress 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#f3ecdfrgb(243 236 223)hsl(39 45% 91%)oklch(94.5% 0.019 83.1)—
前景色foreground#3a352crgb(58 53 44)hsl(39 14% 20%)oklch(33.1% 0.017 82.3)10.36 AAA
光標cursor#2a5c8argb(42 92 138)hsl(209 53% 35%)oklch(46.3% 0.093 248.8)5.97 AA
光標文字cursorText#f3ecdfrgb(243 236 223)hsl(39 45% 91%)oklch(94.5% 0.019 83.1)1.00 低於 AA
選取範圍selection#e3d8c4rgb(227 216 196)hsl(39 36% 83%)oklch(88.6% 0.029 82.6)1.20 低於 AA
選取文字selectionText#a69f92rgb(166 159 146)hsl(39 10% 61%)oklch(70.5% 0.020 83.1)2.24 低於 AA
黑color0#3a352crgb(58 53 44)hsl(39 14% 20%)oklch(33.1% 0.017 82.3)10.36 AAA
紅color1#b0202argb(176 32 42)hsl(356 69% 41%)oklch(49.3% 0.178 23.9)5.79 AA
綠color2#506b24rgb(80 107 36)hsl(83 50% 28%)oklch(49.0% 0.103 127.5)5.15 AA
黃color3#8a5e0argb(138 94 10)hsl(39 86% 29%)oklch(51.6% 0.105 75.9)4.85 AA
藍color4#2a5c8argb(42 92 138)hsl(209 53% 35%)oklch(46.3% 0.093 248.8)5.97 AA
洋紅color5#6e4b2ergb(110 75 46)hsl(27 41% 31%)oklch(44.5% 0.064 59.7)6.60 AA
青color6#176b5frgb(23 107 95)hsl(171 65% 25%)oklch(47.7% 0.079 180.8)5.41 AA
白color7#aeaba4rgb(174 171 164)hsl(42 6% 66%)oklch(74.2% 0.010 87.5)1.95 低於 AA
亮黑color8#8e886frgb(142 136 111)hsl(48 12% 50%)oklch(62.5% 0.037 96.1)3.03 AA 大字體
亮紅color9#b0202argb(176 32 42)hsl(356 69% 41%)oklch(49.3% 0.178 23.9)5.79 AA
亮綠color10#506b24rgb(80 107 36)hsl(83 50% 28%)oklch(49.0% 0.103 127.5)5.15 AA
亮黃color11#8a4fa0rgb(138 79 160)hsl(284 34% 47%)oklch(53.0% 0.137 316.2)4.82 AA
亮藍color12#2a5c8argb(42 92 138)hsl(209 53% 35%)oklch(46.3% 0.093 248.8)5.97 AA
亮洋紅color13#176b5frgb(23 107 95)hsl(171 65% 25%)oklch(47.7% 0.079 180.8)5.41 AA
亮青color14#176b5frgb(23 107 95)hsl(171 65% 25%)oklch(47.7% 0.079 180.8)5.41 AA
亮白color15#3a352crgb(58 53 44)hsl(39 14% 20%)oklch(33.1% 0.017 82.3)10.36 AAA

關於 Letterpress

Letterpress 採用暖色調的淺色背景(#f3ecdf),預設前景色為 #3a352c。正文的 WCAG 對比度為 10.36:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.53:1,最低 4.82:1。

色板整體色彩飽和度適中,其中紅色為 #b0202a、綠色為 #506b24、藍色為 #2a5c8a、洋紅為 #6e4b2e。

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

與 Letterpress 相似的配色

資料來源:iTerm2 Color Schemes (MIT)