跳到主要內容

12-bit Rainbow

12-bit Rainbow 是一套深色終端機配色(純黑),背景色 #040404,文字色 #feffff,對比度 20.5:1

取得設定檔
背景色
#040404
前景色
#feffff
文字對比度
20.47:1AAA
強調色對比度
6.60:1最低 2.17
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
❯

12-bit Rainbow 的設定檔

16 種格式,都從同一份色板產生

12-bit Rainbow

存到 ~/.config/ghostty/themes/12-bit Rainbow,再在 config 或 config.ghostty 裏寫 theme = 12-bit Rainbow

更多 Ghostty 配色
原始檔案
# Theme: 12-bit Rainbow (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-hk/schemes/12-bit-rainbow?format=ghostty

palette = 0=#000000
palette = 1=#a03050
palette = 2=#40d080
palette = 3=#e09040
palette = 4=#3060b0
palette = 5=#603090
palette = 6=#0090c0
palette = 7=#dbded8
palette = 8=#685656
palette = 9=#c06060
palette = 10=#90d050
palette = 11=#e0d000
palette = 12=#00b0c0
palette = 13=#801070
palette = 14=#20b0c0
palette = 15=#ffffff
background = #040404
foreground = #feffff
cursor-color = #e0d000
cursor-text = #000000
selection-background = #606060
selection-foreground = #ffffff

12-bit Rainbow 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#040404rgb(4 4 4)hsl(0 0% 2%)oklch(10.7% 0.000 0)—
前景色foreground#feffffrgb(254 255 255)hsl(180 100% 100%)oklch(99.9% 0.001 197.1)20.47 AAA
光標cursor#e0d000rgb(224 208 0)hsl(56 100% 44%)oklch(84.4% 0.178 103.9)12.88 AAA
光標文字cursorText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.02 低於 AA
選取範圍selection#606060rgb(96 96 96)hsl(0 0% 38%)oklch(48.9% 0.000 0)3.26 AA 大字體
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)20.50 AAA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.02 低於 AA
紅color1#a03050rgb(160 48 80)hsl(343 54% 41%)oklch(48.6% 0.148 7.4)2.96 低於 AA
綠color2#40d080rgb(64 208 128)hsl(147 61% 53%)oklch(76.3% 0.167 154.4)10.30 AAA
黃color3#e09040rgb(224 144 64)hsl(30 72% 56%)oklch(72.1% 0.135 62.5)8.04 AAA
藍color4#3060b0rgb(48 96 176)hsl(218 57% 44%)oklch(49.9% 0.138 260.0)3.34 AA 大字體
洋紅color5#603090rgb(96 48 144)hsl(270 50% 38%)oklch(42.2% 0.153 303.4)2.27 低於 AA
青color6#0090c0rgb(0 144 192)hsl(195 100% 38%)oklch(61.3% 0.123 230.9)5.61 AA
白color7#dbded8rgb(219 222 216)hsl(90 8% 86%)oklch(89.7% 0.009 128.6)15.09 AAA
亮黑color8#685656rgb(104 86 86)hsl(0 9% 37%)oklch(47.1% 0.024 18.0)2.98 低於 AA
亮紅color9#c06060rgb(192 96 96)hsl(0 43% 56%)oklch(60.4% 0.124 21.4)4.96 AA
亮綠color10#90d050rgb(144 208 80)hsl(90 58% 56%)oklch(78.8% 0.172 131.8)11.06 AAA
亮黃color11#e0d000rgb(224 208 0)hsl(56 100% 44%)oklch(84.4% 0.178 103.9)12.88 AAA
亮藍color12#00b0c0rgb(0 176 192)hsl(185 100% 38%)oklch(69.2% 0.118 206.3)7.78 AAA
亮洋紅color13#801070rgb(128 16 112)hsl(309 78% 28%)oklch(41.7% 0.173 335.3)2.17 低於 AA
亮青color14#20b0c0rgb(32 176 192)hsl(186 71% 44%)oklch(69.4% 0.113 206.9)7.84 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)20.50 AAA

關於 12-bit Rainbow

12-bit Rainbow 採用中性色調的深色背景(#040404),預設前景色為 #feffff。正文的 WCAG 對比度為 20.47:1(AAA),12 種 ANSI 彩色槽位平均對比度 6.60:1,最低 2.17:1。

色板整體色彩飽和度適中,其中紅色為 #a03050、綠色為 #40d080、藍色為 #3060b0、洋紅為 #603090。

支援一鍵匯出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 終端機設定檔,同時提供 VS Code 與 Zed 整合終端機、CSS 變數、Tailwind CSS 及 JSON 色板格式。

該色板在上游儲存庫中亦曾以 12 Bit Rainbow 的名稱發佈

與 12-bit Rainbow 相似的配色

資料來源:iTerm2 Color Schemes (CC0-1.0)