跳到主要內容

Redacted

Redacted 是一套淺色終端機配色,背景色 #fffdf8,文字色 #171717,對比度 17.6:1

取得設定檔
背景色
#fffdf8
前景色
#171717
文字對比度
17.64:1AAA
強調色對比度
8.70:1最低 7.27
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
❯

Redacted 的設定檔

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

Redacted

存到 ~/.config/ghostty/themes/Redacted,再在 config 或 config.ghostty 裡寫 theme = Redacted

更多 Ghostty 配色
原始檔
# Theme: Redacted (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-tw/schemes/redacted?format=ghostty

palette = 0=#292929
palette = 1=#821e1e
palette = 2=#125b31
palette = 3=#654b00
palette = 4=#17458d
palette = 5=#5e2e86
palette = 6=#005766
palette = 7=#393939
palette = 8=#464646
palette = 9=#8d2424
palette = 10=#176238
palette = 11=#6c5000
palette = 12=#123a78
palette = 13=#66368e
palette = 14=#004a57
palette = 15=#414141
background = #fffdf8
foreground = #171717
cursor-color = #202020
cursor-text = #fffdf8
selection-background = #e8e4dc
selection-foreground = #171717

Redacted 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#fffdf8rgb(255 253 248)hsl(43 100% 99%)oklch(99.4% 0.007 88.6)—
前景色foreground#171717rgb(23 23 23)hsl(0 0% 9%)oklch(20.5% 0.000 0)17.64 AAA
游標cursor#202020rgb(32 32 32)hsl(0 0% 13%)oklch(24.4% 0.000 0)16.03 AAA
游標文字cursorText#fffdf8rgb(255 253 248)hsl(43 100% 99%)oklch(99.4% 0.007 88.6)1.00 低於 AA
選取範圍selection#e8e4dcrgb(232 228 220)hsl(40 21% 89%)oklch(92.0% 0.012 84.6)1.25 低於 AA
選取文字selectionText#171717rgb(23 23 23)hsl(0 0% 9%)oklch(20.5% 0.000 0)17.64 AAA
黑color0#292929rgb(41 41 41)hsl(0 0% 16%)oklch(28.1% 0.000 0)14.31 AAA
紅color1#821e1ergb(130 30 30)hsl(0 62% 31%)oklch(40.3% 0.135 25.7)9.59 AAA
綠color2#125b31rgb(18 91 49)hsl(145 67% 21%)oklch(41.7% 0.098 152.9)8.05 AAA
黃color3#654b00rgb(101 75 0)hsl(45 100% 20%)oklch(42.9% 0.088 85.7)8.07 AAA
藍color4#17458drgb(23 69 141)hsl(217 72% 32%)oklch(40.3% 0.130 259.4)9.09 AAA
洋紅color5#5e2e86rgb(94 46 134)hsl(273 49% 35%)oklch(41.0% 0.143 306.1)9.34 AAA
青color6#005766rgb(0 87 102)hsl(189 100% 20%)oklch(42.0% 0.074 214.6)8.08 AAA
白color7#393939rgb(57 57 57)hsl(0 0% 22%)oklch(34.5% 0.000 0)11.36 AAA
亮黑color8#464646rgb(70 70 70)hsl(0 0% 27%)oklch(39.4% 0.000 0)9.28 AAA
亮紅color9#8d2424rgb(141 36 36)hsl(0 59% 35%)oklch(43.0% 0.141 25.4)8.57 AAA
亮綠color10#176238rgb(23 98 56)hsl(146 62% 24%)oklch(44.0% 0.099 153.9)7.27 AAA
亮黃color11#6c5000rgb(108 80 0)hsl(44 100% 21%)oklch(44.9% 0.092 85.2)7.42 AAA
亮藍color12#123a78rgb(18 58 120)hsl(216 74% 27%)oklch(36.0% 0.115 259.3)10.86 AAA
亮洋紅color13#66368ergb(102 54 142)hsl(273 45% 38%)oklch(43.7% 0.143 306.5)8.32 AAA
亮青color14#004a57rgb(0 74 87)hsl(189 100% 17%)oklch(37.6% 0.066 214.5)9.76 AAA
亮白color15#414141rgb(65 65 65)hsl(0 0% 25%)oklch(37.5% 0.000 0)10.04 AAA

關於 Redacted

Redacted 採用中性色調的淺色背景(#fffdf8),預設前景色為 #171717。內文的 WCAG 對比度為 17.64:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.70:1,最低 7.27:1。

色票整體色彩彩度適中,其中紅色為 #821e1e、綠色為 #125b31、藍色為 #17458d、洋紅為 #5e2e86。

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

與 Redacted 相似的配色

資料來源:iTerm2 Color Schemes (MIT)