跳到主要內容

Trapped in Amber

Trapped in Amber 是一套深色終端機配色(冷色),背景色 #0a1017,文字色 #f0a020,對比度 8.9:1

取得設定檔
背景色
#0a1017
前景色
#f0a020
文字對比度
8.87:1AAA
強調色對比度
7.71:1最低 4.66
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
❯

Trapped in Amber 的設定檔

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

Trapped in Amber

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

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

palette = 0=#4a3220
palette = 1=#e05c1c
palette = 2=#7a9c4a
palette = 3=#f0a020
palette = 4=#4a7ec9
palette = 5=#c95a8c
palette = 6=#7a9ea8
palette = 7=#ffd9a0
palette = 8=#5a4a3a
palette = 9=#ff7832
palette = 10=#a8c46b
palette = 11=#ffd700
palette = 12=#6b9fff
palette = 13=#ff7fa8
palette = 14=#a5c2cc
palette = 15=#fff5e0
background = #0a1017
foreground = #f0a020
cursor-color = #ffc940
cursor-text = #0a1017
selection-background = #4a3416
selection-foreground = #ffd9a0

Trapped in Amber 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#0a1017rgb(10 16 23)hsl(212 39% 6%)oklch(17.0% 0.017 252.7)—
前景色foreground#f0a020rgb(240 160 32)hsl(37 87% 53%)oklch(76.7% 0.157 71.7)8.87 AAA
游標cursor#ffc940rgb(255 201 64)hsl(43 100% 63%)oklch(86.2% 0.157 86.1)12.44 AAA
游標文字cursorText#0a1017rgb(10 16 23)hsl(212 39% 6%)oklch(17.0% 0.017 252.7)1.00 低於 AA
選取範圍selection#4a3416rgb(74 52 22)hsl(35 54% 19%)oklch(34.3% 0.054 72.7)1.63 低於 AA
選取文字selectionText#ffd9a0rgb(255 217 160)hsl(36 100% 81%)oklch(90.4% 0.084 77.5)14.27 AAA
黑color0#4a3220rgb(74 50 32)hsl(26 40% 21%)oklch(34.1% 0.045 57.4)1.61 低於 AA
紅color1#e05c1crgb(224 92 28)hsl(20 78% 49%)oklch(63.6% 0.179 42.1)5.20 AA
綠color2#7a9c4argb(122 156 74)hsl(85 36% 45%)oklch(64.9% 0.117 127.9)6.08 AA
黃color3#f0a020rgb(240 160 32)hsl(37 87% 53%)oklch(76.7% 0.157 71.7)8.87 AAA
藍color4#4a7ec9rgb(74 126 201)hsl(215 54% 54%)oklch(59.2% 0.128 257.6)4.66 AA
洋紅color5#c95a8crgb(201 90 140)hsl(333 51% 57%)oklch(62.0% 0.151 354.2)4.84 AA
青color6#7a9ea8rgb(122 158 168)hsl(193 21% 57%)oklch(67.6% 0.042 216.6)6.63 AA
白color7#ffd9a0rgb(255 217 160)hsl(36 100% 81%)oklch(90.4% 0.084 77.5)14.27 AAA
亮黑color8#5a4a3argb(90 74 58)hsl(30 22% 29%)oklch(42.1% 0.033 66.7)2.25 低於 AA
亮紅color9#ff7832rgb(255 120 50)hsl(20 100% 60%)oklch(72.2% 0.183 44.7)7.26 AAA
亮綠color10#a8c46brgb(168 196 107)hsl(79 43% 59%)oklch(77.9% 0.120 123.5)9.80 AAA
亮黃color11#ffd700rgb(255 215 0)hsl(51 100% 50%)oklch(88.7% 0.182 95.3)13.62 AAA
亮藍color12#6b9fffrgb(107 159 255)hsl(219 100% 71%)oklch(70.9% 0.152 261.8)7.30 AAA
亮洋紅color13#ff7fa8rgb(255 127 168)hsl(341 100% 75%)oklch(75.3% 0.160 1.4)8.05 AAA
亮青color14#a5c2ccrgb(165 194 204)hsl(195 28% 72%)oklch(79.6% 0.034 220.6)10.18 AAA
亮白color15#fff5e0rgb(255 245 224)hsl(41 100% 94%)oklch(97.2% 0.030 85.6)17.64 AAA

關於 Trapped in Amber

Trapped in Amber 採用冷色調的深色背景(#0a1017),預設前景色為 #f0a020。內文的 WCAG 對比度為 8.87:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.71:1,最低 4.66:1。

色票整體色彩彩度適中,其中紅色為 #e05c1c、綠色為 #7a9c4a、藍色為 #4a7ec9、洋紅為 #c95a8c。

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

與 Trapped in Amber 相似的配色

資料來源:iTerm2 Color Schemes (MIT)