Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add darcula theme based upon Intelij Darcula #3739

Merged
merged 1 commit into from
Sep 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions runtime/themes/darcula.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Author : Nick Ogden <nick@nickogden.org>

"ui.background" = { bg = "grey01" }
"ui.menu" = { fg = "grey05", bg = "grey00" }
"ui.menu.selected" = { fg = "grey01", bg = "grey04" }
"ui.linenr" = { fg = "grey03", bg = "grey01" }
"ui.linenr.selected" = { fg = "grey04", bg = "grey01", modifiers = ["bold"] }
"ui.gutter" = { bg = "grey01" }
"ui.popup" = { fg = "grey05", bg = "grey00" }
"ui.window" = { bg = "grey01" }
"ui.selection" = { bg = "grey03" }
"ui.statusline" = { fg = "grey04", bg = "grey02" }
"ui.statusline.insert" = { bg = "white", fg = "grey01" }
"ui.statusline.select" = { bg = "orange", fg = "grey01" }
"ui.help" = { fg = "grey04", bg = "grey01" }
"ui.cursor" = { fg = "grey04", modifiers = ["reversed"] }
"ui.cursor.primary" = { fg = "grey05", modifiers = ["reversed"] }
"ui.cursor.match" = { fg = "white", modifiers = ["underlined"] }
"ui.cursorline.primary" = { bg = "grey02" }
"ui.cursorline.secondary" = { bg = "grey02" }
"ui.text" = "white"
"ui.text.focus" = "grey05"
"ui.virtual.ruler" = { bg = "grey02" }
"ui.virtual.indent-guide" = "grey02"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to add a ui.virtual.whitespace key (:set whitespace.render all). Without it the whitespace looks pretty bright - I think it would look good if it were slightly brighter than the indent guides color. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've now added the whitespace styling as requested. I don't really have an opinion on it as it's a feature that I've never needed myself, but I've gone for the next shade lighter than the indent guides. It looks fine to me.

"ui.virtual.whitespace" = "grey03"

"operator" = "grey05"
"variable" = "white"
"variable.other.member" = "yellow"
"constant" = "lightblue"
"constant.numeric" = "lightblue"
"constant.character.escape" = "white"
"attribute" = "yellow"
"type" = "orange"
"string" = "darkgreen"
"function" = "yellow"
"function.macro" = "green"
"constructor" = "yellow"
"special" = "green"
"keyword" = "orange"
"comment" = { fg = "grey", modifiers = ["italic"] }
"label" = "purple"
"namespace" = { fg = "purple", modifiers = ["italic"] }

# HTML
"tag" = "orange"

"markup.heading.1" = "orange"
"markup.heading.2" = "yellow"
"markup.heading.3" = "darkred"
"markup.heading.4" = "grey"
"markup.heading.5" = "purple"
"markup.heading.6" = "darkgreen"
"markup.list" = "white"
"markup.bold" = { fg = "white", modifiers = ["bold"] }
"markup.italic" = { fg = "white", modifiers = ["italic"] }
"markup.link.url" = { fg = "lightblue", modifiers = ["underlined"] }
"markup.link.text" = "white"
"markup.quote" = "darkgreen"
"markup.raw" = "white"

"diff.plus" = "green"
"diff.delta" = "grey"
"diff.minus" = "red"

"diagnostic" = { modifiers = ["underlined"] }
"info" = "grey05"
"hint" = "grey05"
"debug" = "grey05"
"warning" = "orange"
"error" = "red"

[palette]
grey00 = "#181818" # Default Background
grey01 = "#282828" # Lighter Background (Used for status bars, line number and folding marks)
grey02 = "#383838" # Selection Background
grey03 = "#585858" # Comments, Invisibles, Line Highlighting
grey04 = "#b8b8b8" # Dark Foreground (Used for status bars)
grey05 = "#d8d8d8" # Default Foreground, Caret, Delimiters, Operators
grey06 = "#e8e8e8" # Light Foreground (Not often used)
grey07 = "#f8f8f8" # Light Background (Not often used)

white = "#d0d0d0"
yellow = "#eedd82"
orange = "#cc7832"
darkred = "#a34a27"
purple = "#9876aa"
green = "#32cd32"
grey = "#808080"
darkgreen = "#629755"
lightblue = "#6897bb"