跳到正文

Twilight

Twilight 是一套深色终端配色(低饱和),背景色 #141414,文字色 #ffffd4,对比度 18.0:1

获取配置
背景色
#141414
前景色
#ffffd4
文字对比度
17.99:1AAA
强调色对比度
7.36:1最低 1.97
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
❯

Twilight 的配置文件

16 种格式,都从同一份色板生成

Twilight

存到 ~/.config/ghostty/themes/Twilight,再在 config 或 config.ghostty 里写 theme = Twilight

更多 Ghostty 配色
原始文件
# Theme: Twilight (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/schemes/twilight?format=ghostty

palette = 0=#141414
palette = 1=#c06d44
palette = 2=#afb97a
palette = 3=#c2a86c
palette = 4=#44474a
palette = 5=#b4be7c
palette = 6=#778385
palette = 7=#ffffd4
palette = 8=#262626
palette = 9=#de7c4c
palette = 10=#ccd88c
palette = 11=#e2c47e
palette = 12=#5a5e62
palette = 13=#d0dc8e
palette = 14=#8a989b
palette = 15=#ffffd4
background = #141414
foreground = #ffffd4
cursor-color = #ffffff
cursor-text = #000000
selection-background = #313131
selection-foreground = #ffffd4

Twilight 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#141414rgb(20 20 20)hsl(0 0% 8%)oklch(19.1% 0.000 0)—
前景色foreground#ffffd4rgb(255 255 212)hsl(60 100% 92%)oklch(98.9% 0.055 107.4)17.99 AAA
光标cursor#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.42 AAA
光标文字cursorText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.14 低于 AA
选区selection#313131rgb(49 49 49)hsl(0 0% 19%)oklch(31.3% 0.000 0)1.42 低于 AA
选区文字selectionText#ffffd4rgb(255 255 212)hsl(60 100% 92%)oklch(98.9% 0.055 107.4)17.99 AAA
黑color0#141414rgb(20 20 20)hsl(0 0% 8%)oklch(19.1% 0.000 0)1.00 低于 AA
红color1#c06d44rgb(192 109 68)hsl(20 50% 51%)oklch(62.0% 0.119 46.0)4.84 AA
绿color2#afb97argb(175 185 122)hsl(70 31% 60%)oklch(76.3% 0.085 115.8)8.81 AAA
黄color3#c2a86crgb(194 168 108)hsl(42 41% 59%)oklch(74.1% 0.084 86.9)7.99 AAA
蓝color4#44474argb(68 71 74)hsl(210 4% 28%)oklch(39.6% 0.006 248.0)1.97 低于 AA
品红color5#b4be7crgb(180 190 124)hsl(69 34% 62%)oklch(77.8% 0.088 115.5)9.30 AAA
青color6#778385rgb(119 131 133)hsl(189 6% 49%)oklch(60.1% 0.014 208.7)4.71 AA
白color7#ffffd4rgb(255 255 212)hsl(60 100% 92%)oklch(98.9% 0.055 107.4)17.99 AAA
亮黑color8#262626rgb(38 38 38)hsl(0 0% 15%)oklch(26.9% 0.000 0)1.22 低于 AA
亮红color9#de7c4crgb(222 124 76)hsl(20 69% 58%)oklch(68.6% 0.137 45.7)6.22 AA
亮绿color10#ccd88crgb(204 216 140)hsl(69 49% 70%)oklch(85.5% 0.099 115.9)12.08 AAA
亮黄color11#e2c47ergb(226 196 126)hsl(42 63% 69%)oklch(83.0% 0.095 87.1)10.91 AAA
亮蓝color12#5a5e62rgb(90 94 98)hsl(210 4% 37%)oklch(48.0% 0.008 248.0)2.82 低于 AA
亮品红color13#d0dc8ergb(208 220 142)hsl(69 53% 71%)oklch(86.7% 0.101 115.7)12.55 AAA
亮青color14#8a989brgb(138 152 155)hsl(191 8% 57%)oklch(66.9% 0.017 212.0)6.18 AA
亮白color15#ffffd4rgb(255 255 212)hsl(60 100% 92%)oklch(98.9% 0.055 107.4)17.99 AAA

关于 Twilight

Twilight 采用中性色调的深色背景(#141414),默认前景色为 #ffffd4。正文的 WCAG 对比度为 17.99:1(AAA),12 种 ANSI 彩色槽位平均对比度 7.36:1,最低 1.97:1。

色板整体色彩饱和度偏低,其中红色为 #c06d44、绿色为 #afb97a、蓝色为 #44474a、品红为 #b4be7c。

支持一键导出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 终端配置文件,同时提供 VS Code 与 Zed 集成终端、CSS 变量、Tailwind CSS 及 JSON 色板格式。

与 Twilight 相似的配色

数据来源:iTerm2 Color Schemes (MIT)