跳到正文

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/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)