跳到主要內容

Duotone Dark

Duotone Dark 是一套深色終端機配色(冷色),背景色 #1f1d27,文字色 #b7a1ff,對比度 7.6:1

取得設定檔
背景色
#1f1d27
前景色
#b7a1ff
文字對比度
7.56:1AAA
強調色對比度
6.99:1最低 3.65
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
❯

Duotone Dark 的設定檔

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

Duotone Dark

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

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

palette = 0=#1f1d27
palette = 1=#d9393e
palette = 2=#2dcd73
palette = 3=#d9b76e
palette = 4=#ffc284
palette = 5=#de8d40
palette = 6=#2488ff
palette = 7=#b7a1ff
palette = 8=#353147
palette = 9=#d9393e
palette = 10=#2dcd73
palette = 11=#d9b76e
palette = 12=#ffc284
palette = 13=#de8d40
palette = 14=#2488ff
palette = 15=#eae5ff
background = #1f1d27
foreground = #b7a1ff
cursor-color = #ff9839
cursor-text = #1f1d27
selection-background = #353147
selection-foreground = #b7a2ff

Duotone Dark 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1f1d27rgb(31 29 39)hsl(252 15% 13%)oklch(23.7% 0.019 294.1)—
前景色foreground#b7a1ffrgb(183 161 255)hsl(254 100% 82%)oklch(76.4% 0.134 293.8)7.56 AAA
光標cursor#ff9839rgb(255 152 57)hsl(29 100% 61%)oklch(77.2% 0.161 58.7)7.76 AAA
光標文字cursorText#1f1d27rgb(31 29 39)hsl(252 15% 13%)oklch(23.7% 0.019 294.1)1.00 低於 AA
選取範圍selection#353147rgb(53 49 71)hsl(251 18% 24%)oklch(32.7% 0.039 292.5)1.33 低於 AA
選取文字selectionText#b7a2ffrgb(183 162 255)hsl(254 100% 82%)oklch(76.6% 0.132 293.4)7.62 AAA
黑color0#1f1d27rgb(31 29 39)hsl(252 15% 13%)oklch(23.7% 0.019 294.1)1.00 低於 AA
紅color1#d9393ergb(217 57 62)hsl(358 68% 54%)oklch(58.9% 0.196 24.1)3.65 AA 大字體
綠color2#2dcd73rgb(45 205 115)hsl(146 64% 49%)oklch(74.9% 0.181 152.7)7.99 AAA
黃color3#d9b76ergb(217 183 110)hsl(41 58% 64%)oklch(79.4% 0.100 85.2)8.67 AAA
藍color4#ffc284rgb(255 194 132)hsl(30 100% 76%)oklch(85.6% 0.105 66.1)10.53 AAA
洋紅color5#de8d40rgb(222 141 64)hsl(29 71% 56%)oklch(71.3% 0.134 61.1)6.32 AA
青color6#2488ffrgb(36 136 255)hsl(213 100% 57%)oklch(63.6% 0.198 256.1)4.78 AA
白color7#b7a1ffrgb(183 161 255)hsl(254 100% 82%)oklch(76.4% 0.134 293.8)7.56 AAA
亮黑color8#353147rgb(53 49 71)hsl(251 18% 24%)oklch(32.7% 0.039 292.5)1.33 低於 AA
亮紅color9#d9393ergb(217 57 62)hsl(358 68% 54%)oklch(58.9% 0.196 24.1)3.65 AA 大字體
亮綠color10#2dcd73rgb(45 205 115)hsl(146 64% 49%)oklch(74.9% 0.181 152.7)7.99 AAA
亮黃color11#d9b76ergb(217 183 110)hsl(41 58% 64%)oklch(79.4% 0.100 85.2)8.67 AAA
亮藍color12#ffc284rgb(255 194 132)hsl(30 100% 76%)oklch(85.6% 0.105 66.1)10.53 AAA
亮洋紅color13#de8d40rgb(222 141 64)hsl(29 71% 56%)oklch(71.3% 0.134 61.1)6.32 AA
亮青color14#2488ffrgb(36 136 255)hsl(213 100% 57%)oklch(63.6% 0.198 256.1)4.78 AA
亮白color15#eae5ffrgb(234 229 255)hsl(252 100% 95%)oklch(93.4% 0.035 294.5)13.58 AAA

關於 Duotone Dark

Duotone Dark 採用冷色調的深色背景(#1f1d27),預設前景色為 #b7a1ff。正文的 WCAG 對比度為 7.56:1(AAA),12 種 ANSI 彩色槽位平均對比度 6.99:1,最低 3.65:1。

色板整體色彩飽和度適中,其中紅色為 #d9393e、綠色為 #2dcd73、藍色為 #ffc284、洋紅為 #de8d40。

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

與 Duotone Dark 相似的配色

資料來源:iTerm2 Color Schemes (MIT)