跳到正文

Ubuntu

Ubuntu 是一套深色终端配色(暖色),背景色 #300a24,文字色 #eeeeec,对比度 15.1:1

获取配置
背景色
#300a24
前景色
#eeeeec
文字对比度
15.13:1AAA
强调色对比度
6.46:1最低 2.67
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
❯

Ubuntu 的配置文件

16 种格式,都从同一份色板生成

Ubuntu

存到 ~/.config/ghostty/themes/Ubuntu,再在 config 或 config.ghostty 里写 theme = Ubuntu

更多 Ghostty 配色
原始文件
# Theme: Ubuntu (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/schemes/ubuntu?format=ghostty

palette = 0=#2e3436
palette = 1=#cc0000
palette = 2=#4e9a06
palette = 3=#c4a000
palette = 4=#3465a4
palette = 5=#75507b
palette = 6=#06989a
palette = 7=#d3d7cf
palette = 8=#555753
palette = 9=#ef2929
palette = 10=#8ae234
palette = 11=#fce94f
palette = 12=#729fcf
palette = 13=#ad7fa8
palette = 14=#34e2e2
palette = 15=#eeeeec
background = #300a24
foreground = #eeeeec
cursor-color = #bbbbbb
cursor-text = #ffffff
selection-background = #b5d5ff
selection-foreground = #000000

Ubuntu 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#300a24rgb(48 10 36)hsl(319 66% 11%)oklch(22.3% 0.071 342.5)—
前景色foreground#eeeeecrgb(238 238 236)hsl(60 6% 93%)oklch(94.9% 0.003 106.5)15.13 AAA
光标cursor#bbbbbbrgb(187 187 187)hsl(0 0% 73%)oklch(79.2% 0.000 0)9.16 AAA
光标文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)17.58 AAA
选区selection#b5d5ffrgb(181 213 255)hsl(214 100% 85%)oklch(86.4% 0.068 255.3)11.66 AAA
选区文字selectionText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.19 低于 AA
黑color0#2e3436rgb(46 52 54)hsl(195 8% 20%)oklch(32.0% 0.009 219.8)1.39 低于 AA
红color1#cc0000rgb(204 0 0)hsl(0 100% 40%)oklch(53.1% 0.218 29.2)2.99 低于 AA
绿color2#4e9a06rgb(78 154 6)hsl(91 93% 31%)oklch(61.3% 0.178 135.4)4.98 AA
黄color3#c4a000rgb(196 160 0)hsl(49 100% 38%)oklch(71.8% 0.147 92.6)7.01 AAA
蓝color4#3465a4rgb(52 101 164)hsl(214 52% 42%)oklch(50.4% 0.114 255.7)2.97 低于 AA
品红color5#75507brgb(117 80 123)hsl(292 21% 40%)oklch(48.8% 0.080 321.8)2.67 低于 AA
青color6#06989argb(6 152 154)hsl(181 93% 31%)oklch(61.7% 0.104 196.5)4.99 AA
白color7#d3d7cfrgb(211 215 207)hsl(90 9% 83%)oklch(87.4% 0.012 128.6)12.05 AAA
亮黑color8#555753rgb(85 87 83)hsl(90 2% 33%)oklch(45.4% 0.007 128.6)2.41 低于 AA
亮红color9#ef2929rgb(239 41 41)hsl(0 86% 55%)oklch(61.3% 0.230 27.4)4.20 AA 大字号
亮绿color10#8ae234rgb(138 226 52)hsl(90 75% 55%)oklch(82.6% 0.215 133.3)10.89 AAA
亮黄color11#fce94frgb(252 233 79)hsl(53 97% 65%)oklch(92.3% 0.168 102.2)14.15 AAA
亮蓝color12#729fcfrgb(114 159 207)hsl(211 49% 63%)oklch(68.9% 0.086 250.7)6.34 AA
亮品红color13#ad7fa8rgb(173 127 168)hsl(307 22% 59%)oklch(65.5% 0.080 330.2)5.34 AA
亮青color14#34e2e2rgb(52 226 226)hsl(180 75% 55%)oklch(83.1% 0.133 194.9)10.99 AAA
亮白color15#eeeeecrgb(238 238 236)hsl(60 6% 93%)oklch(94.9% 0.003 106.5)15.13 AAA

关于 Ubuntu

Ubuntu 采用暖色调的深色背景(#300a24),默认前景色为 #eeeeec。正文的 WCAG 对比度为 15.13:1(AAA),12 种 ANSI 彩色槽位平均对比度 6.46:1,最低 2.67:1。

色板整体色彩饱和度适中,其中红色为 #cc0000、绿色为 #4e9a06、蓝色为 #3465a4、品红为 #75507b。

支持一键导出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 终端配置文件,同时提供 VS Code 与 Zed 集成终端、CSS 变量、Tailwind CSS 及 JSON 色板格式。

与 Ubuntu 相似的配色

数据来源:iTerm2 Color Schemes (MIT)