跳到主要內容

Substrata

Substrata 是一套深色終端機配色(低彩度、冷色),背景色 #191c25,文字色 #b5b4c9,對比度 8.4:1

取得設定檔
背景色
#191c25
前景色
#b5b4c9
文字對比度
8.38:1AAA
強調色對比度
7.05:1最低 5.62
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
❯

Substrata 的設定檔

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

Substrata

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

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

palette = 0=#2e313d
palette = 1=#cf8164
palette = 2=#76a065
palette = 3=#ab924c
palette = 4=#8296b0
palette = 5=#a18daf
palette = 6=#659ea2
palette = 7=#b5b4c9
palette = 8=#5b5f71
palette = 9=#fe9f7c
palette = 10=#92c47e
palette = 11=#d2b45f
palette = 12=#a0b9d8
palette = 13=#c6aed7
palette = 14=#7dc2c7
palette = 15=#f0ecfe
background = #191c25
foreground = #b5b4c9
cursor-color = #b5b4c9
cursor-text = #191c25
selection-background = #3b3e4a
selection-foreground = #b5b4c9

Substrata 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#191c25rgb(25 28 37)hsl(225 19% 12%)oklch(22.7% 0.018 270.5)—
前景色foreground#b5b4c9rgb(181 180 201)hsl(243 16% 75%)oklch(77.7% 0.030 287.9)8.38 AAA
游標cursor#b5b4c9rgb(181 180 201)hsl(243 16% 75%)oklch(77.7% 0.030 287.9)8.38 AAA
游標文字cursorText#191c25rgb(25 28 37)hsl(225 19% 12%)oklch(22.7% 0.018 270.5)1.00 低於 AA
選取範圍selection#3b3e4argb(59 62 74)hsl(228 11% 26%)oklch(36.6% 0.021 274.3)1.60 低於 AA
選取文字selectionText#b5b4c9rgb(181 180 201)hsl(243 16% 75%)oklch(77.7% 0.030 287.9)8.38 AAA
黑color0#2e313drgb(46 49 61)hsl(228 14% 21%)oklch(31.5% 0.022 274.1)1.31 低於 AA
紅color1#cf8164rgb(207 129 100)hsl(16 53% 60%)oklch(67.9% 0.106 41.1)5.65 AA
綠color2#76a065rgb(118 160 101)hsl(103 24% 51%)oklch(66.0% 0.096 137.0)5.66 AA
黃color3#ab924crgb(171 146 76)hsl(44 38% 48%)oklch(66.8% 0.095 90.1)5.63 AA
藍color4#8296b0rgb(130 150 176)hsl(214 23% 60%)oklch(66.7% 0.045 255.1)5.62 AA
洋紅color5#a18dafrgb(161 141 175)hsl(275 18% 62%)oklch(67.3% 0.054 311.3)5.63 AA
青color6#659ea2rgb(101 158 162)hsl(184 25% 52%)oklch(66.1% 0.060 201.5)5.64 AA
白color7#b5b4c9rgb(181 180 201)hsl(243 16% 75%)oklch(77.7% 0.030 287.9)8.38 AAA
亮黑color8#5b5f71rgb(91 95 113)hsl(229 11% 40%)oklch(48.9% 0.029 275.4)2.69 低於 AA
亮紅color9#fe9f7crgb(254 159 124)hsl(16 98% 74%)oklch(79.1% 0.124 40.9)8.48 AAA
亮綠color10#92c47ergb(146 196 126)hsl(103 37% 63%)oklch(76.8% 0.110 137.1)8.44 AAA
亮黃color11#d2b45frgb(210 180 95)hsl(44 56% 60%)oklch(77.9% 0.110 90.3)8.45 AAA
亮藍color12#a0b9d8rgb(160 185 216)hsl(213 42% 74%)oklch(77.7% 0.052 253.9)8.45 AAA
亮洋紅color13#c6aed7rgb(198 174 215)hsl(275 34% 76%)oklch(78.5% 0.063 311.2)8.46 AAA
亮青color14#7dc2c7rgb(125 194 199)hsl(184 40% 64%)oklch(77.0% 0.070 201.6)8.44 AAA
亮白color15#f0ecfergb(240 236 254)hsl(253 90% 96%)oklch(95.1% 0.024 296.1)14.69 AAA

關於 Substrata

Substrata 採用冷色調的深色背景(#191c25),預設前景色為 #b5b4c9。內文的 WCAG 對比度為 8.38:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.05:1,最低 5.62:1。

色票整體色彩彩度偏低,其中紅色為 #cf8164、綠色為 #76a065、藍色為 #8296b0、洋紅為 #a18daf。

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

與 Substrata 相似的配色

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