{% set colors = ['red','orange','yellow','green','blue','indigo','violet'] %}
<div>
<div class="title-state-div"><h4>Couleurs</h4><span class="toggle-btn-3" id="button-div" onclick="toggleDiv('div-color-bar', 'toggle-btn-3')">-</span></div>
<div class="div-color-bar">
<div class="" id="sylius_product_color">
{% for color in colors %}
<div class="div-color">
<input type="checkbox" name="color-product[]" value="{{ color}}" id="{{ color}}" class="product_color">
<div class="big-point" style="border: 0.15rem solid {{ color }}">
</div>
<div class="litle-point" style="background-color: {{ color }}" >
<svg width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4 9.4L0 5.4L1.4 4L4 6.6L10.6 0L12 1.4L4 9.4Z" fill="white"/>
</svg>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
<style>
/*.div-color{*/
/* margin: 0 1rem;*/
/* position: relative;*/
/* height: 4rem;*/
/*}*/
/*.big-point {*/
/* display: none;*/
/* width: 4rem;*/
/* height: 4rem;*/
/* border-radius: 50%;*/
/* background-color: transparent;*/
/* z-index: 1;*/
/* position: absolute;*/
/* top: 0;*/
/*}*/
/*.div-color .litle-point {*/
/* width: 3rem;*/
/* height: 3rem;*/
/* z-index: 2;*/
/* position: absolute;*/
/* top: 0.5rem;*/
/* left: 0.5rem;*/
/* border-radius: 50%;*/
/* display: flex;*/
/* align-items: center;*/
/* justify-content: center;*/
/*}*/
/*.div-color .litle-point > svg {*/
/* width: 1.5rem;*/
/* height: 1.5rem;*/
/* display: none;*/
/*}*/
/*.div-color input[type=checkbox]:checked ~ .litle-point > svg {*/
/* display: block;*/
/*}*/
/*.div-color input[type=checkbox]:checked ~ .big-point {*/
/* display: block;*/
/*}*/
/*.div-color input[type=checkbox] {*/
/* z-index: 3;*/
/* cursor: pointer;*/
/* position: absolute;*/
/* top: 0.5rem;*/
/* left: 0.5rem;*/
/*}*/
/*.product_color{*/
/* -webkit-appearance: none;*/
/* !*padding: 10px;*!*/
/* border-radius: 2rem;*/
/* display: inline-block;*/
/* position: relative;*/
/* height: 3rem;*/
/* width: 3rem;*/
/* !*border: 5px solid transparent;*!*/
/*}*/
/*#sylius_product_color{*/
/* display: flex;*/
/* flex-direction: row;*/
/* gap: 1rem 2.5rem;*/
/* flex-wrap: wrap;*/
/*}*/
</style>