Skip to content

Commit

Permalink
Adding two themes using only colors from 16-color terminal themes (he…
Browse files Browse the repository at this point in the history
…lix-editor#9477)

* adding 16-color terminal themes

* minor consistency update

* minor consistency update

* rename to be more consistent with other helix theme name conventions

* fixing improper theme inherits name
  • Loading branch information
dgkf authored and mtoohey31 committed Jun 2, 2024
1 parent 0d9cc6b commit a7cbd1e
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 0 deletions.
80 changes: 80 additions & 0 deletions runtime/themes/term16_dark.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Author: dgkf

"ui.background" = { }
"ui.background.separator" = { fg = "red" }
"ui.cursor" = { fg = "light-gray", modifiers = ["reversed"] }
"ui.cursor.match" = { fg = "light-yellow", modifiers = ["reversed"] }
"ui.cursor.primary" = { fg = "light-gray", modifiers = ["reversed"] }
"ui.cursor.secondary" = { fg = "gray", modifiers = ["reversed"] }
"ui.cursorline.primary" = { bg = "black" }
"ui.gutter" = { }
"ui.gutter.selected" = { bg = "black" }
"ui.help" = { fg = "white", bg = "black" }
"ui.linenr" = { fg = "gray", modifiers = ["bold"] }
"ui.linenr.selected" = { fg = "white", modifiers = ["bold"] }
"ui.menu" = { fg = "light-gray", bg = "gray" }
"ui.menu.selected" = { modifiers = ["reversed"] }
"ui.menu.scroll" = { fg = "light-blue" }
"ui.popup" = { bg = "black" }
"ui.selection" = { bg = "gray" }
"ui.statusline" = { fg = "light-gray", bg = "gray" }
"ui.statusline.inactive" = { bg = "black" }
"ui.virtual" = { bg = "black" }
"ui.virtual.indent-guide" = { fg = "gray" }
"ui.virtual.whitespace" = {}
"ui.virtual.wrap" = { fg = "gray" }
"ui.virtual.inlay-hint" = { fg = "light-gray", modifiers = ["dim", "italic"] }
"ui.virtual.inlay-hint.parameter" = { fg = "yellow", modifiers = ["dim", "italic"] }
"ui.virtual.inlay-hint.type" = { fg = "blue", modifiers = ["dim", "italic"] }
"ui.window" = { fg = "gray", modifiers = ["dim"] }

"comment" = { fg = "light-gray", modifiers = ["italic", "dim"] }

"attribute" = "light-yellow"
"constant" = { fg = "light-yellow", modifiers = ["bold", "dim"] }
"constant.numeric" = "light-yellow"
"constant.character.escape" = "light-cyan"
"constructor" = "light-blue"
"function" = "light-blue"
"function.macro" = "light-red"
"function.builtin" = { fg = "light-blue", modifiers = ["bold"] }
"tag" = { fg = "light-magenta", modifiers = ["dim"] }
"type" = "blue"
"type.builtin" = { fg = "blue", modifiers = ["bold"] }
"type.enum.variant" = { fg = "light-magenta", modifiers = ["dim"] }
"string" = "light-green"
"special" = "light-red"
"variable" = "white"
"variable.parameter" = { fg = "light-yellow", modifiers = ["italic"] }
"variable.other.member" = "light-green"
"keyword" = "light-magenta"
"keyword.control.exception" = "light-red"
"keyword.directive" = { fg = "light-yellow", modifiers = ["bold"] }
"keyword.operator" = { fg = "light-blue", modifiers = ["bold"] }
"label" = "light-green"
"namespace" = { fg = "blue", modifiers = ["dim"] }

"markup.heading" = "light-blue"
"markup.list" = "light-red"
"markup.bold" = { fg = "light-cyan", modifiers = ["bold"] }
"markup.italic" = { fg = "light-blue", modifiers = ["italic"] }
"markup.strikethrough" = { modifiers = ["crossed_out"] }
"markup.link.url" = { fg = "magenta", modifiers = ["dim"] }
"markup.link.text" = "light-magenta"
"markup.quote" = "light-cyan"
"markup.raw" = "light-green"

"diff.plus" = "light-green"
"diff.delta" = "light-yellow"
"diff.minus" = "light-red"

"diagnostic.hint" = { underline = { color = "gray", style = "curl" } }
"diagnostic.info" = { underline = { color = "light-cyan", style = "curl" } }
"diagnostic.warning" = { underline = { color = "light-yellow", style = "curl" } }
"diagnostic.error" = { underline = { color = "light-red", style = "curl" } }

"info" = "light-cyan"
"hint" = { fg = "light-gray", modifiers = ["dim"] }
"debug" = "white"
"warning" = "yellow"
"error" = "light-red"
85 changes: 85 additions & 0 deletions runtime/themes/term16_light.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Author: dgkf
# Modified from base16_terminal, Author: NNB <nnbnh@protonmail.com>

inherits = "term16_dark"

"ui.background.separator" = "light-gray"
"ui.cursor" = { fg = "gray", modifiers = ["reversed"] }
"ui.cursor.match" = { fg = "yellow", modifiers = ["reversed"] }
"ui.cursor.primary" = { fg = "black", modifiers = ["reversed"] }
"ui.cursor.secondary" = { fg = "gray", modifiers = ["reversed"] }
"ui.cursorline.primary" = { bg = "white" }
"ui.cursorline.secondary" = { bg = "white" }
"ui.cursorcolumn.primary" = { bg = "white" }
"ui.cursorcolumn.secondary" = { bg = "white" }
"ui.gutter" = { }
"ui.gutter.selected" = { bg = "white" }
"ui.linenr" = { fg = "gray", modifiers = ["dim"] }
"ui.linenr.selected" = { fg = "black", modifiers = ["bold"] }
"ui.menu" = { bg = "light-gray" }
"ui.menu.selected" = { fg = "white", bg = "gray", modifiers = ["bold"] }
"ui.menu.scroll" = { fg = "light-blue" }
"ui.help" = { }
"ui.text" = { }
"ui.text.focus" = { }
"ui.popup" = { bg = "white" }
"ui.selection" = { bg = "light-gray" }
"ui.statusline" = { bg = "white" }
"ui.statusline.inactive" = { fg = "gray", modifiers = ["underlined"] }
"ui.statusline.insert" = { fg = "white", bg = "blue" }
"ui.statusline.select" = { fg = "white", bg = "magenta" }
"ui.virtual" = { fg = "light-gray" }
"ui.virtual.indent-guide" = { fg = "light-gray", modifiers = ["dim"] }
"ui.virtual.ruler" = { bg = "white" }
"ui.virtual.wrap" = { fg = "light-gray" }
"ui.window" = { fg = "gray", modifiers = ["dim"] }

"comment" = { fg = "gray", modifiers = ["italic", "dim"] }

"attribute" = "yellow"
"constant" = { fg = "yellow", modifiers = ["bold"] }
"constant.numeric" = { fg = "yellow", modifiers = ["bold"] }
"constant.character.escape" = "blue"
"constructor" = "blue"
"function" = "blue"
"function.builtin" = { fg = "blue", modifiers = ["bold"] }
"tag" = { fg = "magenta", modifiers = ["dim"] }
"type" = "blue"
"type.builtin" = { fg = "blue", modifiers = ["bold"] }
"type.enum.variant" = { fg = "magenta", modifiers = ["dim"] }
"string" = "green"
"special" = "red"
"variable" = { fg = "black", modifiers = ["dim"] }
"variable.parameter" = { fg = "red", modifiers = ["italic", "dim"] }
"variable.other.member" = "green"
"keyword" = "magenta"
"keyword.control.exception" = "red"
"keyword.directive" = { fg = "yellow", modifiers = ["bold"] }
"keyword.operator" = { fg = "blue", modifiers = ["bold"] }
"label" = "red"
"namespace" = { fg = "blue", modifiers = ["dim"] }

"markup.heading" = { fg = "blue", modifiers = ["bold"] }
"markup.list" = "red"
"markup.bold" = { fg = "cyan", modifiers = ["bold"] }
"markup.italic" = { fg = "blue", modifiers = ["italic"] }
"markup.strikethrough" = { modifiers = ["crossed_out"] }
"markup.link.url" = { fg = "magenta", modifiers = ["dim"] }
"markup.link.text" = { fg = "magenta", modifiers = ["bold"] }
"markup.quote" = "cyan"
"markup.raw" = "blue"

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

"diagnostic.hint" = { underline = { color = "cyan", style = "curl" } }
"diagnostic.info" = { underline = { color = "blue", style = "curl" } }
"diagnostic.warning" = { underline = { color = "yellow", style = "curl" } }
"diagnostic.error" = { underline = { color = "red", style = "curl" } }

"hint" = "cyan"
"info" = "blue"
"debug" = "light-yellow"
"warning" = "yellow"
"error" = "red"

0 comments on commit a7cbd1e

Please sign in to comment.