跳到主要內容

Dot Gov

Dot Gov 是一套深色終端機配色(冷色),背景色 #262c35,文字色 #ebebeb,對比度 11.8:1

取得設定檔
背景色
#262c35
前景色
#ebebeb
文字對比度
11.79:1AAA
強調色對比度
5.02: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
❯

Dot Gov 的設定檔

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

Dot Gov

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

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

palette = 0=#191919
palette = 1=#bf091d
palette = 2=#3d9751
palette = 3=#f6bb34
palette = 4=#17b2e0
palette = 5=#7830b0
palette = 6=#8bd2ed
palette = 7=#ffffff
palette = 8=#191919
palette = 9=#bf091d
palette = 10=#3d9751
palette = 11=#f6bb34
palette = 12=#17b2e0
palette = 13=#7830b0
palette = 14=#8bd2ed
palette = 15=#ffffff
background = #262c35
foreground = #ebebeb
cursor-color = #d9002f
cursor-text = #ffffff
selection-background = #1a4080
selection-foreground = #ffffff

Dot Gov 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#262c35rgb(38 44 53)hsl(216 16% 18%)oklch(29.1% 0.019 258.4)—
前景色foreground#ebebebrgb(235 235 235)hsl(0 0% 92%)oklch(94.0% 0.000 0)11.79 AAA
光標cursor#d9002frgb(217 0 47)hsl(347 100% 43%)oklch(55.9% 0.225 22.4)2.67 低於 AA
光標文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.06 AAA
選取範圍selection#1a4080rgb(26 64 128)hsl(218 66% 30%)oklch(38.3% 0.117 260.2)1.40 低於 AA
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.06 AAA
黑color0#191919rgb(25 25 25)hsl(0 0% 10%)oklch(21.3% 0.000 0)1.25 低於 AA
紅color1#bf091drgb(191 9 29)hsl(353 91% 39%)oklch(50.9% 0.203 25.7)2.19 低於 AA
綠color2#3d9751rgb(61 151 81)hsl(133 42% 42%)oklch(60.5% 0.135 148.3)3.84 AA 大字體
黃color3#f6bb34rgb(246 187 52)hsl(42 92% 58%)oklch(82.5% 0.155 83.1)8.08 AAA
藍color4#17b2e0rgb(23 178 224)hsl(194 81% 48%)oklch(71.2% 0.132 225.5)5.68 AA
洋紅color5#7830b0rgb(120 48 176)hsl(274 57% 44%)oklch(47.6% 0.193 305.9)1.91 低於 AA
青color6#8bd2edrgb(139 210 237)hsl(197 73% 74%)oklch(82.6% 0.080 224.0)8.39 AAA
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.06 AAA
亮黑color8#191919rgb(25 25 25)hsl(0 0% 10%)oklch(21.3% 0.000 0)1.25 低於 AA
亮紅color9#bf091drgb(191 9 29)hsl(353 91% 39%)oklch(50.9% 0.203 25.7)2.19 低於 AA
亮綠color10#3d9751rgb(61 151 81)hsl(133 42% 42%)oklch(60.5% 0.135 148.3)3.84 AA 大字體
亮黃color11#f6bb34rgb(246 187 52)hsl(42 92% 58%)oklch(82.5% 0.155 83.1)8.08 AAA
亮藍color12#17b2e0rgb(23 178 224)hsl(194 81% 48%)oklch(71.2% 0.132 225.5)5.68 AA
亮洋紅color13#7830b0rgb(120 48 176)hsl(274 57% 44%)oklch(47.6% 0.193 305.9)1.91 低於 AA
亮青color14#8bd2edrgb(139 210 237)hsl(197 73% 74%)oklch(82.6% 0.080 224.0)8.39 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.06 AAA

關於 Dot Gov

Dot Gov 採用冷色調的深色背景(#262c35),預設前景色為 #ebebeb。正文的 WCAG 對比度為 11.79:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.02:1,最低 1.91:1。

色板整體色彩飽和度適中,其中紅色為 #bf091d、綠色為 #3d9751、藍色為 #17b2e0、洋紅為 #7830b0。

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

與 Dot Gov 相似的配色

資料來源:iTerm2 Color Schemes (CC0-1.0)