跳到正文

Ayu

Ayu 是一套深色终端配色(冷色),背景色 #0b0e14,文字色 #bfbdb6,对比度 10.3:1

获取配置
背景色
#0b0e14
前景色
#bfbdb6
文字对比度
10.27:1AAA
强调色对比度
10.10:1最低 6.34
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
❯

Ayu 的配置文件

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

Ayu

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

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

palette = 0=#11151c
palette = 1=#ea6c73
palette = 2=#7fd962
palette = 3=#f9af4f
palette = 4=#53bdfa
palette = 5=#cda1fa
palette = 6=#90e1c6
palette = 7=#c7c7c7
palette = 8=#686868
palette = 9=#f07178
palette = 10=#aad94c
palette = 11=#ffb454
palette = 12=#59c2ff
palette = 13=#d2a6ff
palette = 14=#95e6cb
palette = 15=#ffffff
background = #0b0e14
foreground = #bfbdb6
cursor-color = #e6b450
cursor-text = #0b0e14
selection-background = #409fff
selection-foreground = #0b0e14

Ayu 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#0b0e14rgb(11 14 20)hsl(220 29% 6%)oklch(16.3% 0.014 264.1)—
前景色foreground#bfbdb6rgb(191 189 182)hsl(47 7% 73%)oklch(79.8% 0.010 93.6)10.27 AAA
光标cursor#e6b450rgb(230 180 80)hsl(40 75% 61%)oklch(79.7% 0.130 82.2)10.13 AAA
光标文字cursorText#0b0e14rgb(11 14 20)hsl(220 29% 6%)oklch(16.3% 0.014 264.1)1.00 低于 AA
选区selection#409fffrgb(64 159 255)hsl(210 100% 63%)oklch(69.2% 0.167 251.8)7.01 AAA
选区文字selectionText#0b0e14rgb(11 14 20)hsl(220 29% 6%)oklch(16.3% 0.014 264.1)1.00 低于 AA
黑color0#11151crgb(17 21 28)hsl(218 24% 9%)oklch(19.5% 0.016 261.6)1.06 低于 AA
红color1#ea6c73rgb(234 108 115)hsl(357 75% 67%)oklch(68.4% 0.156 18.7)6.34 AA
绿color2#7fd962rgb(127 217 98)hsl(105 61% 62%)oklch(80.3% 0.178 138.7)11.04 AAA
黄color3#f9af4frgb(249 175 79)hsl(34 93% 64%)oklch(80.8% 0.140 70.3)10.37 AAA
蓝color4#53bdfargb(83 189 250)hsl(202 94% 65%)oklch(76.2% 0.131 237.3)9.22 AAA
品红color5#cda1fargb(205 161 250)hsl(270 90% 81%)oklch(78.1% 0.131 306.3)9.27 AAA
青color6#90e1c6rgb(144 225 198)hsl(160 57% 72%)oklch(85.0% 0.089 171.0)12.67 AAA
白color7#c7c7c7rgb(199 199 199)hsl(0 0% 78%)oklch(83.0% 0.000 0)11.43 AAA
亮黑color8#686868rgb(104 104 104)hsl(0 0% 41%)oklch(51.7% 0.000 0)3.47 AA 大字号
亮红color9#f07178rgb(240 113 120)hsl(357 81% 69%)oklch(70.1% 0.157 18.6)6.75 AA
亮绿color10#aad94crgb(170 217 76)hsl(80 65% 57%)oklch(82.5% 0.175 125.8)11.72 AAA
亮黄color11#ffb454rgb(255 180 84)hsl(34 100% 66%)oklch(82.4% 0.141 70.2)10.95 AAA
亮蓝color12#59c2ffrgb(89 194 255)hsl(202 100% 67%)oklch(77.7% 0.130 237.3)9.74 AAA
亮品红color13#d2a6ffrgb(210 166 255)hsl(270 100% 83%)oklch(79.7% 0.131 306.3)9.79 AAA
亮青color14#95e6cbrgb(149 230 203)hsl(160 62% 74%)oklch(86.5% 0.088 171.1)13.30 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)19.32 AAA

关于 Ayu

Ayu 采用冷色调的深色背景(#0b0e14),默认前景色为 #bfbdb6。正文的 WCAG 对比度为 10.27:1(AAA),12 种 ANSI 彩色槽位平均对比度 10.10:1,最低 6.34:1。

色板整体色彩饱和度适中,其中红色为 #ea6c73、绿色为 #7fd962、蓝色为 #53bdfa、品红为 #cda1fa。该配色归属 Ayu 主题系列。

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

与 Ayu 相似的配色

数据来源:iTerm2 Color Schemes (MIT)