site/_includes/category-style.html

17 lines
362 B
HTML

<style>
{% assign categories = page.categories %}
{% assign category = site.data.categories[categories.first] %}
code {
color: {{ category.backColor }};
}
pre {
color: {{ category.backColor }}
}
::selection {
background-color: {{ category.backColor }};
color: {{ category.textColor }}
}
</style>