跳到主要內容

Tetra

Tetra 是一套深色終端機配色(冷色),背景色 #13363f,文字色 #c9d7db,對比度 8.7:1

取得設定檔
背景色
#13363f
前景色
#c9d7db
文字對比度
8.74:1AAA
強調色對比度
5.71:1最低 1.96
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
❯

Tetra 的設定檔

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

Tetra

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

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

palette = 0=#194753
palette = 1=#ba0e2e
palette = 2=#148b97
palette = 3=#fdce7f
palette = 4=#e8744a
palette = 5=#e2585d
palette = 6=#148b97
palette = 7=#d8e2e5
palette = 8=#25687a
palette = 9=#e61f44
palette = 10=#2ed3e3
palette = 11=#fff4e3
palette = 12=#f3baa5
palette = 13=#f1afb1
palette = 14=#2ed3e3
palette = 15=#f7f9fa
background = #13363f
foreground = #c9d7db
cursor-color = #f8f8f0
cursor-text = #c9d7db
selection-background = #148b97
selection-foreground = #ffffff

Tetra 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#13363frgb(19 54 63)hsl(192 54% 16%)oklch(31.2% 0.043 217.4)—
前景色foreground#c9d7dbrgb(201 215 219)hsl(193 20% 82%)oklch(87.0% 0.016 216.7)8.74 AAA
游標cursor#f8f8f0rgb(248 248 240)hsl(60 36% 96%)oklch(97.7% 0.011 106.6)12.09 AAA
游標文字cursorText#c9d7dbrgb(201 215 219)hsl(193 20% 82%)oklch(87.0% 0.016 216.7)8.74 AAA
選取範圍selection#148b97rgb(20 139 151)hsl(185 77% 34%)oklch(58.3% 0.096 205.9)3.18 AA 大字級
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)12.91 AAA
黑color0#194753rgb(25 71 83)hsl(192 54% 21%)oklch(37.2% 0.053 218.0)1.27 低於 AA
紅color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)1.96 低於 AA
綠color2#148b97rgb(20 139 151)hsl(185 77% 34%)oklch(58.3% 0.096 205.9)3.18 AA 大字級
黃color3#fdce7frgb(253 206 127)hsl(38 97% 75%)oklch(87.6% 0.111 79.5)8.80 AAA
藍color4#e8744argb(232 116 74)hsl(16 77% 60%)oklch(68.6% 0.155 40.1)4.32 AA 大字級
洋紅color5#e2585drgb(226 88 93)hsl(358 70% 62%)oklch(64.2% 0.172 21.2)3.56 AA 大字級
青color6#148b97rgb(20 139 151)hsl(185 77% 34%)oklch(58.3% 0.096 205.9)3.18 AA 大字級
白color7#d8e2e5rgb(216 226 229)hsl(194 20% 87%)oklch(90.6% 0.012 217.5)9.79 AAA
亮黑color8#25687argb(37 104 122)hsl(193 53% 31%)oklch(48.3% 0.072 219.0)2.05 低於 AA
亮紅color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)2.85 低於 AA
亮綠color10#2ed3e3rgb(46 211 227)hsl(185 76% 54%)oklch(79.4% 0.128 205.2)7.09 AAA
亮黃color11#fff4e3rgb(255 244 227)hsl(36 100% 95%)oklch(97.1% 0.025 78.9)11.86 AAA
亮藍color12#f3baa5rgb(243 186 165)hsl(16 76% 80%)oklch(83.5% 0.072 41.1)7.61 AAA
亮洋紅color13#f1afb1rgb(241 175 177)hsl(358 70% 82%)oklch(81.6% 0.078 16.9)7.07 AAA
亮青color14#2ed3e3rgb(46 211 227)hsl(185 76% 54%)oklch(79.4% 0.128 205.2)7.09 AAA
亮白color15#f7f9fargb(247 249 250)hsl(200 23% 97%)oklch(98.1% 0.003 228.8)12.22 AAA

關於 Tetra

Tetra 採用冷色調的深色背景(#13363f),預設前景色為 #c9d7db。內文的 WCAG 對比度為 8.74:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.71:1,最低 1.96:1。

色票整體色彩彩度適中,其中紅色為 #ba0e2e、綠色為 #148b97、藍色為 #e8744a、洋紅為 #e2585d。

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

與 Tetra 相似的配色

資料來源:Rainglow (MIT)