跳到正文

Rainbow

Rainbow 是一套深色终端配色(冷色),背景色 #192835,文字色 #aada4f,对比度 9.2:1

获取配置
背景色
#192835
前景色
#aada4f
文字对比度
9.20:1AAA
强调色对比度
5.20:1最低 2.37
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
❯

Rainbow 的配置文件

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

Rainbow

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

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

palette = 0=#5b4375
palette = 1=#426bb6
palette = 2=#2286b5
palette = 3=#5ab782
palette = 4=#93ca5b
palette = 5=#c6c842
palette = 6=#8a5135
palette = 7=#c54646
palette = 8=#5b4375
palette = 9=#426bb6
palette = 10=#2286b5
palette = 11=#5ab782
palette = 12=#93ca5b
palette = 13=#c6c842
palette = 14=#8a5135
palette = 15=#c54646
background = #192835
foreground = #aada4f
cursor-color = #aada4f
cursor-text = #192835
selection-background = #385143
selection-foreground = #aada4f

Rainbow 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#192835rgb(25 40 53)hsl(208 36% 15%)oklch(27.0% 0.032 245.5)—
前景色foreground#aada4frgb(170 218 79)hsl(81 65% 58%)oklch(82.8% 0.174 126.2)9.20 AAA
光标cursor#aada4frgb(170 218 79)hsl(81 65% 58%)oklch(82.8% 0.174 126.2)9.20 AAA
光标文字cursorText#192835rgb(25 40 53)hsl(208 36% 15%)oklch(27.0% 0.032 245.5)1.00 低于 AA
选区selection#385143rgb(56 81 67)hsl(146 18% 27%)oklch(41.0% 0.039 159.6)1.74 低于 AA
选区文字selectionText#aada4frgb(170 218 79)hsl(81 65% 58%)oklch(82.8% 0.174 126.2)9.20 AAA
黑color0#5b4375rgb(91 67 117)hsl(269 27% 36%)oklch(43.1% 0.085 305.2)1.79 低于 AA
红color1#426bb6rgb(66 107 182)hsl(219 47% 49%)oklch(53.5% 0.127 261.5)2.87 低于 AA
绿color2#2286b5rgb(34 134 181)hsl(199 68% 42%)oklch(58.7% 0.113 234.6)3.69 AA 大字号
黄color3#5ab782rgb(90 183 130)hsl(146 39% 54%)oklch(70.8% 0.119 156.5)6.11 AA
蓝color4#93ca5brgb(147 202 91)hsl(90 51% 57%)oklch(77.7% 0.154 131.1)7.76 AAA
品红color5#c6c842rgb(198 200 66)hsl(61 55% 52%)oklch(80.7% 0.152 110.2)8.41 AAA
青color6#8a5135rgb(138 81 53)hsl(20 45% 37%)oklch(49.5% 0.087 46.3)2.37 低于 AA
白color7#c54646rgb(197 70 70)hsl(0 52% 52%)oklch(57.0% 0.163 23.8)3.11 AA 大字号
亮黑color8#5b4375rgb(91 67 117)hsl(269 27% 36%)oklch(43.1% 0.085 305.2)1.79 低于 AA
亮红color9#426bb6rgb(66 107 182)hsl(219 47% 49%)oklch(53.5% 0.127 261.5)2.87 低于 AA
亮绿color10#2286b5rgb(34 134 181)hsl(199 68% 42%)oklch(58.7% 0.113 234.6)3.69 AA 大字号
亮黄color11#5ab782rgb(90 183 130)hsl(146 39% 54%)oklch(70.8% 0.119 156.5)6.11 AA
亮蓝color12#93ca5brgb(147 202 91)hsl(90 51% 57%)oklch(77.7% 0.154 131.1)7.76 AAA
亮品红color13#c6c842rgb(198 200 66)hsl(61 55% 52%)oklch(80.7% 0.152 110.2)8.41 AAA
亮青color14#8a5135rgb(138 81 53)hsl(20 45% 37%)oklch(49.5% 0.087 46.3)2.37 低于 AA
亮白color15#c54646rgb(197 70 70)hsl(0 52% 52%)oklch(57.0% 0.163 23.8)3.11 AA 大字号

关于 Rainbow

Rainbow 采用冷色调的深色背景(#192835),默认前景色为 #aada4f。正文的 WCAG 对比度为 9.20:1(AAA),12 种 ANSI 彩色槽位平均对比度 5.20:1,最低 2.37:1。

色板整体色彩饱和度适中,其中红色为 #426bb6、绿色为 #2286b5、蓝色为 #93ca5b、品红为 #c6c842。

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

与 Rainbow 相似的配色

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