跳到正文

Django

Django 是一套深色终端配色,背景色 #0b2f20,文字色 #f8f8f8,对比度 13.7:1

获取配置
背景色
#0b2f20
前景色
#f8f8f8
文字对比度
13.72:1AAA
强调色对比度
8.95:1最低 1.57
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
❯

Django 的配置文件

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

Django

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

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

palette = 0=#000000
palette = 1=#fd6209
palette = 2=#41a83e
palette = 3=#ffe862
palette = 4=#245032
palette = 5=#f8f8f8
palette = 6=#9df39f
palette = 7=#ffffff
palette = 8=#323232
palette = 9=#ff943b
palette = 10=#73da70
palette = 11=#ffff94
palette = 12=#568264
palette = 13=#ffffff
palette = 14=#cfffd1
palette = 15=#ffffff
background = #0b2f20
foreground = #f8f8f8
cursor-color = #336442
cursor-text = #f8f8f8
selection-background = #245032
selection-foreground = #f8f8f8

Django 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#0b2f20rgb(11 47 32)hsl(155 62% 11%)oklch(27.4% 0.050 162.3)—
前景色foreground#f8f8f8rgb(248 248 248)hsl(0 0% 97%)oklch(97.9% 0.000 0)13.72 AAA
光标cursor#336442rgb(51 100 66)hsl(138 32% 30%)oklch(45.9% 0.077 152.2)2.11 低于 AA
光标文字cursorText#f8f8f8rgb(248 248 248)hsl(0 0% 97%)oklch(97.9% 0.000 0)13.72 AAA
选区selection#245032rgb(36 80 50)hsl(139 38% 23%)oklch(39.1% 0.071 152.2)1.57 低于 AA
选区文字selectionText#f8f8f8rgb(248 248 248)hsl(0 0% 97%)oklch(97.9% 0.000 0)13.72 AAA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.44 低于 AA
红color1#fd6209rgb(253 98 9)hsl(22 98% 51%)oklch(68.8% 0.205 42.1)4.81 AA
绿color2#41a83ergb(65 168 62)hsl(118 46% 45%)oklch(64.9% 0.173 142.8)4.78 AA
黄color3#ffe862rgb(255 232 98)hsl(51 100% 69%)oklch(92.5% 0.153 99.6)11.77 AAA
蓝color4#245032rgb(36 80 50)hsl(139 38% 23%)oklch(39.1% 0.071 152.2)1.57 低于 AA
品红color5#f8f8f8rgb(248 248 248)hsl(0 0% 97%)oklch(97.9% 0.000 0)13.72 AAA
青color6#9df39frgb(157 243 159)hsl(121 78% 78%)oklch(88.9% 0.141 144.8)10.93 AAA
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.57 AAA
亮黑color8#323232rgb(50 50 50)hsl(0 0% 20%)oklch(31.7% 0.000 0)1.14 低于 AA
亮红color9#ff943brgb(255 148 59)hsl(27 100% 62%)oklch(76.6% 0.162 56.1)6.62 AA
亮绿color10#73da70rgb(115 218 112)hsl(118 59% 65%)oklch(80.2% 0.173 143.2)8.32 AAA
亮黄color11#ffff94rgb(255 255 148)hsl(60 100% 79%)oklch(97.8% 0.130 108.6)13.86 AAA
亮蓝color12#568264rgb(86 130 100)hsl(139 20% 42%)oklch(56.6% 0.067 154.0)3.31 AA 大字号
亮品红color13#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.57 AAA
亮青color14#cfffd1rgb(207 255 209)hsl(122 100% 91%)oklch(95.5% 0.078 146.0)13.09 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.57 AAA

关于 Django

Django 采用中性色调的深色背景(#0b2f20),默认前景色为 #f8f8f8。正文的 WCAG 对比度为 13.72:1(AAA),12 种 ANSI 彩色槽位平均对比度 8.95:1,最低 1.57:1。

色板整体色彩饱和度适中,其中红色为 #fd6209、绿色为 #41a83e、蓝色为 #245032、品红为 #f8f8f8。

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

与 Django 相似的配色

数据来源:iTerm2 Color Schemes (MIT)