diff --git a/lua/astrotheme/extras/init.lua b/lua/astrotheme/extras/init.lua index 34d4c1e..33a665a 100644 --- a/lua/astrotheme/extras/init.lua +++ b/lua/astrotheme/extras/init.lua @@ -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"}, diff --git a/lua/astrotheme/extras/monkeytype.lua b/lua/astrotheme/extras/monkeytype.lua new file mode 100644 index 0000000..36d3369 --- /dev/null +++ b/lua/astrotheme/extras/monkeytype.lua @@ -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