跳到主要內容

Safety Glass

Safety Glass 是一套淺色終端機配色,背景色 #f2fbfa,文字色 #142322,對比度 15.4:1

取得設定檔
背景色
#f2fbfa
前景色
#142322
文字對比度
15.43:1AAA
強調色對比度
8.30:1最低 7.05
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
❯

Safety Glass 的設定檔

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

Safety Glass

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

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

palette = 0=#293837
palette = 1=#842424
palette = 2=#125a37
palette = 3=#634c00
palette = 4=#17458b
palette = 5=#5e3186
palette = 6=#005866
palette = 7=#394847
palette = 8=#465554
palette = 9=#902a2a
palette = 10=#17603d
palette = 11=#6b5200
palette = 12=#123a78
palette = 13=#65388e
palette = 14=#004b57
palette = 15=#414f4e
background = #f2fbfa
foreground = #142322
cursor-color = #176d67
cursor-text = #f2fbfa
selection-background = #d7ebe8
selection-foreground = #142322

Safety Glass 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#f2fbfargb(242 251 250)hsl(173 53% 97%)oklch(98.1% 0.010 189.1)—
前景色foreground#142322rgb(20 35 34)hsl(176 27% 11%)oklch(24.2% 0.021 190.6)15.43 AAA
游標cursor#176d67rgb(23 109 103)hsl(176 65% 26%)oklch(48.5% 0.078 187.8)5.84 AA
游標文字cursorText#f2fbfargb(242 251 250)hsl(173 53% 97%)oklch(98.1% 0.010 189.1)1.00 低於 AA
選取範圍selection#d7ebe8rgb(215 235 232)hsl(171 33% 88%)oklch(92.4% 0.022 186.0)1.18 低於 AA
選取文字selectionText#142322rgb(20 35 34)hsl(176 27% 11%)oklch(24.2% 0.021 190.6)15.43 AAA
黑color0#293837rgb(41 56 55)hsl(176 15% 19%)oklch(32.7% 0.020 191.1)11.63 AAA
紅color1#842424rgb(132 36 36)hsl(0 57% 33%)oklch(41.4% 0.131 25.0)8.83 AAA
綠color2#125a37rgb(18 90 55)hsl(151 67% 21%)oklch(41.5% 0.090 156.8)7.85 AAA
黃color3#634c00rgb(99 76 0)hsl(46 100% 19%)oklch(42.9% 0.088 88.6)7.78 AAA
藍color4#17458brgb(23 69 139)hsl(216 72% 32%)oklch(40.2% 0.127 259.0)8.83 AAA
洋紅color5#5e3186rgb(94 49 134)hsl(272 46% 36%)oklch(41.4% 0.139 305.5)8.83 AAA
青color6#005866rgb(0 88 102)hsl(188 100% 20%)oklch(42.3% 0.074 213.2)7.71 AAA
白color7#394847rgb(57 72 71)hsl(176 12% 25%)oklch(38.8% 0.019 191.4)9.10 AAA
亮黑color8#465554rgb(70 85 84)hsl(176 10% 30%)oklch(43.6% 0.019 191.5)7.42 AAA
亮紅color9#902a2argb(144 42 42)hsl(0 55% 36%)oklch(44.3% 0.137 24.7)7.82 AAA
亮綠color10#17603drgb(23 96 61)hsl(151 61% 23%)oklch(43.5% 0.091 157.6)7.19 AAA
亮黃color11#6b5200rgb(107 82 0)hsl(46 100% 21%)oklch(45.2% 0.092 88.2)7.05 AAA
亮藍color12#123a78rgb(18 58 120)hsl(216 74% 27%)oklch(36.0% 0.115 259.3)10.49 AAA
亮洋紅color13#65388ergb(101 56 142)hsl(271 43% 39%)oklch(43.8% 0.140 305.5)7.95 AAA
亮青color14#004b57rgb(0 75 87)hsl(188 100% 17%)oklch(37.9% 0.066 212.9)9.31 AAA
亮白color15#414f4ergb(65 79 78)hsl(176 10% 28%)oklch(41.5% 0.018 191.2)8.13 AAA

關於 Safety Glass

Safety Glass 採用中性色調的淺色背景(#f2fbfa),預設前景色為 #142322。內文的 WCAG 對比度為 15.43:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.30:1,最低 7.05:1。

色票整體色彩彩度適中,其中紅色為 #842424、綠色為 #125a37、藍色為 #17458b、洋紅為 #5e3186。

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

與 Safety Glass 相似的配色

資料來源:iTerm2 Color Schemes (MIT)