Is there any way to pass in a variable to a partial?

Hi
I want to pass over “dark” or “light” into my navigation partial, and was wondering is there is a way to pass this via the include? Something like the following…

{% include 'partials/footer.html.twig', 'dark' %}

Which I could then access on the partial page and include in the elements class.

Thanks in advance.
Alan

Hello,

Example find into antimatter theme :

{% include 'partials/blog_item.html.twig' with {'blog':page.parent, 'truncate':false} %}

Into blog_item.html.twig

  <a href="{{ blog.url|rtrim('/') }}/tag{{ config.system.param_sep }},{{ tag }}" class="p-category">{{ tag }}</a>

Hope that could help.