Skip to content

Commit

Permalink
feat(extras): add MonkeyType theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Aug 13, 2024
1 parent 41b7d84 commit bb53e34
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/astrotheme/extras/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ M.extras = {
kitty = { ext = "conf", url = "https://sw.kovidgoyal.net/kitty/conf.html", label = "Kitty" },
lazygit = { ext = "yml", url = "https://github.com/jesseduffield/lazygit", label = "Lazygit" },
lua = { ext = "lua", url = "https://www.lua.org", label = "Lua Table for testing" },
monkeytype = { ext = "css", url = "https://monkeytype.com", label = "MonkeyType" },
prism = { ext = "js", url = "https://prismjs.com", label = "Prism" },
process_compose = { ext = "yaml", url = "https://f1bonacc1.github.io/process-compose/", label = "process-compose" },
slack = {ext = "txt", url = "https://slack.com", label = "Slack"},
Expand Down
27 changes: 27 additions & 0 deletions lua/astrotheme/extras/monkeytype.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
local util = require "astrotheme.extras"

local M = {}

--- @param colors AstroThemePalette
function M.generate(colors)
return util.template(
[=[
/* ${_style_name} MonkeyType Colors */
:root {
--bg-color: ${ui.base};
--caret-color: ${ui.text};
--main-color: ${ui.accent};
--sub-color: ${syntax.comment};
--sub-alt-color: ${ui.inactive_base};
--text-color: ${syntax.text};
--error-color: ${syntax.red};
--error-extra-color: ${ui.red};
--colorful-error-color: ${syntax.red};
--colorful-error-extra-color: ${ui.red};
}
]=],
colors
)
end

return M

0 comments on commit bb53e34

Please sign in to comment.