跳到主要內容

Tube

Tube 是一套深色終端機配色,背景色 #231f20,文字色 #d9d8d8,對比度 11.5:1

取得設定檔
背景色
#231f20
前景色
#d9d8d8
文字對比度
11.46:1AAA
強調色對比度
5.80:1最低 1.94
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
❯

Tube 的設定檔

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

Tube

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

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

palette = 0=#231f20
palette = 1=#ee2e24
palette = 2=#00853e
palette = 3=#ffd204
palette = 4=#009ddc
palette = 5=#98005d
palette = 6=#85cebc
palette = 7=#d9d8d8
palette = 8=#737171
palette = 9=#ee2e24
palette = 10=#00853e
palette = 11=#ffd204
palette = 12=#009ddc
palette = 13=#98005d
palette = 14=#85cebc
palette = 15=#ffffff
background = #231f20
foreground = #d9d8d8
cursor-color = #d9d8d8
cursor-text = #231f20
selection-background = #4b4848
selection-foreground = #d9d8d8

Tube 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#231f20rgb(35 31 32)hsl(345 6% 13%)oklch(24.4% 0.006 0.6)—
前景色foreground#d9d8d8rgb(217 216 216)hsl(0 1% 85%)oklch(88.3% 0.001 17.2)11.46 AAA
光標cursor#d9d8d8rgb(217 216 216)hsl(0 1% 85%)oklch(88.3% 0.001 17.2)11.46 AAA
光標文字cursorText#231f20rgb(35 31 32)hsl(345 6% 13%)oklch(24.4% 0.006 0.6)1.00 低於 AA
選取範圍selection#4b4848rgb(75 72 72)hsl(0 2% 29%)oklch(40.5% 0.004 17.3)1.80 低於 AA
選取文字selectionText#d9d8d8rgb(217 216 216)hsl(0 1% 85%)oklch(88.3% 0.001 17.2)11.46 AAA
黑color0#231f20rgb(35 31 32)hsl(345 6% 13%)oklch(24.4% 0.006 0.6)1.00 低於 AA
紅color1#ee2e24rgb(238 46 36)hsl(3 86% 54%)oklch(61.4% 0.227 28.9)3.92 AA 大字體
綠color2#00853ergb(0 133 62)hsl(148 100% 26%)oklch(53.9% 0.146 150.7)3.43 AA 大字體
黃color3#ffd204rgb(255 210 4)hsl(49 100% 51%)oklch(87.7% 0.179 93.1)11.23 AAA
藍color4#009ddcrgb(0 157 220)hsl(197 100% 43%)oklch(65.8% 0.142 236.1)5.32 AA
洋紅color5#98005drgb(152 0 93)hsl(323 100% 30%)oklch(44.6% 0.184 352.8)1.94 低於 AA
青color6#85cebcrgb(133 206 188)hsl(165 43% 66%)oklch(79.8% 0.078 176.9)8.97 AAA
白color7#d9d8d8rgb(217 216 216)hsl(0 1% 85%)oklch(88.3% 0.001 17.2)11.46 AAA
亮黑color8#737171rgb(115 113 113)hsl(0 1% 45%)oklch(55.0% 0.002 17.2)3.36 AA 大字體
亮紅color9#ee2e24rgb(238 46 36)hsl(3 86% 54%)oklch(61.4% 0.227 28.9)3.92 AA 大字體
亮綠color10#00853ergb(0 133 62)hsl(148 100% 26%)oklch(53.9% 0.146 150.7)3.43 AA 大字體
亮黃color11#ffd204rgb(255 210 4)hsl(49 100% 51%)oklch(87.7% 0.179 93.1)11.23 AAA
亮藍color12#009ddcrgb(0 157 220)hsl(197 100% 43%)oklch(65.8% 0.142 236.1)5.32 AA
亮洋紅color13#98005drgb(152 0 93)hsl(323 100% 30%)oklch(44.6% 0.184 352.8)1.94 低於 AA
亮青color14#85cebcrgb(133 206 188)hsl(165 43% 66%)oklch(79.8% 0.078 176.9)8.97 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.30 AAA

關於 Tube

Tube 採用中性色調的深色背景(#231f20),預設前景色為 #d9d8d8。正文的 WCAG 對比度為 11.46:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.80:1,最低 1.94:1。

色板整體色彩飽和度適中,其中紅色為 #ee2e24、綠色為 #00853e、藍色為 #009ddc、洋紅為 #98005d。

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

該色板在上游儲存庫中亦曾以 London Tube 的名稱發佈

與 Tube 相似的配色

資料來源:Gogh (MIT OR Apache-2.0)