Adding previews for bundled themes

This commit is contained in:
elvis kahoro 2022-05-05 17:56:06 -04:00
parent d71d997671
commit 4bb9249f6a
21 changed files with 1642 additions and 3 deletions

View file

@ -61,7 +61,8 @@ def gen_svg_for_theme(color_dict: Dict[str, str], svg_template: str) -> str:
output = svg_template
for key, value in color_dict.items():
output = output.replace(f"{{{key}}}", value)
if isinstance(value, str):
output = output.replace(f"{{{key}}}", value)
return output