Skip to content

Commit

Permalink
add flexoki theme (helix-editor#10002)
Browse files Browse the repository at this point in the history
* add flexoki theme

* change ruler color to bg-2
  • Loading branch information
ftqo authored and postsolar committed Apr 20, 2024
1 parent d90bfa2 commit d66ad43
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 0 deletions.
20 changes: 20 additions & 0 deletions runtime/themes/flexoki_dark.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
inherits = "flexoki_light"

[palette]
tx = "#CECDC3"
tx-2 = "#878580"
tx-3 = "#575653"
ui-3 = "#403E3C"
ui-2 = "#343331"
ui = "#282726"
bg-2 = "#1C1B1A"
bg = "#100F0F"

re = "#D14D41"
or = "#DA702C"
ye = "#D0A215"
gr = "#879A39"
cy = "#3AA99F"
bl = "#4385BE"
pu = "#8B7EC8"
ma = "#CE5D97"
96 changes: 96 additions & 0 deletions runtime/themes/flexoki_light.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Based on Flexoki: https://stephango.com/flexoki

"ui.background" = { bg = "bg" }
"ui.cursor" = { fg = "tx", bg = "tx-3" }
"ui.cursor.primary" = { fg = "bg", bg = "tx" }
"ui.cursor.match" = { modifiers = ["bold"] }
"ui.linenr" = "tx-3"
"ui.linenr.selected" = "tx"
"ui.selection" = { bg = "ui-2" }
"ui.statusline" = { fg = "tx", bg = "bg-2" }
"ui.statusline.normal" = { fg = "bg", bg = "bl" }
"ui.statusline.insert" = { fg = "bg", bg = "or" }
"ui.statusline.select" = { fg = "bg", bg = "ma" }
"ui.cursorline" = { bg = "bg-2" }
"ui.popup" = { fg = "tx", bg = "bg-2" }
"ui.window" = "tx"
"ui.help" = { fg = "tx", bg = "bg" }
"ui.text" = "tx"
"ui.text.focus" = { bg = "bg-2", fg = "tx" }
"ui.text.info" = "tx"
"ui.virtual.whitespace" = "bg-2"
"ui.virtual.ruler" = { bg = "bg-2" }
"ui.virtual.inlay-hint" = { fg = "tx-3", bg = "bg" }
"ui.virtual.jump-label" = { bg = "bg-2", modifiers = ["bold"]}
"ui.menu" = { fg = "tx", bg = "bg" }
"ui.menu.selected" = { bg = "ui", fg = "tx" }
"ui.debug" = { fg = "or", bg = "bg" }
"ui.highlight.frameline" = { bg = "ye" }
"diagnostic.hint" = { underline = { color = "bl", style = "curl" } }
"diagnostic.info" = { underline = { color = "bl", style = "curl" } }
"diagnostic.warning" = { underline = { color = "ye", style = "curl" } }
"diagnostic.error" = { underline = { color = "re", style = "curl" } }
"hint" = { fg = "bl", modifiers = ["bold"] }
"info" = { fg = "ye", modifiers = ["bold"] }
"warning" = { fg = "or", modifiers = ["bold"] }
"error" = { fg = "re", modifiers = ["bold"] }

"attribute" = "ye"
"type" = "ye"
"constructor" = "gr"
"constant" = "pu"
"constant.builtin" = "ye"
"string" = "cy"
"string.regexp" = "or"
"string.special" = "ye"
"comment" = "tx-3"
"variable" = "tx"
"variable.builtin" = "ma"
"variable.other" = "bl"
"punctuation" = "tx-2"
"keyword" = "gr"
"keyword.control" = "re"
"keyword.control.conditional" = "gr"
"keyword.control.import" = "ye"
"keyword.control.return" = "gr"
"keyword.function" = "gr"
"keyword.storage.type" = "bl"
"keyword.storage.modifier" = "bl"
"operator" = "tx-2"
"function" = "or"
"tag" = "bl"
"namespace" = "re"

"markup.heading" = "or"
"markup.list" = "ye"
"markup.bold" = { fg = "or", modifiers = ["bold"] }
"markup.italic" = { fg = "or", modifiers = ["italic"] }
"markup.strikethrough" = { modifiers = ["crossed_out"] }
"markup.raw.block" = "or"
"markup.link.url" = "bl"
"markup.link.text" = "ye"
"markup.link.label" = "gr"
"markup.quote" = "ye"
"markup.raw" = "bl"
"diff.plus" = "gr"
"diff.minus" = "re"
"diff.delta" = "ye"

[palette]
tx = "#100F0F"
tx-2 = "#6F6E69"
tx-3 = "#B7B5AC"
ui-3 = "#CECDC3"
ui-2 = "#DAD8CE"
ui = "#E6E4D9"
bg-2 = "#F2F0E5"
bg = "#FFFCF0"

re = "#AF3029"
or = "#BC5215"
ye = "#AD8301"
gr = "#66800B"
cy = "#24837B"
bl = "#205EA6"
pu = "#5E409D"
ma = "#A02F6F"

0 comments on commit d66ad43

Please sign in to comment.