跳到主要內容

Tailwind Dark

Tailwind Dark 是一套深色終端機配色,背景色 #262626,文字色 #e5e5e5,對比度 12.0:1

取得設定檔
背景色
#262626
前景色
#e5e5e5
文字對比度
12.01:1AAA
強調色對比度
8.63:1最低 5.47
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
❯

Tailwind Dark 的設定檔

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

Tailwind Dark

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

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

palette = 0=#404040
palette = 1=#f87171
palette = 2=#4ade80
palette = 3=#facc15
palette = 4=#38bdf8
palette = 5=#e879f9
palette = 6=#2dd4bf
palette = 7=#e5e5e5
palette = 8=#a3a3a3
palette = 9=#fca5a5
palette = 10=#86efac
palette = 11=#fde047
palette = 12=#7dd3fc
palette = 13=#f0abfc
palette = 14=#5eead4
palette = 15=#f5f5f5
background = #262626
foreground = #e5e5e5
cursor-color = #e5e5e5
cursor-text = #262626
selection-background = #475569
selection-foreground = #e5e5e5

Tailwind Dark 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#262626rgb(38 38 38)hsl(0 0% 15%)oklch(26.9% 0.000 0)—
前景色foreground#e5e5e5rgb(229 229 229)hsl(0 0% 90%)oklch(92.2% 0.000 0)12.01 AAA
游標cursor#e5e5e5rgb(229 229 229)hsl(0 0% 90%)oklch(92.2% 0.000 0)12.01 AAA
游標文字cursorText#262626rgb(38 38 38)hsl(0 0% 15%)oklch(26.9% 0.000 0)1.00 低於 AA
選取範圍selection#475569rgb(71 85 105)hsl(215 19% 35%)oklch(44.6% 0.037 257.3)2.00 低於 AA
選取文字selectionText#e5e5e5rgb(229 229 229)hsl(0 0% 90%)oklch(92.2% 0.000 0)12.01 AAA
黑color0#404040rgb(64 64 64)hsl(0 0% 25%)oklch(37.1% 0.000 0)1.46 低於 AA
紅color1#f87171rgb(248 113 113)hsl(0 91% 71%)oklch(71.1% 0.166 22.2)5.47 AA
綠color2#4ade80rgb(74 222 128)hsl(142 69% 58%)oklch(80.0% 0.182 151.7)8.68 AAA
黃color3#facc15rgb(250 204 21)hsl(48 96% 53%)oklch(86.1% 0.173 91.9)9.88 AAA
藍color4#38bdf8rgb(56 189 248)hsl(198 93% 60%)oklch(75.4% 0.139 232.7)7.06 AAA
洋紅color5#e879f9rgb(232 121 249)hsl(292 91% 73%)oklch(74.8% 0.207 322.2)6.15 AA
青color6#2dd4bfrgb(45 212 191)hsl(172 66% 50%)oklch(78.5% 0.133 181.9)8.13 AAA
白color7#e5e5e5rgb(229 229 229)hsl(0 0% 90%)oklch(92.2% 0.000 0)12.01 AAA
亮黑color8#a3a3a3rgb(163 163 163)hsl(0 0% 64%)oklch(71.5% 0.000 0)6.00 AA
亮紅color9#fca5a5rgb(252 165 165)hsl(0 94% 82%)oklch(80.8% 0.103 19.6)7.97 AAA
亮綠color10#86efacrgb(134 239 172)hsl(142 77% 73%)oklch(87.1% 0.136 154.4)10.78 AAA
亮黃color11#fde047rgb(253 224 71)hsl(50 98% 64%)oklch(90.5% 0.166 98.1)11.48 AAA
亮藍color12#7dd3fcrgb(125 211 252)hsl(199 95% 74%)oklch(82.8% 0.101 230.3)9.08 AAA
亮洋紅color13#f0abfcrgb(240 171 252)hsl(291 93% 83%)oklch(83.3% 0.132 321.4)8.60 AAA
亮青color14#5eead4rgb(94 234 212)hsl(171 77% 64%)oklch(85.5% 0.125 181.1)10.23 AAA
亮白color15#f5f5f5rgb(245 245 245)hsl(0 0% 96%)oklch(97.0% 0.000 0)13.88 AAA

關於 Tailwind Dark

Tailwind Dark 採用中性色調的深色背景(#262626),預設前景色為 #e5e5e5。內文的 WCAG 對比度為 12.01:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.63:1,最低 5.47:1。

色票整體色彩彩度適中,其中紅色為 #f87171、綠色為 #4ade80、藍色為 #38bdf8、洋紅為 #e879f9。

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

與 Tailwind Dark 相似的配色

資料來源:iTerm2 Color Schemes (MIT)