Copy-paste a Liquid snippet for product page - Ingredient or materials rows with optional percentage bars - the transparency card DTC brands win on.
Deep hydration, all-day plump
Evens tone and textu
1<div class="gpl-ings" style="--gpl-accent: {{ accent | default: 'rgb(var(--color-button, 21 128 61))' }};">2 {%- assign rows = items | default: 'Aqua|Base ingredient|' | newline_to_br | split: '<br />' -%}3 {%- for row in rows -%}4 {%- assign parts = row | strip | split: '|' -%}5 <div class="gpl-ings__row">6 <div class="gpl-ings__top">7 <span class="gpl-ings__name">{{ parts[0] | strip }}</span>8 {%- if parts[2] != blank -%}9 <span class="gpl-ings__pct">{{ parts[2] | strip }}%</span>10 {%- endif -%}11 </div>12 {%- if parts[1] != blank -%}13 <p class="gpl-ings__desc">{{ parts[1] | strip }}</p>14 {%- endif -%}
Full source is for members
One payment - every snippet, guide and bundle