跳到正文

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/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)