Skip to content

Commit f1e8bb6

Browse files
committed
fix(extras): move to a more usable version of delivering MonkeyType themes
1 parent fb86b47 commit f1e8bb6

File tree

6 files changed

+10
-69
lines changed

6 files changed

+10
-69
lines changed

extras/monkeytype/astrodark.css

Lines changed: 0 additions & 16 deletions
This file was deleted.

extras/monkeytype/astrojupiter.css

Lines changed: 0 additions & 16 deletions
This file was deleted.

extras/monkeytype/astrolight.css

Lines changed: 0 additions & 16 deletions
This file was deleted.

extras/monkeytype/astromars.css

Lines changed: 0 additions & 16 deletions
This file was deleted.

lua/astrotheme/extras/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ M.extras = {
2626
kitty = { ext = "conf", url = "https://sw.kovidgoyal.net/kitty/conf.html", label = "Kitty" },
2727
lazygit = { ext = "yml", url = "https://github.com/jesseduffield/lazygit", label = "Lazygit" },
2828
lua = { ext = "lua", url = "https://www.lua.org", label = "Lua Table for testing" },
29-
monkeytype = { ext = "css", url = "https://monkeytype.com", label = "MonkeyType" },
29+
monkeytype = { ext = "md", url = "https://monkeytype.com", label = "MonkeyType" },
3030
prism = { ext = "js", url = "https://prismjs.com", label = "Prism" },
3131
process_compose = { ext = "yaml", url = "https://f1bonacc1.github.io/process-compose/", label = "process-compose" },
3232
slack = {ext = "txt", url = "https://slack.com", label = "Slack"},

lua/astrotheme/extras/monkeytype.lua

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ local M = {}
66
function M.generate(colors)
77
-- build the color palette
88
local monkeytype_colors = {
9+
name = colors._style_name,
910
bg = colors.ui.base,
1011
main = colors.ui.accent,
1112
caret = colors.ui.text,
@@ -34,10 +35,13 @@ function M.generate(colors)
3435
})
3536
return util.template(
3637
[=[
37-
/* ${_style_name} MonkeyType Colors */
38-
/* Apply the theme easily with the link below
39-
* https://monkeytype.com?customTheme=${encoded}
40-
*/
38+
# ${name} MonkeyType Theme
39+
40+
[Click here to apply ${name} in MonkeyType](https://monkeytype.com?customTheme=${encoded})
41+
42+
Here is the CSS that gets applied when clicking the link above:
43+
44+
```css
4145
:root {
4246
--bg-color: ${bg};
4347
--main-color: ${main};
@@ -50,6 +54,7 @@ function M.generate(colors)
5054
--colorful-error-color: ${colorful_error};
5155
--colorful-error-extra-color: ${colorful_error_extra};
5256
}
57+
```
5358
]=],
5459
monkeytype_colors
5560
)

0 commit comments

Comments
 (0)