跳到主要內容

Darcula

Darcula 是一套深色終端機配色(柔和),背景色 #2b2b2b,文字色 #a9b7c6,對比度 6.9:1

取得設定檔
背景色
#2b2b2b
前景色
#a9b7c6
文字對比度
6.93:1AA
強調色對比度
4.64:1最低 3.52
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
❯

Darcula 的設定檔

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

Darcula

存到 ~/.config/ghostty/themes/Darcula,再在 config 或 config.ghostty 裡寫 theme = Darcula

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

palette = 0=#2b2b2b
palette = 1=#4eade5
palette = 2=#6a8759
palette = 3=#bbb529
palette = 4=#9876aa
palette = 5=#cc7832
palette = 6=#629755
palette = 7=#a9b7c6
palette = 8=#606366
palette = 9=#4eade5
palette = 10=#6a8759
palette = 11=#bbb529
palette = 12=#9876aa
palette = 13=#cc7832
palette = 14=#629755
palette = 15=#ffffff
background = #2b2b2b
foreground = #a9b7c6
cursor-color = #a9b7c6
cursor-text = #2b2b2b
selection-background = #484b4e
selection-foreground = #a9b7c6

Darcula 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#2b2b2brgb(43 43 43)hsl(0 0% 17%)oklch(28.9% 0.000 0)—
前景色foreground#a9b7c6rgb(169 183 198)hsl(211 20% 72%)oklch(77.3% 0.027 250.0)6.93 AA
游標cursor#a9b7c6rgb(169 183 198)hsl(211 20% 72%)oklch(77.3% 0.027 250.0)6.93 AA
游標文字cursorText#2b2b2brgb(43 43 43)hsl(0 0% 17%)oklch(28.9% 0.000 0)1.00 低於 AA
選取範圍selection#484b4ergb(72 75 78)hsl(210 4% 29%)oklch(41.1% 0.006 248.0)1.61 低於 AA
選取文字selectionText#a9b7c6rgb(169 183 198)hsl(211 20% 72%)oklch(77.3% 0.027 250.0)6.93 AA
黑color0#2b2b2brgb(43 43 43)hsl(0 0% 17%)oklch(28.9% 0.000 0)1.00 低於 AA
紅color1#4eade5rgb(78 173 229)hsl(202 74% 60%)oklch(71.4% 0.121 237.7)5.69 AA
綠color2#6a8759rgb(106 135 89)hsl(98 21% 44%)oklch(58.9% 0.075 134.4)3.52 AA 大字級
黃color3#bbb529rgb(187 181 41)hsl(58 64% 45%)oklch(75.5% 0.150 106.9)6.58 AA
藍color4#9876aargb(152 118 170)hsl(279 23% 56%)oklch(61.8% 0.086 313.6)3.71 AA 大字級
洋紅color5#cc7832rgb(204 120 50)hsl(27 61% 50%)oklch(65.2% 0.134 56.7)4.25 AA 大字級
青color6#629755rgb(98 151 85)hsl(108 28% 46%)oklch(62.3% 0.111 139.6)4.10 AA 大字級
白color7#a9b7c6rgb(169 183 198)hsl(211 20% 72%)oklch(77.3% 0.027 250.0)6.93 AA
亮黑color8#606366rgb(96 99 102)hsl(210 3% 39%)oklch(49.8% 0.006 247.9)2.34 低於 AA
亮紅color9#4eade5rgb(78 173 229)hsl(202 74% 60%)oklch(71.4% 0.121 237.7)5.69 AA
亮綠color10#6a8759rgb(106 135 89)hsl(98 21% 44%)oklch(58.9% 0.075 134.4)3.52 AA 大字級
亮黃color11#bbb529rgb(187 181 41)hsl(58 64% 45%)oklch(75.5% 0.150 106.9)6.58 AA
亮藍color12#9876aargb(152 118 170)hsl(279 23% 56%)oklch(61.8% 0.086 313.6)3.71 AA 大字級
亮洋紅color13#cc7832rgb(204 120 50)hsl(27 61% 50%)oklch(65.2% 0.134 56.7)4.25 AA 大字級
亮青color14#629755rgb(98 151 85)hsl(108 28% 46%)oklch(62.3% 0.111 139.6)4.10 AA 大字級
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.16 AAA

關於 Darcula

Darcula 採用中性色調的深色背景(#2b2b2b),預設前景色為 #a9b7c6。內文的 WCAG 對比度為 6.93:1(AA),12 種 ANSI 彩色槽位平均對比度 4.64:1,最低 3.52:1。

色票整體色彩彩度適中,其中紅色為 #4eade5、綠色為 #6a8759、藍色為 #9876aa、洋紅為 #cc7832。此配色歸屬 JetBrains 主題系列。

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

與 Darcula 相似的配色

資料來源:Gogh (MIT OR Apache-2.0)