mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 17:36:19 +04:00
fa4934cff9
* Default rulers color to red Currently if the theme a user is using doesn't have `ui.virtual.rulers` set and they set up a ruler it just fails silently making it really hard to figure out what went wrong. Did they set incorrectly set the ruler? Are they using an outdated version of Helix that doesn't support rulers? This happened to me today, I even switched to the default theme with the assumption that maybe my theme just doesn't have the rulers setup properly and it still didn't work. Not sure if this is a good idea or not, feel free to suggest better alternatives! * Use builtin Style methods instead of Bevy style defaults Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Only default the style if there's no ui or ui.virtual * Update themes style from ui.virtual to ui.virtual.whitespace * Revert ui.virtual change in onelight theme * Prefer unwrap_or_else Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
118 lines
3.0 KiB
TOML
118 lines
3.0 KiB
TOML
# Author : WindSoilder<WindSoilder@outlook.com>
|
|
# The unofficial Monokai Pro theme, simply migrate from jetbrains monokai pro theme: https://github.com/subtheme-dev/monokai-pro
|
|
# Credit goes to the original creator: https://monokai.pro
|
|
|
|
"ui.linenr.selected" = { bg = "base3" }
|
|
"ui.text.focus" = { fg = "yellow", modifiers= ["bold"] }
|
|
"ui.menu" = { fg = "base8", bg = "base3" }
|
|
"ui.menu.selected" = { fg = "base2", bg = "yellow" }
|
|
"ui.virtual.whitespace" = "base5"
|
|
|
|
"info" = "base8"
|
|
"hint" = "base8"
|
|
|
|
# background color
|
|
"ui.background" = { bg = "base2" }
|
|
"ui.statusline.inactive" = { fg = "base8", bg = "base8x0c" }
|
|
|
|
# status bars, panels, modals, autocompletion
|
|
"ui.statusline" = { bg = "base4" }
|
|
"ui.popup" = { bg = "base3" }
|
|
"ui.window" = { bg = "base3" }
|
|
"ui.help" = { bg = "base3" }
|
|
|
|
# active line, highlighting
|
|
"ui.selection" = { bg = "base4" }
|
|
"ui.cursor.match" = { bg = "base4" }
|
|
|
|
# comments, nord3 based lighter color
|
|
"comment" = { fg = "base5", modifiers = ["italic"] }
|
|
"ui.linenr" = { fg = "base5" }
|
|
|
|
# cursor, variables, constants, attributes, fields
|
|
"ui.cursor.primary" = { fg = "base7", modifiers = ["reversed"] }
|
|
"attribute" = "blue"
|
|
"variable" = "base8"
|
|
"constant" = "orange"
|
|
"variable.builtin" = "red"
|
|
"constant.builtin" = "red"
|
|
"namespace" = "base8"
|
|
|
|
# base text, punctuation
|
|
"ui.text" = { fg = "base8" }
|
|
"punctuation" = "base6"
|
|
|
|
# classes, types, primitives
|
|
"type" = "green"
|
|
"type.builtin" = { fg = "red"}
|
|
"label" = "base8"
|
|
|
|
# declaration, methods, routines
|
|
"constructor" = "blue"
|
|
"function" = "green"
|
|
"function.macro" = { fg = "blue" }
|
|
"function.builtin" = { fg = "cyan" }
|
|
|
|
# operator, tags, units, punctuations
|
|
"operator" = "red"
|
|
"variable.other.member" = "base8"
|
|
|
|
# keywords, special
|
|
"keyword" = { fg = "red" }
|
|
"keyword.directive" = "blue"
|
|
"variable.parameter" = "#f59762"
|
|
|
|
# error
|
|
"error" = { bg = "red", fg = "yellow" }
|
|
|
|
# annotations, decorators
|
|
"special" = "#f59762"
|
|
"module" = "#f59762"
|
|
|
|
# warnings, escape characters, regex
|
|
"warning" = "orange"
|
|
"constant.character.escape" = { fg = "base8" }
|
|
|
|
# strings
|
|
"string" = "yellow"
|
|
|
|
# integer, floating point
|
|
"constant.numeric" = "purple"
|
|
|
|
# vcs
|
|
"diff.plus" = "green"
|
|
"diff.delta" = "orange"
|
|
"diff.minus" = "red"
|
|
|
|
# make diagnostic underlined, to distinguish with selection text.
|
|
diagnostic = { modifiers = ["underlined"] }
|
|
|
|
# markup highlight, no need for `markup.raw` and `markup.list`, make them to be default
|
|
"markup.heading" = "green"
|
|
"markup.bold" = { fg = "orange", modifiers = ["bold"] }
|
|
"markup.italic" = { fg = "orange", modifiers = ["italic"] }
|
|
"markup.link.url" = { fg = "orange", modifiers = ["underlined"] }
|
|
"markup.link.text" = "yellow"
|
|
"markup.quote" = "green"
|
|
|
|
[palette]
|
|
# primary colors
|
|
"red" = "#fc618d"
|
|
"orange" = "#fd9353"
|
|
"yellow" = "#fce566"
|
|
"green" = "#7bd88f"
|
|
"blue" = "#5ad4e6"
|
|
"purple" = "#948ae3"
|
|
# base colors
|
|
"base0" = "#131313"
|
|
"base1" = "#191919"
|
|
"base2" = "#222222"
|
|
"base3" = "#363537"
|
|
"base4" = "#525053"
|
|
"base5" = "#69676c"
|
|
"base6" = "#8b888f"
|
|
"base7" = "#bab6c0"
|
|
"base8" = "#f7f1ff"
|
|
# variants
|
|
"base8x0c" = "#2b2b2b"
|