跳到主要內容

Tearout

Tearout 是一套深色終端機配色(低飽和),背景色 #34392d,文字色 #f4d2ae,對比度 8.3:1

取得設定檔
背景色
#34392d
前景色
#f4d2ae
文字對比度
8.30:1AAA
強調色對比度
4.71:1最低 3.56
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
❯

Tearout 的設定檔

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

Tearout

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

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

palette = 0=#685742
palette = 1=#cc967b
palette = 2=#97976d
palette = 3=#6c9861
palette = 4=#b5955e
palette = 5=#c9a554
palette = 6=#d7c483
palette = 7=#b5955e
palette = 8=#75644f
palette = 9=#cc967b
palette = 10=#97976d
palette = 11=#6c9861
palette = 12=#b5955e
palette = 13=#c9a554
palette = 14=#d7c483
palette = 15=#b5955e
background = #34392d
foreground = #f4d2ae
cursor-color = #d7c483
cursor-text = #141415
selection-background = #e4c47a
selection-foreground = #000000

Tearout 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#34392drgb(52 57 45)hsl(85 12% 20%)oklch(33.6% 0.022 126.0)—
前景色foreground#f4d2aergb(244 210 174)hsl(31 76% 82%)oklch(88.4% 0.061 68.5)8.30 AAA
光標cursor#d7c483rgb(215 196 131)hsl(46 51% 68%)oklch(82.1% 0.086 93.7)6.85 AA
光標文字cursorText#141415rgb(20 20 21)hsl(240 2% 8%)oklch(19.2% 0.002 286.2)1.55 低於 AA
選取範圍selection#e4c47argb(228 196 122)hsl(42 66% 69%)oklch(83.2% 0.100 86.9)7.05 AAA
選取文字selectionText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.77 低於 AA
黑color0#685742rgb(104 87 66)hsl(33 22% 33%)oklch(46.8% 0.039 72.5)1.71 低於 AA
紅color1#cc967brgb(204 150 123)hsl(20 44% 64%)oklch(71.8% 0.076 47.6)4.64 AA
綠color2#97976drgb(151 151 109)hsl(60 17% 51%)oklch(66.6% 0.059 107.9)3.94 AA 大字體
黃color3#6c9861rgb(108 152 97)hsl(108 22% 49%)oklch(63.3% 0.093 139.5)3.56 AA 大字體
藍color4#b5955ergb(181 149 94)hsl(38 37% 54%)oklch(68.7% 0.082 80.3)4.20 AA 大字體
洋紅color5#c9a554rgb(201 165 84)hsl(42 52% 56%)oklch(73.8% 0.108 85.6)5.08 AA
青color6#d7c483rgb(215 196 131)hsl(46 51% 68%)oklch(82.1% 0.086 93.7)6.85 AA
白color7#b5955ergb(181 149 94)hsl(38 37% 54%)oklch(68.7% 0.082 80.3)4.20 AA 大字體
亮黑color8#75644frgb(117 100 79)hsl(33 19% 38%)oklch(51.4% 0.038 72.7)2.09 低於 AA
亮紅color9#cc967brgb(204 150 123)hsl(20 44% 64%)oklch(71.8% 0.076 47.6)4.64 AA
亮綠color10#97976drgb(151 151 109)hsl(60 17% 51%)oklch(66.6% 0.059 107.9)3.94 AA 大字體
亮黃color11#6c9861rgb(108 152 97)hsl(108 22% 49%)oklch(63.3% 0.093 139.5)3.56 AA 大字體
亮藍color12#b5955ergb(181 149 94)hsl(38 37% 54%)oklch(68.7% 0.082 80.3)4.20 AA 大字體
亮洋紅color13#c9a554rgb(201 165 84)hsl(42 52% 56%)oklch(73.8% 0.108 85.6)5.08 AA
亮青color14#d7c483rgb(215 196 131)hsl(46 51% 68%)oklch(82.1% 0.086 93.7)6.85 AA
亮白color15#b5955ergb(181 149 94)hsl(38 37% 54%)oklch(68.7% 0.082 80.3)4.20 AA 大字體

關於 Tearout

Tearout 採用中性色調的深色背景(#34392d),預設前景色為 #f4d2ae。正文的 WCAG 對比度為 8.30:1(AAA),12 種 ANSI 彩色槽位平均對比度 4.71:1,最低 3.56:1。

色板整體色彩飽和度偏低,其中紅色為 #cc967b、綠色為 #97976d、藍色為 #b5955e、洋紅為 #c9a554。

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

與 Tearout 相似的配色

資料來源:iTerm2 Color Schemes (MIT)