跳到正文

Calamity

Calamity 是一套深色终端配色(冷色),背景色 #2f2833,文字色 #d5ced9,对比度 9.3:1

获取配置
背景色
#2f2833
前景色
#d5ced9
文字对比度
9.28:1AAA
强调色对比度
6.85:1最低 3.22
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
❯

Calamity 的配置文件

16 种格式,都从同一份色板生成

Calamity

存到 ~/.config/ghostty/themes/Calamity,再在 config 或 config.ghostty 里写 theme = Calamity

更多 Ghostty 配色
原始文件
# Theme: Calamity (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/schemes/calamity?format=ghostty

palette = 0=#2f2833
palette = 1=#fc644d
palette = 2=#a5f69c
palette = 3=#e9d7a5
palette = 4=#3b79c7
palette = 5=#f92672
palette = 6=#74d3de
palette = 7=#d5ced9
palette = 8=#7e6c88
palette = 9=#fc644d
palette = 10=#a5f69c
palette = 11=#e9d7a5
palette = 12=#3b79c7
palette = 13=#f92672
palette = 14=#74d3de
palette = 15=#ffffff
background = #2f2833
foreground = #d5ced9
cursor-color = #d5ced9
cursor-text = #2f2833
selection-background = #7e6c88
selection-foreground = #d5ced9

Calamity 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#2f2833rgb(47 40 51)hsl(278 12% 18%)oklch(28.9% 0.022 313.3)—
前景色foreground#d5ced9rgb(213 206 217)hsl(278 13% 83%)oklch(86.0% 0.017 313.6)9.28 AAA
光标cursor#d5ced9rgb(213 206 217)hsl(278 13% 83%)oklch(86.0% 0.017 313.6)9.28 AAA
光标文字cursorText#2f2833rgb(47 40 51)hsl(278 12% 18%)oklch(28.9% 0.022 313.3)1.00 低于 AA
选区selection#7e6c88rgb(126 108 136)hsl(279 11% 48%)oklch(55.8% 0.048 313.5)2.98 低于 AA
选区文字selectionText#d5ced9rgb(213 206 217)hsl(278 13% 83%)oklch(86.0% 0.017 313.6)9.28 AAA
黑color0#2f2833rgb(47 40 51)hsl(278 12% 18%)oklch(28.9% 0.022 313.3)1.00 低于 AA
红color1#fc644drgb(252 100 77)hsl(8 97% 65%)oklch(69.4% 0.190 31.0)4.80 AA
绿color2#a5f69crgb(165 246 156)hsl(114 83% 79%)oklch(89.9% 0.144 142.0)11.05 AAA
黄color3#e9d7a5rgb(233 215 165)hsl(44 61% 78%)oklch(88.2% 0.068 90.6)10.00 AAA
蓝color4#3b79c7rgb(59 121 199)hsl(213 56% 51%)oklch(57.3% 0.137 255.4)3.22 AA 大字号
品红color5#f92672rgb(249 38 114)hsl(338 95% 56%)oklch(64.2% 0.240 7.5)3.77 AA 大字号
青color6#74d3dergb(116 211 222)hsl(186 62% 66%)oklch(81.2% 0.091 205.3)8.23 AAA
白color7#d5ced9rgb(213 206 217)hsl(278 13% 83%)oklch(86.0% 0.017 313.6)9.28 AAA
亮黑color8#7e6c88rgb(126 108 136)hsl(279 11% 48%)oklch(55.8% 0.048 313.5)2.98 低于 AA
亮红color9#fc644drgb(252 100 77)hsl(8 97% 65%)oklch(69.4% 0.190 31.0)4.80 AA
亮绿color10#a5f69crgb(165 246 156)hsl(114 83% 79%)oklch(89.9% 0.144 142.0)11.05 AAA
亮黄color11#e9d7a5rgb(233 215 165)hsl(44 61% 78%)oklch(88.2% 0.068 90.6)10.00 AAA
亮蓝color12#3b79c7rgb(59 121 199)hsl(213 56% 51%)oklch(57.3% 0.137 255.4)3.22 AA 大字号
亮品红color13#f92672rgb(249 38 114)hsl(338 95% 56%)oklch(64.2% 0.240 7.5)3.77 AA 大字号
亮青color14#74d3dergb(116 211 222)hsl(186 62% 66%)oklch(81.2% 0.091 205.3)8.23 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.26 AAA

关于 Calamity

Calamity 采用冷色调的深色背景(#2f2833),默认前景色为 #d5ced9。正文的 WCAG 对比度为 9.28:1(AAA),12 种 ANSI 彩色槽位平均对比度 6.85:1,最低 3.22:1。

色板整体色彩饱和度适中,其中红色为 #fc644d、绿色为 #a5f69c、蓝色为 #3b79c7、品红为 #f92672。

支持一键导出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 终端配置文件,同时提供 VS Code 与 Zed 集成终端、CSS 变量、Tailwind CSS 及 JSON 色板格式。

与 Calamity 相似的配色

数据来源:iTerm2 Color Schemes (MIT)