跳到主要內容

Brewer

Brewer 是一套深色終端機配色(純黑),背景色 #0c0d0e,文字色 #b7b8b9,對比度 9.8:1

取得設定檔
背景色
#0c0d0e
前景色
#b7b8b9
文字對比度
9.79:1AAA
強調色對比度
6.00:1最低 4.10
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
❯

Brewer 的設定檔

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

Brewer

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

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

palette = 0=#0c0d0e
palette = 1=#e31a1c
palette = 2=#31a354
palette = 3=#dca060
palette = 4=#3182bd
palette = 5=#756bb1
palette = 6=#80b1d3
palette = 7=#b7b8b9
palette = 8=#737475
palette = 9=#e31a1c
palette = 10=#31a354
palette = 11=#dca060
palette = 12=#3182bd
palette = 13=#756bb1
palette = 14=#80b1d3
palette = 15=#fcfdfe
background = #0c0d0e
foreground = #b7b8b9
cursor-color = #b7b8b9
cursor-text = #0c0d0e
selection-background = #303133
selection-foreground = #b7b8b9

Brewer 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#0c0d0ergb(12 13 14)hsl(210 8% 5%)oklch(15.8% 0.003 248.0)—
前景色foreground#b7b8b9rgb(183 184 185)hsl(210 1% 72%)oklch(78.2% 0.002 247.8)9.79 AAA
游標cursor#b7b8b9rgb(183 184 185)hsl(210 1% 72%)oklch(78.2% 0.002 247.8)9.79 AAA
游標文字cursorText#0c0d0ergb(12 13 14)hsl(210 8% 5%)oklch(15.8% 0.003 248.0)1.00 低於 AA
選取範圍selection#303133rgb(48 49 51)hsl(220 3% 19%)oklch(31.3% 0.004 264.5)1.49 低於 AA
選取文字selectionText#b7b8b9rgb(183 184 185)hsl(210 1% 72%)oklch(78.2% 0.002 247.8)9.79 AAA
黑color0#0c0d0ergb(12 13 14)hsl(210 8% 5%)oklch(15.8% 0.003 248.0)1.00 低於 AA
紅color1#e31a1crgb(227 26 28)hsl(359 79% 50%)oklch(58.3% 0.228 27.9)4.10 AA 大字級
綠color2#31a354rgb(49 163 84)hsl(138 54% 42%)oklch(63.4% 0.154 149.6)6.02 AA
黃color3#dca060rgb(220 160 96)hsl(31 64% 62%)oklch(75.0% 0.108 66.7)8.56 AAA
藍color4#3182bdrgb(49 130 189)hsl(205 59% 47%)oklch(58.5% 0.119 244.2)4.69 AA
洋紅color5#756bb1rgb(117 107 177)hsl(249 31% 56%)oklch(56.7% 0.106 289.1)4.16 AA 大字級
青color6#80b1d3rgb(128 177 211)hsl(205 49% 66%)oklch(73.8% 0.072 239.3)8.47 AAA
白color7#b7b8b9rgb(183 184 185)hsl(210 1% 72%)oklch(78.2% 0.002 247.8)9.79 AAA
亮黑color8#737475rgb(115 116 117)hsl(210 1% 45%)oklch(55.8% 0.002 247.9)4.15 AA 大字級
亮紅color9#e31a1crgb(227 26 28)hsl(359 79% 50%)oklch(58.3% 0.228 27.9)4.10 AA 大字級
亮綠color10#31a354rgb(49 163 84)hsl(138 54% 42%)oklch(63.4% 0.154 149.6)6.02 AA
亮黃color11#dca060rgb(220 160 96)hsl(31 64% 62%)oklch(75.0% 0.108 66.7)8.56 AAA
亮藍color12#3182bdrgb(49 130 189)hsl(205 59% 47%)oklch(58.5% 0.119 244.2)4.69 AA
亮洋紅color13#756bb1rgb(117 107 177)hsl(249 31% 56%)oklch(56.7% 0.106 289.1)4.16 AA 大字級
亮青color14#80b1d3rgb(128 177 211)hsl(205 49% 66%)oklch(73.8% 0.072 239.3)8.47 AAA
亮白color15#fcfdfergb(252 253 254)hsl(210 50% 99%)oklch(99.4% 0.002 247.8)19.10 AAA

關於 Brewer

Brewer 採用中性色調的深色背景(#0c0d0e),預設前景色為 #b7b8b9。內文的 WCAG 對比度為 9.79:1(AAA),12 種 ANSI 彩色槽位平均對比度 6.00:1,最低 4.10:1。

色票整體色彩彩度適中,其中紅色為 #e31a1c、綠色為 #31a354、藍色為 #3182bd、洋紅為 #756bb1。

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

與 Brewer 相似的配色

資料來源:Gogh (MIT OR Apache-2.0)