跳到主要內容

Shrek

Shrek 是一套深色終端機配色(柔和、鮮艷),背景色 #475347,文字色 #f0f0c0,對比度 6.9:1

取得設定檔
背景色
#475347
前景色
#f0f0c0
文字對比度
6.91:1AA
強調色對比度
4.20:1最低 1.65
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
❯

Shrek 的設定檔

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

Shrek

存到 ~/.config/ghostty/themes/Shrek,再在 config 或 config.ghostty 裏寫 theme = Shrek

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

palette = 0=#472d1a
palette = 1=#ff1212
palette = 2=#7fff00
palette = 3=#ffd700
palette = 4=#3399ff
palette = 5=#9933ff
palette = 6=#00cccc
palette = 7=#ffffe0
palette = 8=#3a5f3a
palette = 9=#ff3333
palette = 10=#adff2f
palette = 11=#ffea00
palette = 12=#66b2ff
palette = 13=#b266ff
palette = 14=#33ffff
palette = 15=#ffffff
background = #475347
foreground = #f0f0c0
cursor-color = #f0f0c0
cursor-text = #475347
selection-background = #6e7763
selection-foreground = #f0f0c0

Shrek 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#475347rgb(71 83 71)hsl(120 8% 30%)oklch(42.8% 0.025 145.1)—
前景色foreground#f0f0c0rgb(240 240 192)hsl(60 62% 85%)oklch(94.3% 0.062 107.5)6.91 AA
光標cursor#f0f0c0rgb(240 240 192)hsl(60 62% 85%)oklch(94.3% 0.062 107.5)6.91 AA
光標文字cursorText#475347rgb(71 83 71)hsl(120 8% 30%)oklch(42.8% 0.025 145.1)1.00 低於 AA
選取範圍selection#6e7763rgb(110 119 99)hsl(87 9% 43%)oklch(55.6% 0.032 127.2)1.73 低於 AA
選取文字selectionText#f0f0c0rgb(240 240 192)hsl(60 62% 85%)oklch(94.3% 0.062 107.5)6.91 AA
黑color0#472d1argb(71 45 26)hsl(25 46% 19%)oklch(32.4% 0.049 56.2)1.57 低於 AA
紅color1#ff1212rgb(255 18 18)hsl(0 100% 54%)oklch(63.2% 0.254 28.8)2.06 低於 AA
綠color2#7fff00rgb(127 255 0)hsl(90 100% 50%)oklch(89.0% 0.265 136.0)6.24 AA
黃color3#ffd700rgb(255 215 0)hsl(51 100% 50%)oklch(88.7% 0.182 95.3)5.77 AA
藍color4#3399ffrgb(51 153 255)hsl(210 100% 60%)oklch(67.6% 0.176 252.3)2.75 低於 AA
洋紅color5#9933ffrgb(153 51 255)hsl(270 100% 60%)oklch(58.2% 0.273 300.2)1.65 低於 AA
青color6#00ccccrgb(0 204 204)hsl(180 100% 40%)oklch(76.5% 0.131 194.8)4.05 AA 大字體
白color7#ffffe0rgb(255 255 224)hsl(60 100% 94%)oklch(99.2% 0.040 107.1)7.95 AAA
亮黑color8#3a5f3argb(58 95 58)hsl(120 24% 30%)oklch(44.7% 0.073 144.2)1.11 低於 AA
亮紅color9#ff3333rgb(255 51 51)hsl(0 100% 60%)oklch(64.9% 0.237 27.0)2.22 低於 AA
亮綠color10#adff2frgb(173 255 47)hsl(84 100% 59%)oklch(91.3% 0.233 130.0)6.59 AA
亮黃color11#ffea00rgb(255 234 0)hsl(55 100% 50%)oklch(92.5% 0.194 102.9)6.56 AA
亮藍color12#66b2ffrgb(102 178 255)hsl(210 100% 70%)oklch(74.7% 0.135 250.4)3.61 AA 大字體
亮洋紅color13#b266ffrgb(178 102 255)hsl(270 100% 70%)oklch(66.5% 0.221 303.9)2.40 低於 AA
亮青color14#33ffffrgb(51 255 255)hsl(180 100% 60%)oklch(90.9% 0.148 194.9)6.51 AA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)8.09 AAA

關於 Shrek

Shrek 採用中性色調的深色背景(#475347),預設前景色為 #f0f0c0。正文的 WCAG 對比度為 6.91:1(AA),12 種 ANSI 彩色槽位平均對比度 4.20:1,最低 1.65:1。

色板整體色彩飽和度較高,其中紅色為 #ff1212、綠色為 #7fff00、藍色為 #3399ff、洋紅為 #9933ff。

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

與 Shrek 相似的配色

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