2020-09-06 18:28:24 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import _theme as theme
|
|
|
|
import os
|
|
|
|
|
|
|
|
with open(os.path.join(os.path.dirname(__file__), "prismjs-theme-src.css")) as f:
|
2021-04-26 07:11:02 +00:00
|
|
|
css_src = f.read()
|
2020-09-06 18:28:24 +00:00
|
|
|
|
|
|
|
for var_name, color in theme.css_variables.items():
|
2021-04-26 07:11:02 +00:00
|
|
|
css_src = css_src.replace("var(--{}{})".format(theme.css_variables_prefix, var_name), color)
|
2020-09-06 18:28:24 +00:00
|
|
|
|
|
|
|
print(css_src)
|