Skip to content

Commit

Permalink
theme: Add Theme poimandres (helix-editor#8759)
Browse files Browse the repository at this point in the history
* theme: Add Theme poimandres

* theme: inherit `poimandres_storm` from `poimandres` with minor tweaks

* fix(theme): rename `crossed-out` to `crossed_out`

* fix(theme:poimandres): improve contrast of selection color for regular variant
  • Loading branch information
that-ambuj authored Nov 12, 2023
1 parent 172ef2f commit 23fea46
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 0 deletions.
113 changes: 113 additions & 0 deletions runtime/themes/poimandres.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# Author: Ambuj Kumar <[email protected]>
# Ported from: https://github.com/drcmda/poimandres-theme

attribute = { fg = "desaturatedBlue", modifiers = ["italic"] }
keyword = "brightMint"
"keyword.directive" = "gray"
"keyword.storage.type" = "desaturatedBlue"
"keyword.storage.modifier" = "lowerMint"
"keyword.other" = "brightMint"
"keyword.operator" = "desaturatedBlue"
namespace = "lightBlue"
punctuation = "gray"
"punctuation.bracket" = "desaturatedBlue"
operator = "desaturatedBlue"
special = "desaturatedBlue"
variable = "offWhite"
"variable.parameter" = { fg = "offWhite" }
"variable.builtin" = { fg = "lightBlue", modifiers = ["italic"] }
"variable.other" = "offWhite"
type = { fg = "gray.c0" }
"type.builtin" = { fg = "desaturatedBlue" }
constructor = "lightBlue"
function = "lightBlue"
"function.method" = { fg = "lightBlue" }
tag = "brightMint"
comment = { fg = "darkerGray.b0", modifiers = ["italic"] }
constant = "brightMint"
"constant.character.escape" = { fg = "offWhite" }
"constant.numeric" = { fg = "brightMint" }
"constant.builtin" = { fg = "hotRed" }
label = { fg = "gray.c0" }
string = { fg = "brightMint" }

# Markup
"markup.heading" = { fg = "brightMint" }
"markup.bold" = { fg = "bluishGrayBrighter", modifiers = ["bold"] }
"markup.italic" = { fg = "bluishGrayBrighter", modifiers = ["italic"] }
"markup.strikethrough" = { modifiers = ["italic", "crossed_out"] }

# UI
"markup.link.url" = { fg = "lightBlue", modifiers = ["underlined"] }
"markup.link.text" = { fg = "lightBlue", modifiers = ["underlined"] }
"markup.raw" = { fg = "lightBlue" }

"ui.background" = { bg = "bg" }
"ui.background.separator" = { fg = "darkerGray" }
"ui.linenr" = "darkerGray.50"
"ui.linenr.selected" = "offWhite"
"ui.cursor" = { bg = "gray", fg = "bg" }
"ui.cursor.match" = { bg = "focus" }
"ui.cursorline" = { bg = "#242837" }

"ui.popup" = { bg = "#20232d" }
"ui.window" = "gray"

"ui.text" = "gray"
"ui.text.focus" = { fg = "offWhite", bg = "focus", modifiers = ["bold"] }
"ui.text.inactive" = "darkerGray"
"ui.virtual" = { fg = "darkerGray.b0" }
"ui.virtual.indent-guide" = "#303442"

"ui.selection" = { bg = "focus" }
"ui.selection.primary" = { bg = "selection" }

"ui.menu" = { fg = "offWhite", bg = "bg" }
"ui.menu.selected" = { fg = "bg", bg = "gray" }
"ui.menu.scroll" = { fg = "gray", bg = "bg" }

"ui.statusline" = { fg = "offWhite", bg = "selection" }
"ui.statusline.inactive" = { fg = "lightBlue", bg = "bg" }
"ui.statusline.normal" = { bg = "lightBlue", fg = "bg", modifiers = ["bold"] }
"ui.statusline.insert" = { bg = "brightMint", fg = "bg", modifiers = ["bold"] }
"ui.statusline.select" = { bg = "hotRed", fg = "bg", modifiers = ["bold"] }

"diagnostic.hint" = { underline = { color = "lowerMint", style = "curl" } }
"diagnostic.info" = { underline = { color = "lightBlue", style = "curl" } }
"diagnostic.warning" = { underline = { color = "brightYellow", style = "curl" } }
"diagnostic.error" = { underline = { color = "hotRed", style = "curl" } }

hint = "lowerMint"
info = "lightBlue"
warning = "brightYellow"
error = "hotRed"

# Version Control
"diff.plus" = "lowerMint"
"diff.minus" = "hotRed"
"diff.delta" = "lightBlue"

[palette]
brightYellow = "#fffac2"
brightMint = "#5DE4c7"
lowerMint = "#5fb3a1"
blueishGreen = "#42675A"
lowerBlue = "#89ddff"
lightBlue = "#ADD7FF"
desaturatedBlue = "#91B4D5"
bluishGrayBrighter = "#7390AA"
hotRed = "#d0679d"
pink = "#f087bd"
gray = "#a6accd"
"gray.c0" = "#98a0c2"
darkerGray = "#767c9d"
"darkerGray.50" = "#404559"
"darkerGray.b0" = "#6c7494"
bluishGray = "#506477"
focus = "#303340"
bg = "#1b1e28"
offWhite = "#e4f0fb"
selection = "#30354a"
white = "#ffffff"
black = "#000000"
transparent = "#00000000"
19 changes: 19 additions & 0 deletions runtime/themes/poimandres_storm.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Author: Ambuj Kumar <[email protected]>
# Ported from: https://github.com/drcmda/poimandres-theme

inherits = "poimandres"

"ui.cursorline" = { bg = "#303747" }
"ui.popup" = { bg = "#2a303c" }
"ui.virtual.indent-guide" = "#3a4151"

[palette]
"gray.c0" = "#98a2c4"
darkerGray = "#868cad"
"darkerGray.50" = "#4f576d"
"darkerGray.b0" = "#818cae"
bluishGray = "#607487"
focus = "#404350"
bg = "#252b37"
selection = "#3d455c"
black = "#101010"

0 comments on commit 23fea46

Please sign in to comment.