跳到主要內容

Square

Square 是一套深色終端機配色,背景色 #1a1a1a,文字色 #acacab,對比度 7.7:1

取得設定檔
背景色
#1a1a1a
前景色
#acacab
文字對比度
7.66:1AAA
強調色對比度
9.74:1最低 2.64
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
❯

Square 的設定檔

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

Square

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

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

palette = 0=#050505
palette = 1=#e9897c
palette = 2=#b6377d
palette = 3=#ecebbe
palette = 4=#a9cdeb
palette = 5=#75507b
palette = 6=#c9caec
palette = 7=#f2f2f2
palette = 8=#141414
palette = 9=#f99286
palette = 10=#c3f786
palette = 11=#fcfbcc
palette = 12=#b6defb
palette = 13=#ad7fa8
palette = 14=#d7d9fc
palette = 15=#e2e2e2
background = #1a1a1a
foreground = #acacab
cursor-color = #fcfbcc
cursor-text = #000000
selection-background = #4d4d4d
selection-foreground = #ffffff

Square 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1a1a1argb(26 26 26)hsl(0 0% 10%)oklch(21.8% 0.000 0)—
前景色foreground#acacabrgb(172 172 171)hsl(60 1% 67%)oklch(74.4% 0.001 106.4)7.66 AAA
游標cursor#fcfbccrgb(252 251 204)hsl(59 89% 89%)oklch(97.7% 0.061 106.5)16.42 AAA
游標文字cursorText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.21 低於 AA
選取範圍selection#4d4d4drgb(77 77 77)hsl(0 0% 30%)oklch(42.0% 0.000 0)2.06 低於 AA
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)17.40 AAA
黑color0#050505rgb(5 5 5)hsl(0 0% 2%)oklch(11.5% 0.000 0)1.17 低於 AA
紅color1#e9897crgb(233 137 124)hsl(7 71% 70%)oklch(72.9% 0.120 28.5)6.91 AA
綠color2#b6377drgb(182 55 125)hsl(327 54% 46%)oklch(54.4% 0.176 350.6)3.18 AA 大字級
黃color3#ecebbergb(236 235 190)hsl(59 55% 84%)oklch(93.0% 0.059 106.4)14.25 AAA
藍color4#a9cdebrgb(169 205 235)hsl(207 62% 79%)oklch(83.2% 0.057 243.6)10.46 AAA
洋紅color5#75507brgb(117 80 123)hsl(292 21% 40%)oklch(48.8% 0.080 321.8)2.64 低於 AA
青color6#c9caecrgb(201 202 236)hsl(238 48% 86%)oklch(84.9% 0.047 284.0)10.89 AAA
白color7#f2f2f2rgb(242 242 242)hsl(0 0% 95%)oklch(96.1% 0.000 0)15.55 AAA
亮黑color8#141414rgb(20 20 20)hsl(0 0% 8%)oklch(19.1% 0.000 0)1.06 低於 AA
亮紅color9#f99286rgb(249 146 134)hsl(6 91% 75%)oklch(76.6% 0.127 27.4)7.86 AAA
亮綠color10#c3f786rgb(195 247 134)hsl(88 88% 75%)oklch(91.6% 0.152 129.3)14.06 AAA
亮黃color11#fcfbccrgb(252 251 204)hsl(59 89% 89%)oklch(97.7% 0.061 106.5)16.42 AAA
亮藍color12#b6defbrgb(182 222 251)hsl(205 90% 85%)oklch(88.2% 0.058 239.8)12.29 AAA
亮洋紅color13#ad7fa8rgb(173 127 168)hsl(307 22% 59%)oklch(65.5% 0.080 330.2)5.29 AA
亮青color14#d7d9fcrgb(215 217 252)hsl(237 86% 92%)oklch(89.5% 0.048 282.8)12.61 AAA
亮白color15#e2e2e2rgb(226 226 226)hsl(0 0% 89%)oklch(91.3% 0.000 0)13.43 AAA

關於 Square

Square 採用中性色調的深色背景(#1a1a1a),預設前景色為 #acacab。內文的 WCAG 對比度為 7.66:1(AAA),12 種 ANSI 彩色槽位平均對比度 9.74:1,最低 2.64:1。

色票整體色彩彩度適中,其中紅色為 #e9897c、綠色為 #b6377d、藍色為 #a9cdeb、洋紅為 #75507b。

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

與 Square 相似的配色

資料來源:iTerm2 Color Schemes (MIT)