跳到正文

Astrodark

Astrodark 是一套深色终端配色(柔和、冷色),背景色 #1a1d23,文字色 #9b9fa9,对比度 6.4:1

获取配置
背景色
#1a1d23
前景色
#9b9fa9
文字对比度
6.37:1AA
强调色对比度
8.09:1最低 6.26
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
❯

Astrodark 的配置文件

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

Astrodark

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

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

palette = 0=#111317
palette = 1=#f8747e
palette = 2=#75ad47
palette = 3=#d09214
palette = 4=#50a4e9
palette = 5=#cc83e3
palette = 6=#00b298
palette = 7=#adb0bb
palette = 8=#576176
palette = 9=#faa5ab
palette = 10=#a5cd84
palette = 11=#efbd58
palette = 12=#8dc3f1
palette = 13=#deaeed
palette = 14=#27ffdf
palette = 15=#caccd3
background = #1a1d23
foreground = #9b9fa9
cursor-color = #caccd3
cursor-text = #1a1d23
selection-background = #373a41
selection-foreground = #9b9fa9

Astrodark 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#1a1d23rgb(26 29 35)hsl(220 15% 12%)oklch(23.0% 0.012 264.3)—
前景色foreground#9b9fa9rgb(155 159 169)hsl(223 8% 64%)oklch(70.2% 0.015 268.4)6.37 AA
光标cursor#caccd3rgb(202 204 211)hsl(227 9% 81%)oklch(84.6% 0.010 273.3)10.52 AAA
光标文字cursorText#1a1d23rgb(26 29 35)hsl(220 15% 12%)oklch(23.0% 0.012 264.3)1.00 低于 AA
选区selection#373a41rgb(55 58 65)hsl(222 8% 24%)oklch(34.8% 0.013 267.2)1.48 低于 AA
选区文字selectionText#9b9fa9rgb(155 159 169)hsl(223 8% 64%)oklch(70.2% 0.015 268.4)6.37 AA
黑color0#111317rgb(17 19 23)hsl(220 15% 8%)oklch(18.6% 0.009 264.3)1.10 低于 AA
红color1#f8747ergb(248 116 126)hsl(355 90% 71%)oklch(71.7% 0.162 17.4)6.26 AA
绿color2#75ad47rgb(117 173 71)hsl(93 42% 48%)oklch(68.7% 0.147 133.1)6.29 AA
黄color3#d09214rgb(208 146 20)hsl(40 82% 45%)oklch(70.3% 0.143 77.4)6.27 AA
蓝color4#50a4e9rgb(80 164 233)hsl(207 78% 61%)oklch(69.6% 0.130 246.0)6.29 AA
品红color5#cc83e3rgb(204 131 227)hsl(286 63% 70%)oklch(72.0% 0.155 317.8)6.37 AA
青color6#00b298rgb(0 178 152)hsl(171 100% 35%)oklch(68.3% 0.126 177.3)6.29 AA
白color7#adb0bbrgb(173 176 187)hsl(227 9% 71%)oklch(75.8% 0.016 273.8)7.80 AAA
亮黑color8#576176rgb(87 97 118)hsl(221 15% 40%)oklch(49.2% 0.036 265.0)2.71 低于 AA
亮红color9#faa5abrgb(250 165 171)hsl(356 89% 81%)oklch(80.7% 0.101 14.9)8.87 AAA
亮绿color10#a5cd84rgb(165 205 132)hsl(93 42% 66%)oklch(80.2% 0.107 131.8)9.38 AAA
亮黄color11#efbd58rgb(239 189 88)hsl(40 83% 64%)oklch(82.4% 0.131 82.6)9.72 AAA
亮蓝color12#8dc3f1rgb(141 195 241)hsl(208 78% 75%)oklch(79.6% 0.087 244.9)9.01 AAA
亮品红color13#deaeedrgb(222 174 237)hsl(286 64% 81%)oklch(81.5% 0.101 318.0)9.15 AAA
亮青color14#27ffdfrgb(39 255 223)hsl(171 100% 58%)oklch(89.8% 0.159 178.9)13.23 AAA
亮白color15#caccd3rgb(202 204 211)hsl(227 9% 81%)oklch(84.6% 0.010 273.3)10.52 AAA

关于 Astrodark

Astrodark 采用冷色调的深色背景(#1a1d23),默认前景色为 #9b9fa9。正文的 WCAG 对比度为 6.37:1(AA),12 种 ANSI 彩色槽位平均对比度 8.09:1,最低 6.26:1。

色板整体色彩饱和度适中,其中红色为 #f8747e、绿色为 #75ad47、蓝色为 #50a4e9、品红为 #cc83e3。

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

与 Astrodark 相似的配色

数据来源:Gogh (MIT OR Apache-2.0)