<a href="{{ collection.url }}/{{ tag }}">
<span class="color-swatch__item">
{{-
downcased_value
| replace: ' ', ''
| downcase
-}}
</span>
</a>
就可以了