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,
|
|
|
|
'lemoncurry', 'static',
|
|
|
|
'base16-materialtheme-scheme', 'material-darker.yaml',
|
|
|
|
)
|
|
|
|
with open(path, 'r') as f:
|
|
|
|
theme = safe_load(f)
|
2017-10-28 00:05:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
def color(i):
|
|
|
|
return '#' + theme['base0' + format(i, '1X')]
|