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 dracula theme #1258

Merged
merged 6 commits into from
Dec 20, 2021
Merged
Changes from 1 commit
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
57 changes: 57 additions & 0 deletions runtime/themes/dracula.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Author : Sebastian Zivota <[email protected]>

"escape" = { fg = "pink" }
loewenheim marked this conversation as resolved.
Show resolved Hide resolved
"type" = { fg = "cyan", modifiers = ["italic"] }
"constant" = { fg = "purple" }
"string" = { fg = "yellow" }
"string.regexp" = { fg = "red" }
"comment" = { fg = "comment" }
"variable" = { fg = "foreground" }
"variable.builtin" = { fg = "cyan", modifiers = ["italic"] }
"variable.parameter" = { fg ="orange", modifiers = ["italic"] }
"punctuation" = { fg = "foreground" }
"keyword" = { fg = "pink" }
"operator" = { fg = "pink" }
"function" = { fg = "green" }
"tag" = { fg = "pink" }

"ui.background" = { fg = "foreground", bg = "background" }
"ui.cursor" = { fg = "black", bg = "orange", modifiers = ["dim"] }
"ui.cursor.primary" = { fg = "black", bg = "cyan", modifier = ["dim"] }
"ui.cursor.match" = { fg = "green", modifiers = ["underlined"] }
"ui.linenr" = { fg = "comment" }
"ui.linenr.selected" = { fg = "foreground" }
"ui.statusline" = { fg = "foreground", bg = "background_dark" }
"ui.selection" = { fg = "black", bg = "purple", modifiers = ["dim"] }
"ui.selection.primary" = { fg = "black", bg = "pink" }
"ui.text" = { fg = "foreground" }
"error" = { fg = "red" }
"warning" = { fg = "cyan" }
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, this is missing a few styles, ui.popup, ui.window, ui.help, ui.menu, ui.menu.selected etc. ui.text.focus

Also info and hint. Are you sure you don't want to style these?

Copy link
Contributor Author

@loewenheim loewenheim Dec 13, 2021

Choose a reason for hiding this comment

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

Thank you for the reminder that I still needed to deal with these. Unfortunately I can't figure out what ui.menu does.

ETA: The same goes for ui.cursor.insert and ui.info.

Copy link
Contributor

@CptPotato CptPotato Dec 13, 2021

Choose a reason for hiding this comment

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

Thank you for the reminder that I still needed to deal with these. Unfortunately I can't figure out what ui.menu does.

ETA: The same goes for ui.cursor.insert and ui.info.

ui.cursor.insert is the color of the cursor in insert mode. It only works when ui.cursor.primary isn't set, though.
It's the same case for ui.cursor.select (-> visual mode).

info (not ui.info afaik) is used for infos such as suggestions and other lints from the LSP, like error and warning.

I wasn't able to find out what ui.menu refers to, though :/

Copy link
Member

Choose a reason for hiding this comment

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

ui.menu is used for the completion menu, and the picker "menu" (the left pane with the file list)


[palette]
background = "#282a36"
background_dark = "#21222c"
foreground = "#f8f8f2"
selection = "#44475a"
comment = "#6272a4"
red = "#ff5555"
orange = "#ffb86c"
yellow = "#f1fa8c"
green = "#50fa7b"
purple = "#bd93f9"
cyan = "#8be9fd"
pink = "#ff79c6"

#ANSI
black = "#21222c"
blue = "#bd93f9"
magenta = "#ff79c6"
white = "#f8f8f2"
bright_black = "#6272a4"
bright_red = "#ff6e6e"
bright_green = "#69ff94"
bright_yellow = "#ffffa5"
bright_blue = "#d6acff"
bright_magenta = "#ff92df"
bright_cyan = "#a4ffff"
bright_white = "#ffffff"
loewenheim marked this conversation as resolved.
Show resolved Hide resolved