Skip to content

Commit

Permalink
Add yo themes (#11703)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmcc3 authored Nov 20, 2024
1 parent 6ec510d commit 07262f5
Show file tree
Hide file tree
Showing 3 changed files with 190 additions and 0 deletions.
125 changes: 125 additions & 0 deletions runtime/themes/yo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# Author: Michael McClintock <[email protected]>
# License: MIT

# Yo - Themes for Helix inspired by Zenbones & Alabaster with Radix Colors.
# https://github.com/mrmcc3/yo-theme-helix

# background/text
"ui.background" = { fg = "p11", bg = "p2" }
"ui.background.separator" = { fg = "p7" }
"ui.text" = { fg = "p11" }
"ui.text.focus" = { fg = "p12", modifiers = ["bold"] }

# popups/menus
"ui.window" = { fg = "p7" }
"ui.popup" = { fg = "p12", bg = "p4" }
"ui.popup.info" = { fg = "p12", bg = "p2" }
"ui.text.info" = { fg = "p12", bg = "p2" }
"ui.help" = { fg = "p12", bg = "p2" }
"ui.menu" = { fg = "p11", bg = "p4" }
"ui.menu.selected" = { fg = "p12", modifiers = ["bold"] }
"ui.menu.scroll" = { fg = "p8", bg = "p4" }
"ui.picker.header.column" = { underline.style = "line" }

# cursor/selection
"ui.cursor" = { fg = "p2", bg = "p11" }
"ui.cursor.insert" = { fg = "p2", bg = "keyword" }
"ui.cursor.select" = { fg = "p2", bg = "p12" }
"ui.cursor.match" = { fg = "p12", modifiers = ["bold"] }
"ui.cursor.primary" = { fg = "p2", bg = "p11", modifiers = ["bold"] }
"ui.cursor.primary.insert" = { fg = "p2", bg = "keyword", modifiers = ["bold"] }
"ui.cursor.primary.select" = { fg = "p2", bg = "p12", modifiers = ["bold"] }
"ui.selection" = { bg = "p4" }
"ui.selection.primary" = { bg = "p5" }
"ui.cursorline.primary" = { bg = "p3" }
"ui.cursorcolumn.primary" = { bg = "p3" }

# line numbers / diff
"ui.linenr" = { fg = "p7" }
"ui.linenr.selected" = { fg = "p11" }
diff = { fg = "p8" }

# bufferline/statusline
"ui.bufferline" = { fg = "p11", bg = "p4" }
"ui.bufferline.active" = { fg = "p2", bg = "p11" }
"ui.statusline" = { fg = "p11", bg = "p4" }
"ui.statusline.inactive" = { fg = "p11", bg = "p2" }
"ui.statusline.normal" = { fg = "p2", bg = "p11" }
"ui.statusline.insert" = { fg = "p2", bg = "keyword" }
"ui.statusline.select" = { fg = "p2", bg = "p12" }
"ui.statusline.separator" = { fg = "p7" }

# virtual
"ui.virtual" = { fg = "p6" }
"ui.virtual.ruler" = { bg = "p3" }
"ui.virtual.inlay-hint" = { fg = "p7", underline.style = "dotted" }
"ui.virtual.jump-label" = { fg = "p12", modifiers = [
"bold",
], underline = { style = "curl", color = "info" } }

# diagnostics
error = { fg = "error", modifiers = ["bold"] }
warning = { fg = "warning", modifiers = ["bold"] }
info = { fg = "info", modifiers = ["bold"] }
hint = { fg = "info", modifiers = ["bold"] }
"diagnostic.error" = { fg = "error", modifiers = ["bold"] }
"diagnostic.warning" = { fg = "warning", modifiers = ["bold"] }
"diagnostic.info" = { fg = "info", modifiers = ["bold"] }
"diagnostic.hint" = { fg = "info", modifiers = ["bold"] }
# "diagnostic.unnecessary" = {}
# "diagnostic.deprecated" = {}

# code
comment = { fg = "info" }
keyword = { fg = "keyword" }
operator = { fg = "keyword" }
string = { fg = "string" }
constant = { fg = "constant" }
"string.special.symbol" = { fg = "constant" }
variable = { fg = "p10" }
namespace = { fg = "p10" }
punctuation = { fg = "p9" }
"punctuation.delimiter" = { fg = "p8" }
function = { fg = "p11" }
attribute = { fg = "p10" }
tag = { fg = "keyword" }
label = { fg = "p12" }
constructor = { fg = "p12" }
type = { fg = "p12" }

# markup
"markup.bold" = { modifiers = ["bold"] }
"markup.italic" = { modifiers = ["italic"] }
"markup.strikethrough" = { modifiers = ["crossed_out"] }
"markup.heading" = { fg = "p12", modifiers = ["bold"] }
"markup.heading.marker" = { fg = "p8" }
"markup.list" = { fg = "p8" }
"markup.link.url" = { underline.style = "line" }
"markup.link.label" = { underline.style = "dotted" }
# "markup.link.text" = {}
"markup.quote" = { fg = "p10" }
# "markup.raw" = {}

[palette] # https://www.radix-ui.com/colors

# grayDark
p1 = "#111111"
p2 = "#191919"
p3 = "#222222"
p4 = "#2a2a2a"
p5 = "#313131"
p6 = "#3a3a3a"
p7 = "#484848"
p8 = "#606060"
p9 = "#6e6e6e"
p10 = "#7b7b7b"
p11 = "#b4b4b4"
p12 = "#eeeeee"

error = "#ec5d5e" # redDark-10
warning = "#ff801f" # orangeDark-10
info = "#3b9eff" # blueDark-10

string = "#33b074" # greenDark-10
constant = "#9a5cd0" # purpleDark-10
keyword = "#ae8c7e" # bronzeDark-10
31 changes: 31 additions & 0 deletions runtime/themes/yo_berry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Author: Michael McClintock <[email protected]>
# License: MIT

# Yo - Themes for Helix inspired by Zenbones & Alabaster with Radix Colors.
# https://github.com/mrmcc3/yo-theme-helix

inherits = "yo"

[palette]

# mauveDark
p1 = "#121113"
p2 = "#1a191b"
p3 = "#232225"
p4 = "#2b292d"
p5 = "#323035"
p6 = "#3c393f"
p7 = "#49474e"
p8 = "#625f69"
p9 = "#6f6d78"
p10 = "#7c7a85"
p11 = "#b5b2bc"
p12 = "#eeeef0"

error = "#ee518a" # crimsonDark-10
warning = "#ffff57" # yellowDark-10
info = "#3b9eff" # blueDark-10

string = "#0eb39e" # teal-10
constant = "#b658c4" # plum-10
keyword = "#9eb1ff" # indigo-11
34 changes: 34 additions & 0 deletions runtime/themes/yo_light.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Author: Michael McClintock <[email protected]>
# License: MIT

# Yo - Themes for Helix inspired by Zenbones & Alabaster with Radix Colors.
# https://github.com/mrmcc3/yo-theme-helix

inherits = "yo"

"ui.virtual.inlay-hint" = { fg = "p8", underline.style = "dotted" }
"markup.quote" = { fg = "p9" }

[palette]

# gray
p1 = "#fcfcfc"
p2 = "#f9f9f9"
p3 = "#f0f0f0"
p4 = "#e8e8e8"
p5 = "#e0e0e0"
p6 = "#d9d9d9"
p7 = "#cecece"
p8 = "#bbbbbb"
p9 = "#8d8d8d"
p10 = "#838383"
p11 = "#646464"
p12 = "#202020"

error = "#dc3e42" # red-10
warning = "#ef5f00" # orange-10
info = "#0588f0" # blue-10

string = "#2b9a66" # green-10
constant = "#8347b9" # purple-10
keyword = "#957468" # bronze-10

0 comments on commit 07262f5

Please sign in to comment.