{% set variant_styles = [] %}
{% set variant_styles = color ? variant_styles|merge(['--color: var(--color-' ~ color ~ ');']) : variant_styles %}
{% set icon_path = icon_path is not empty ? icon_path : 'icons.svg' %}
{% set classes = [
  'icon-wrapper',
] %}

<div class="{{ classes|join(' ') }}" style="{{ variant_styles|join(' ') }}">
  <svg viewBox="0 0 100 100" class="icon">
    <use xlink:href="{{ icon_path }}#{{ icon }}"></use>
  </svg>
</div>
