跳到主要內容

Tribal Contrast

Tribal Contrast 是一套深色終端機配色(單色),背景色 #19191d,文字色 #ffffff,對比度 17.5:1

取得設定檔
背景色
#19191d
前景色
#ffffff
文字對比度
17.53:1AAA
強調色對比度
6.52:1最低 2.59
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
❯

Tribal Contrast 的設定檔

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

Tribal Contrast

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

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

palette = 0=#25252b
palette = 1=#ba0e2e
palette = 2=#c43535
palette = 3=#5f5582
palette = 4=#e0ddeb
palette = 5=#5f5582
palette = 6=#8f8aa2
palette = 7=#ffffff
palette = 8=#3c3c46
palette = 9=#e61f44
palette = 10=#dd8282
palette = 11=#938ab3
palette = 12=#ffffff
palette = 13=#938ab3
palette = 14=#c5c3cf
palette = 15=#ffffff
background = #19191d
foreground = #ffffff
cursor-color = #f8f8f0
cursor-text = #ffffff
selection-background = #47959a
selection-foreground = #ffffff

Tribal Contrast 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#19191drgb(25 25 29)hsl(240 7% 11%)oklch(21.5% 0.008 285.7)—
前景色foreground#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)17.53 AAA
游標cursor#f8f8f0rgb(248 248 240)hsl(60 36% 96%)oklch(97.7% 0.011 106.6)16.42 AAA
游標文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)17.53 AAA
選取範圍selection#47959argb(71 149 154)hsl(184 37% 44%)oklch(62.3% 0.077 201.0)5.04 AA
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)17.53 AAA
黑color0#25252brgb(37 37 43)hsl(240 8% 16%)oklch(26.7% 0.011 285.6)1.15 低於 AA
紅color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)2.66 低於 AA
綠color2#c43535rgb(196 53 53)hsl(0 57% 49%)oklch(54.8% 0.180 25.4)3.26 AA 大字級
黃color3#5f5582rgb(95 85 130)hsl(253 21% 42%)oklch(47.8% 0.072 293.7)2.59 低於 AA
藍color4#e0ddebrgb(224 221 235)hsl(253 26% 89%)oklch(90.4% 0.019 295.8)13.11 AAA
洋紅color5#5f5582rgb(95 85 130)hsl(253 21% 42%)oklch(47.8% 0.072 293.7)2.59 低於 AA
青color6#8f8aa2rgb(143 138 162)hsl(253 11% 59%)oklch(64.6% 0.036 294.9)5.28 AA
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)17.53 AAA
亮黑color8#3c3c46rgb(60 60 70)hsl(240 8% 25%)oklch(36.0% 0.017 285.5)1.61 低於 AA
亮紅color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)3.88 AA 大字級
亮綠color10#dd8282rgb(221 130 130)hsl(0 57% 69%)oklch(70.4% 0.113 20.3)6.33 AA
亮黃color11#938ab3rgb(147 138 179)hsl(253 21% 62%)oklch(65.6% 0.061 294.7)5.45 AA
亮藍color12#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)17.53 AAA
亮洋紅color13#938ab3rgb(147 138 179)hsl(253 21% 62%)oklch(65.6% 0.061 294.7)5.45 AA
亮青color14#c5c3cfrgb(197 195 207)hsl(250 11% 79%)oklch(82.2% 0.017 293.7)10.08 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)17.53 AAA

關於 Tribal Contrast

Tribal Contrast 採用中性色調的深色背景(#19191d),預設前景色為 #ffffff。內文的 WCAG 對比度為 17.53:1(AAA),12 種 ANSI 彩色槽位平均對比度 6.52:1,最低 2.59:1。

色票整體色彩彩度適中,其中紅色為 #ba0e2e、綠色為 #c43535、藍色為 #e0ddeb、洋紅為 #5f5582。

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

與 Tribal Contrast 相似的配色

資料來源:Rainglow (MIT)