{# This is where user-provided CSS variables get converted into actual values. #} {% macro declare_css_variables(user_customisations, pygments_theme) -%} --color-code-background: {{ pygments_theme.background }}; --color-code-foreground: {{ pygments_theme.foreground }}; {% if user_customisations -%} {% for name, value in user_customisations.items() -%} --{{ name }}: {{ value }}; {% endfor %} {%- endif %} {%- endmacro %}