跳到主要內容

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