跳到主要內容

DotGov

DotGov 是一套深色終端機配色(冷色),背景色 #252b35,文字色 #eaeaea,對比度 11.8:1

取得設定檔
背景色
#252b35
前景色
#eaeaea
文字對比度
11.83:1AAA
強調色對比度
5.05:1最低 1.91
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
❯

DotGov 的設定檔

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

DotGov

存到 ~/.config/ghostty/themes/DotGov,再在 config 或 config.ghostty 裏寫 theme = DotGov

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

palette = 0=#181818
palette = 1=#bf081d
palette = 2=#3d9751
palette = 3=#f6bb33
palette = 4=#16b1df
palette = 5=#772fb0
palette = 6=#8bd1ed
palette = 7=#ffffff
palette = 8=#181818
palette = 9=#bf081d
palette = 10=#3d9751
palette = 11=#f6bb33
palette = 12=#16b1df
palette = 13=#772fb0
palette = 14=#8bd1ed
palette = 15=#ffffff
background = #252b35
foreground = #eaeaea
cursor-color = #d9002f
cursor-text = #252b35
selection-background = #194080
selection-foreground = #252b35

DotGov 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#252b35rgb(37 43 53)hsl(218 18% 18%)oklch(28.8% 0.020 260.6)—
前景色foreground#eaeaeargb(234 234 234)hsl(0 0% 92%)oklch(93.7% 0.000 0)11.83 AAA
光標cursor#d9002frgb(217 0 47)hsl(347 100% 43%)oklch(55.9% 0.225 22.4)2.70 低於 AA
光標文字cursorText#252b35rgb(37 43 53)hsl(218 18% 18%)oklch(28.8% 0.020 260.6)1.00 低於 AA
選取範圍selection#194080rgb(25 64 128)hsl(217 67% 30%)oklch(38.2% 0.117 259.9)1.41 低於 AA
選取文字selectionText#252b35rgb(37 43 53)hsl(218 18% 18%)oklch(28.8% 0.020 260.6)1.00 低於 AA
黑color0#181818rgb(24 24 24)hsl(0 0% 9%)oklch(20.9% 0.000 0)1.25 低於 AA
紅color1#bf081drgb(191 8 29)hsl(353 92% 39%)oklch(50.9% 0.203 25.6)2.21 低於 AA
綠color2#3d9751rgb(61 151 81)hsl(133 42% 42%)oklch(60.5% 0.135 148.3)3.89 AA 大字體
黃color3#f6bb33rgb(246 187 51)hsl(42 92% 58%)oklch(82.5% 0.156 83.2)8.18 AAA
藍color4#16b1dfrgb(22 177 223)hsl(194 82% 48%)oklch(70.9% 0.132 225.6)5.68 AA
洋紅color5#772fb0rgb(119 47 176)hsl(273 58% 44%)oklch(47.4% 0.194 305.5)1.91 低於 AA
青color6#8bd1edrgb(139 209 237)hsl(197 73% 74%)oklch(82.4% 0.080 225.2)8.43 AAA
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.23 AAA
亮黑color8#181818rgb(24 24 24)hsl(0 0% 9%)oklch(20.9% 0.000 0)1.25 低於 AA
亮紅color9#bf081drgb(191 8 29)hsl(353 92% 39%)oklch(50.9% 0.203 25.6)2.21 低於 AA
亮綠color10#3d9751rgb(61 151 81)hsl(133 42% 42%)oklch(60.5% 0.135 148.3)3.89 AA 大字體
亮黃color11#f6bb33rgb(246 187 51)hsl(42 92% 58%)oklch(82.5% 0.156 83.2)8.18 AAA
亮藍color12#16b1dfrgb(22 177 223)hsl(194 82% 48%)oklch(70.9% 0.132 225.6)5.68 AA
亮洋紅color13#772fb0rgb(119 47 176)hsl(273 58% 44%)oklch(47.4% 0.194 305.5)1.91 低於 AA
亮青color14#8bd1edrgb(139 209 237)hsl(197 73% 74%)oklch(82.4% 0.080 225.2)8.43 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.23 AAA

關於 DotGov

DotGov 採用冷色調的深色背景(#252b35),預設前景色為 #eaeaea。正文的 WCAG 對比度為 11.83:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.05:1,最低 1.91:1。

色板整體色彩飽和度適中,其中紅色為 #bf081d、綠色為 #3d9751、藍色為 #16b1df、洋紅為 #772fb0。

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

與 DotGov 相似的配色

資料來源:Kitty Themes (MIT)