跳到主要內容

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