跳到主要內容

traffic

traffic 是一套深色終端機配色(柔和、單色),背景色 #272c30,文字色 #cfb9a8,對比度 7.5:1

取得設定檔
背景色
#272c30
前景色
#cfb9a8
文字對比度
7.49:1AAA
強調色對比度
3.01:1最低 2.11
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
❯

traffic 的設定檔

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

traffic

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

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

palette = 0=#282d31
palette = 1=#934e46
palette = 2=#637268
palette = 3=#c79e84
palette = 4=#515e67
palette = 5=#715f5e
palette = 6=#5c6f7d
palette = 7=#cfb9a8
palette = 8=#414a51
palette = 9=#934e46
palette = 10=#637270
palette = 11=#c79e84
palette = 12=#515e67
palette = 13=#715f5e
palette = 14=#5c6f7d
palette = 15=#ddcec2
background = #272c30
foreground = #cfb9a8
cursor-color = #cfb9a8
cursor-text = #272c30
selection-background = #cfb9a8
selection-foreground = #272c30

traffic 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#272c30rgb(39 44 48)hsl(207 10% 17%)oklch(29.0% 0.010 242.0)—
前景色foreground#cfb9a8rgb(207 185 168)hsl(26 29% 74%)oklch(80.0% 0.034 60.0)7.49 AAA
游標cursor#cfb9a8rgb(207 185 168)hsl(26 29% 74%)oklch(80.0% 0.034 60.0)7.49 AAA
游標文字cursorText#272c30rgb(39 44 48)hsl(207 10% 17%)oklch(29.0% 0.010 242.0)1.00 低於 AA
選取範圍selection#cfb9a8rgb(207 185 168)hsl(26 29% 74%)oklch(80.0% 0.034 60.0)7.49 AAA
選取文字selectionText#272c30rgb(39 44 48)hsl(207 10% 17%)oklch(29.0% 0.010 242.0)1.00 低於 AA
黑color0#282d31rgb(40 45 49)hsl(207 10% 17%)oklch(29.4% 0.010 242.0)1.01 低於 AA
紅color1#934e46rgb(147 78 70)hsl(6 35% 43%)oklch(50.5% 0.094 27.8)2.30 低於 AA
綠color2#637268rgb(99 114 104)hsl(140 7% 42%)oklch(53.6% 0.024 156.3)2.78 低於 AA
黃color3#c79e84rgb(199 158 132)hsl(23 37% 65%)oklch(73.0% 0.061 53.9)5.81 AA
藍color4#515e67rgb(81 94 103)hsl(205 12% 36%)oklch(47.4% 0.022 238.2)2.11 低於 AA
洋紅color5#715f5ergb(113 95 94)hsl(3 9% 41%)oklch(50.3% 0.023 21.7)2.35 低於 AA
青color6#5c6f7drgb(92 111 125)hsl(205 15% 43%)oklch(53.1% 0.032 240.1)2.70 低於 AA
白color7#cfb9a8rgb(207 185 168)hsl(26 29% 74%)oklch(80.0% 0.034 60.0)7.49 AAA
亮黑color8#414a51rgb(65 74 81)hsl(206 11% 29%)oklch(40.4% 0.017 241.3)1.56 低於 AA
亮紅color9#934e46rgb(147 78 70)hsl(6 35% 43%)oklch(50.5% 0.094 27.8)2.30 低於 AA
亮綠color10#637270rgb(99 114 112)hsl(172 7% 42%)oklch(53.9% 0.018 186.9)2.80 低於 AA
亮黃color11#c79e84rgb(199 158 132)hsl(23 37% 65%)oklch(73.0% 0.061 53.9)5.81 AA
亮藍color12#515e67rgb(81 94 103)hsl(205 12% 36%)oklch(47.4% 0.022 238.2)2.11 低於 AA
亮洋紅color13#715f5ergb(113 95 94)hsl(3 9% 41%)oklch(50.3% 0.023 21.7)2.35 低於 AA
亮青color14#5c6f7drgb(92 111 125)hsl(205 15% 43%)oklch(53.1% 0.032 240.1)2.70 低於 AA
亮白color15#ddcec2rgb(221 206 194)hsl(27 28% 81%)oklch(86.0% 0.023 61.2)9.19 AAA

關於 traffic

traffic 採用中性色調的深色背景(#272c30),預設前景色為 #cfb9a8。內文的 WCAG 對比度為 7.49:1(AAA),12 種 ANSI 彩色槽位平均對比度 3.01:1,最低 2.11:1。

色票整體色彩彩度偏低,其中紅色為 #934e46、綠色為 #637268、藍色為 #515e67、洋紅為 #715f5e。

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

與 traffic 相似的配色

資料來源:iTerm2 Color Schemes (MIT)