2017-10-27 23:29:07 -04:00
|
|
|
from django.conf import settings
|
|
|
|
from os.path import join
|
|
|
|
from yaml import safe_load
|
|
|
|
|
|
|
|
path = join(
|
|
|
|
settings.BASE_DIR,
|
2023-08-10 02:52:37 -04:00
|
|
|
"lemoncurry",
|
|
|
|
"static",
|
|
|
|
"base16-materialtheme-scheme",
|
|
|
|
"material-darker.yaml",
|
2017-10-27 23:29:07 -04:00
|
|
|
)
|
2023-08-10 02:52:37 -04:00
|
|
|
with open(path, "r") as f:
|
2017-10-27 23:29:07 -04:00
|
|
|
theme = safe_load(f)
|
2017-10-28 00:05:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
def color(i):
|
2023-08-10 02:52:37 -04:00
|
|
|
return "#" + theme["base0" + format(i, "1X")]
|