跳到主要內容

Tribal

Tribal 是一套深色終端機配色(單色、冷色),背景色 #393942,文字色 #ffffff,對比度 11.4:1

取得設定檔
背景色
#393942
前景色
#ffffff
文字對比度
11.43:1AAA
強調色對比度
4.25:1最低 1.69
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 的設定檔

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

Tribal

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

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

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

Tribal 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#393942rgb(57 57 66)hsl(240 7% 24%)oklch(34.8% 0.016 285.6)—
前景色foreground#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)11.43 AAA
光標cursor#f8f8f0rgb(248 248 240)hsl(60 36% 96%)oklch(97.7% 0.011 106.6)10.71 AAA
光標文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)11.43 AAA
選取範圍selection#47959argb(71 149 154)hsl(184 37% 44%)oklch(62.3% 0.077 201.0)3.28 AA 大字體
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)11.43 AAA
黑color0#454550rgb(69 69 80)hsl(240 7% 29%)oklch(39.5% 0.018 285.5)1.21 低於 AA
紅color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)1.74 低於 AA
綠color2#c43535rgb(196 53 53)hsl(0 57% 49%)oklch(54.8% 0.180 25.4)2.13 低於 AA
黃color3#5f5582rgb(95 85 130)hsl(253 21% 42%)oklch(47.8% 0.072 293.7)1.69 低於 AA
藍color4#e0ddebrgb(224 221 235)hsl(253 26% 89%)oklch(90.4% 0.019 295.8)8.55 AAA
洋紅color5#5f5582rgb(95 85 130)hsl(253 21% 42%)oklch(47.8% 0.072 293.7)1.69 低於 AA
青color6#8f8aa2rgb(143 138 162)hsl(253 11% 59%)oklch(64.6% 0.036 294.9)3.44 AA 大字體
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)11.43 AAA
亮黑color8#5c5c6brgb(92 92 107)hsl(240 8% 39%)oklch(48.0% 0.024 285.5)1.74 低於 AA
亮紅color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)2.53 低於 AA
亮綠color10#dd8282rgb(221 130 130)hsl(0 57% 69%)oklch(70.4% 0.113 20.3)4.13 AA 大字體
亮黃color11#938ab3rgb(147 138 179)hsl(253 21% 62%)oklch(65.6% 0.061 294.7)3.55 AA 大字體
亮藍color12#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)11.43 AAA
亮洋紅color13#938ab3rgb(147 138 179)hsl(253 21% 62%)oklch(65.6% 0.061 294.7)3.55 AA 大字體
亮青color14#c5c3cfrgb(197 195 207)hsl(250 11% 79%)oklch(82.2% 0.017 293.7)6.57 AA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)11.43 AAA

關於 Tribal

Tribal 採用冷色調的深色背景(#393942),預設前景色為 #ffffff。正文的 WCAG 對比度為 11.43:1(AAA),12 種 ANSI 彩色槽位平均對比度 4.25:1,最低 1.69: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 相似的配色

資料來源:Rainglow (MIT)