跳到正文

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/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)