跳到正文

Rebellion Contrast

Rebellion Contrast 是一套深色终端配色(纯黑),背景色 #0c0c09,文字色 #d6c7ab,对比度 11.8:1

获取配置
背景色
#0c0c09
前景色
#d6c7ab
文字对比度
11.77:1AAA
强调色对比度
7.21:1最低 2.98
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
❯

Rebellion Contrast 的配置文件

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

Rebellion Contrast

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

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

palette = 0=#1b1b14
palette = 1=#ba0e2e
palette = 2=#fe5f00
palette = 3=#988f2a
palette = 4=#8e7547
palette = 5=#fe5f00
palette = 6=#988f2a
palette = 7=#ded2bc
palette = 8=#38382a
palette = 9=#e61f44
palette = 10=#ff9f65
palette = 11=#d1c757
palette = 12=#bea77d
palette = 13=#ff9f65
palette = 14=#d1c757
palette = 15=#efe9de
background = #0c0c09
foreground = #d6c7ab
cursor-color = #f8f8f0
cursor-text = #d6c7ab
selection-background = #fe5f00
selection-foreground = #ffffff

Rebellion Contrast 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#0c0c09rgb(12 12 9)hsl(60 14% 4%)oklch(15.3% 0.006 107.1)—
前景色foreground#d6c7abrgb(214 199 171)hsl(39 34% 75%)oklch(83.5% 0.041 83.1)11.77 AAA
光标cursor#f8f8f0rgb(248 248 240)hsl(60 36% 96%)oklch(97.7% 0.011 106.6)18.35 AAA
光标文字cursorText#d6c7abrgb(214 199 171)hsl(39 34% 75%)oklch(83.5% 0.041 83.1)11.77 AAA
选区selection#fe5f00rgb(254 95 0)hsl(22 100% 50%)oklch(68.6% 0.209 41.5)6.39 AA
选区文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)19.59 AAA
黑color0#1b1b14rgb(27 27 20)hsl(60 15% 9%)oklch(22.0% 0.013 107.4)1.13 低于 AA
红color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)2.98 低于 AA
绿color2#fe5f00rgb(254 95 0)hsl(22 100% 50%)oklch(68.6% 0.209 41.5)6.39 AA
黄color3#988f2argb(152 143 42)hsl(55 57% 38%)oklch(63.9% 0.119 104.2)5.87 AA
蓝color4#8e7547rgb(142 117 71)hsl(39 33% 42%)oklch(57.5% 0.071 81.8)4.46 AA 大字号
品红color5#fe5f00rgb(254 95 0)hsl(22 100% 50%)oklch(68.6% 0.209 41.5)6.39 AA
青color6#988f2argb(152 143 42)hsl(55 57% 38%)oklch(63.9% 0.119 104.2)5.87 AA
白color7#ded2bcrgb(222 210 188)hsl(39 34% 80%)oklch(86.8% 0.032 82.8)13.10 AAA
亮黑color8#38382argb(56 56 42)hsl(60 14% 19%)oklch(33.6% 0.023 107.6)1.65 低于 AA
亮红color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)4.33 AA 大字号
亮绿color10#ff9f65rgb(255 159 101)hsl(23 100% 70%)oklch(78.9% 0.136 50.8)9.70 AAA
亮黄color11#d1c757rgb(209 199 87)hsl(55 57% 58%)oklch(81.6% 0.133 104.2)11.21 AAA
亮蓝color12#bea77drgb(190 167 125)hsl(39 33% 62%)oklch(73.8% 0.063 82.3)8.41 AAA
亮品红color13#ff9f65rgb(255 159 101)hsl(23 100% 70%)oklch(78.9% 0.136 50.8)9.70 AAA
亮青color14#d1c757rgb(209 199 87)hsl(55 57% 58%)oklch(81.6% 0.133 104.2)11.21 AAA
亮白color15#efe9dergb(239 233 222)hsl(39 35% 90%)oklch(93.6% 0.016 82.8)16.21 AAA

关于 Rebellion Contrast

Rebellion Contrast 采用中性色调的深色背景(#0c0c09),默认前景色为 #d6c7ab。正文的 WCAG 对比度为 11.77:1(AAA),12 种 ANSI 彩色槽位平均对比度 7.21:1,最低 2.98:1。

色板整体色彩饱和度适中,其中红色为 #ba0e2e、绿色为 #fe5f00、蓝色为 #8e7547、品红为 #fe5f00。

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

与 Rebellion Contrast 相似的配色

数据来源:Rainglow (MIT)