Unlock every premium block and template with All-Access from $20 / 3 months, cancel anytime. Get All-Access
All blocks
Free Products

Lustrae Products

A products block extracted from the Lustrae template, available in Tailwind CSS.

0 7
Lustrae Products preview

Download Codebase

Commercial License

Free download · up to 5 blocks per day. Unlimited with All-Access

lustrae.html
<!DOCTYPE html>
<html lang="en">
<head>
  <script>
    window.FontAwesomeConfig = { autoReplaceSvg: 'nest' };
  </script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Lustrae Products | Tailwind CSS UI Block</title>
  <meta name="description" content="A products block extracted from the Lustrae template, available in Tailwind CSS.">
  <meta name="keywords" content="Lustrae, Tailwind CSS template, HTML website template, ecommerce template, hair care shop, beauty store, shampoo, hair oil, routine builder, product page, shopping cart">
  <meta name="author" content="Let's templates">
  <link rel="canonical" href="">

  <meta property="og:type" content="product">
  <meta property="og:site_name" content="Let's templates">
  <meta property="og:locale" content="en_US">
  <meta property="og:url" content="">
  <meta property="og:title" content="Lustrae | Tailwind CSS E-commerce Template">
  <meta property="og:description" content="A lavender Tailwind CSS hair care store template with a routine builder, ingredient switcher, product grid, product pages and a working cart.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Lustrae template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Lustrae | Tailwind CSS E-commerce Template">
  <meta name="twitter:description" content="A lavender Tailwind CSS hair care store template with a routine builder, ingredient switcher, product grid, product pages and a working cart.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Lustrae template preview">
  <script src="https://cdn.tailwindcss.com/3.4.17"></script>
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link href="https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: { lilac: { DEFAULT: '#f1effc', deep: '#d9d6f7' }, peri: { DEFAULT: '#6f6bd1', deep: '#5753b8' }, ember: { DEFAULT: '#f0732a', deep: '#d95f18' }, peach: '#f2a27a', sage: '#b8cdbf', sand: '#ecd9c6', night: '#1c1b2e', ink: '#17171f' },
          fontFamily: { sans: ['"Schibsted Grotesk"', 'sans-serif'] }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    ::view-transition-old(root) { animation: 180ms ease-out both page-fade-out; }
    ::view-transition-new(root) { animation: 220ms ease-in both page-fade-in; }
    @keyframes page-fade-out { to { opacity: 0; } }
    @keyframes page-fade-in { from { opacity: 0; } }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--reveal-delay, 0ms); }
    .reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
    dialog::backdrop { background: rgba(28, 27, 46, .7); }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    }
  </style>
</head>
<body class="bg-white font-sans text-ink antialiased">
<!-- block:start products -->
  <section id="shop" class="mx-auto max-w-6xl px-5 pb-20 md:px-8" data-shop>
    <div class="grid gap-4 md:grid-cols-2 lg:grid-cols-[1.25fr_1fr_1fr]">
      <div class="grid grid-cols-2 gap-4">
          <a href="collections.html" class="group relative block aspect-square overflow-hidden rounded-3xl bg-sky-100" data-reveal>
            <img src="https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&w=420&h=420&q=75" alt="Woman holding her long hair up against a pink wall" class="h-full w-full object-cover transition duration-500 group-hover:scale-105">
            <span class="absolute right-3 top-3 grid h-9 w-9 place-items-center rounded-full bg-white text-ink"><i class="fa-solid fa-arrow-up rotate-45" aria-hidden="true"></i></span>
          </a>
          <a href="collections.html" class="group relative block aspect-square overflow-hidden rounded-3xl bg-peach" data-reveal>
            <img src="https://images.unsplash.com/photo-1560869713-7d0a29430803?auto=format&fit=crop&w=420&h=420&q=75" alt="Stylist shaping loose curls with a curling iron" class="h-full w-full object-cover transition duration-500 group-hover:scale-105">
            <span class="absolute right-3 top-3 grid h-9 w-9 place-items-center rounded-full bg-white text-ink"><i class="fa-solid fa-arrow-up rotate-45" aria-hidden="true"></i></span>
          </a>
        <a href="collections.html" class="group relative col-span-2 flex min-h-[11rem] flex-col overflow-hidden rounded-3xl bg-sand p-5" data-reveal>
          <span class="relative z-10 max-w-[15rem] text-sm text-ink/75">Treat yourself to salon-level care. Silkier lengths, stronger roots.</span>
          <span class="absolute bottom-0 right-6 h-28 w-20"><svg viewBox="0 0 120 200" class="h-full" role="img" aria-label="Curl Cream bottle"><ellipse cx="60" cy="194" rx="46" ry="5" fill="#17171f" opacity=".14"/><rect x="16" y="88" width="88" height="28" rx="8" fill="#17171f"/><rect x="20" y="112" width="80" height="80" rx="14" fill="#fff"/><text x="60" y="152" text-anchor="middle" font-size="9" font-weight="700" letter-spacing="2" fill="#17171f">LUSTRAE</text><text x="60" y="165" text-anchor="middle" font-size="7" fill="#6b6b7b">CURL CREAM</text></svg></span>
          <span class="relative z-10 mt-auto text-2xl font-semibold uppercase tracking-tight md:text-3xl">Restore your hair</span>
        </a>
      </div>
        <article class="flex flex-col" data-reveal style="--reveal-delay: 80ms">
          <div class="grid aspect-[4/3] place-items-center rounded-3xl bg-peri p-6 sm:aspect-[4/5] md:aspect-auto md:flex-1 md:p-10"><svg viewBox="0 0 120 200" class="h-48 md:h-56" role="img" aria-label="Moisture Shampoo bottle"><ellipse cx="60" cy="194" rx="46" ry="5" fill="#17171f" opacity=".14"/><rect x="56" y="20" width="8" height="20" rx="2" fill="#17171f"/><rect x="40" y="14" width="40" height="10" rx="4" fill="#17171f"/><rect x="76" y="16" width="22" height="6" rx="3" fill="#17171f"/><rect x="48" y="38" width="24" height="20" rx="3" fill="#17171f"/><rect x="28" y="56" width="64" height="136" rx="12" fill="#fff"/><text x="60" y="130" text-anchor="middle" font-size="9" font-weight="700" letter-spacing="2" fill="#17171f">LUSTRAE</text><text x="60" y="143" text-anchor="middle" font-size="7" fill="#6b6b7b">MOISTURE SHAMPOO</text></svg></div>
          <p class="mt-3 flex items-center justify-between rounded-2xl border border-ink/10 px-4 py-3 text-sm font-medium"><span>Moisture Shampoo</span><span class="font-semibold">$24</span></p>
          <button type="button" data-add-cart="Moisture Shampoo" class="mt-3 rounded-full px-5 py-3 text-xs font-semibold uppercase tracking-wide transition bg-ember text-white hover:bg-ember-deep">Add to cart</button>
        </article>
        <article class="flex flex-col" data-reveal style="--reveal-delay: 160ms">
          <div class="grid aspect-[4/3] place-items-center rounded-3xl bg-peach p-6 sm:aspect-[4/5] md:aspect-auto md:flex-1 md:p-10"><svg viewBox="0 0 120 200" class="h-48 md:h-56" role="img" aria-label="Repair Mask bottle"><ellipse cx="60" cy="194" rx="46" ry="5" fill="#17171f" opacity=".14"/><path d="M24 12h72l-12 150H36z" fill="#fff"/><rect x="38" y="160" width="44" height="32" rx="6" fill="#17171f"/><text x="60" y="84" text-anchor="middle" font-size="9" font-weight="700" letter-spacing="2" fill="#17171f">LUSTRAE</text><text x="60" y="97" text-anchor="middle" font-size="7" fill="#6b6b7b">REPAIR MASK</text></svg></div>
          <p class="mt-3 flex items-center justify-between rounded-2xl border border-ink/10 px-4 py-3 text-sm font-medium"><span>Repair Mask</span><span class="font-semibold">$31</span></p>
          <button type="button" data-add-cart="Repair Mask" class="mt-3 rounded-full px-5 py-3 text-xs font-semibold uppercase tracking-wide transition border border-ink hover:bg-ink hover:text-white">Add to cart</button>
        </article>
    </div>
    <p class="pointer-events-none fixed bottom-5 left-1/2 z-50 -translate-x-1/2 rounded-full bg-night px-5 py-3 text-sm text-white opacity-0 shadow-xl transition" data-toast role="status"></p>
  </section>
  <!-- block:end products -->
<script>
    const reducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
    const watchMotion = !reducedMotion && !navigator.webdriver && 'IntersectionObserver' in window;

    document.querySelectorAll('[data-menu-toggle]').forEach((button) => {
      const menu = document.getElementById(button.getAttribute('aria-controls'));
      button.addEventListener('click', () => {
        const open = button.getAttribute('aria-expanded') === 'true';
        button.setAttribute('aria-expanded', String(!open));
        menu.classList.toggle('hidden', open);
      });
    });

    const cartCount = document.querySelector('[data-cart-count]');
    const toast = document.querySelector('[data-toast]');
    let toastTimer;
    const addToCart = (label, qty = 1) => {
      if (cartCount) cartCount.textContent = Number(cartCount.textContent) + qty;
      if (!toast) return;
      toast.textContent = `${label} added to your cart`;
      toast.classList.add('opacity-100');
      clearTimeout(toastTimer);
      toastTimer = setTimeout(() => toast.classList.remove('opacity-100'), 2200);
    };
    document.querySelectorAll('[data-add-cart]').forEach((button) => button.addEventListener('click', () => addToCart(button.dataset.addCart)));

    document.querySelectorAll('[data-hero]').forEach((root) => {
      const chips = [...root.querySelectorAll('[data-focus]')];
      chips.forEach((chip) => chip.addEventListener('click', () => {
        chips.forEach((other) => other.setAttribute('aria-pressed', String(other === chip)));
        root.querySelectorAll('[data-focus-text]').forEach((el) => { el.hidden = el.dataset.focusText !== chip.dataset.focus; });
        root.querySelectorAll('[data-focus-card]').forEach((el) => { el.hidden = el.dataset.focusCard !== chip.dataset.focus; });
      }));
    });

    document.querySelectorAll('[data-ritual]').forEach((dialog) => {
      const steps = [...dialog.querySelectorAll('[data-ritual-step]')];
      const next = dialog.querySelector('[data-ritual-next]');
      let current = 0;
      const show = (index) => {
        current = Math.max(0, Math.min(index, steps.length - 1));
        steps.forEach((step, i) => { step.hidden = i !== current; });
        dialog.querySelector('[data-ritual-bar]').style.width = `${((current + 1) / steps.length) * 100}%`;
        next.textContent = current === steps.length - 1 ? 'Done' : 'Next step';
      };
      document.querySelectorAll(`[data-ritual-open][aria-controls="${dialog.id}"]`).forEach((button) => button.addEventListener('click', () => { show(0); dialog.showModal(); }));
      dialog.querySelector('[data-ritual-prev]').addEventListener('click', () => show(current - 1));
      next.addEventListener('click', () => (current === steps.length - 1 ? dialog.close() : show(current + 1)));
      dialog.addEventListener('click', (event) => { if (event.target === dialog) dialog.close(); });
    });

    document.querySelectorAll('[data-botanicals]').forEach((root) => {
      const colors = JSON.parse(root.querySelector('[data-botanical-colors]').textContent);
      const shape = root.querySelector('[data-botanical-shape]');
      const tabs = [...root.querySelectorAll('[role="tab"]')];
      const select = (tab, focus) => {
        tabs.forEach((other) => { const on = other === tab; other.setAttribute('aria-selected', String(on)); other.tabIndex = on ? 0 : -1; document.getElementById(other.getAttribute('aria-controls')).hidden = !on; });
        Object.values(colors).forEach((color) => shape.classList.remove(color));
        shape.classList.add(colors[tab.getAttribute('aria-controls').replace('botanical-', '')]);
        if (focus) tab.focus();
      };
      tabs.forEach((tab, i) => {
        tab.addEventListener('click', () => select(tab));
        tab.addEventListener('keydown', (event) => {
          if (event.key === 'ArrowRight') select(tabs[(i + 1) % tabs.length], true);
          if (event.key === 'ArrowLeft') select(tabs[(i - 1 + tabs.length) % tabs.length], true);
        });
      });
    });

    document.querySelectorAll('[data-lines]').forEach((root) => {
      const rows = [...root.querySelectorAll('[data-line]')];
      const image = root.querySelector('[data-line-image]');
      const activate = (row) => {
        rows.forEach((other) => other.toggleAttribute('data-active', other === row));
        image.style.transform = `translate(-50%, ${row.offsetTop + row.offsetHeight / 2 - 56}px) rotate(-12deg)`;
      };
      rows.forEach((row) => { row.addEventListener('mouseenter', () => activate(row)); row.addEventListener('focusin', () => activate(row)); });
    });

    document.querySelectorAll('[data-routine]').forEach((root) => {
      const { catalog, routine } = JSON.parse(root.querySelector('[data-routine-data]').textContent);
      const notes = { daily: ['Every other wash', 'Once a week', 'On damp hair'], few: ['Every wash', 'Twice a week', 'On damp hair'], weekly: ['Every wash', 'Every wash', 'Daily on dry ends'] };
      const titles = { straight: 'Smooth care', wavy: 'Wave care', curly: 'Curl care', coily: 'Coil care' };
      const concerns = { dryness: 'dry lengths', breakage: 'stronger strands', frizz: 'frizz control', thinning: 'fuller roots' };
      let picks = [];
      const update = () => {
        const value = (name) => root.querySelector(`[name="${name}"]:checked`).value;
        const type = value('type'); const concern = value('concern'); const wash = value('wash');
        picks = [routine.cleanse[type], routine.treat[concern], routine.finish[type]];
        if (picks[2] === picks[1]) picks[2] = 'Root Revival Oil';
        const rows = root.querySelectorAll('ol > li');
        picks.forEach((name, i) => {
          const row = rows[i];
          const tile = row.querySelector('[data-routine-tile]');
          Object.values(catalog).forEach((item) => tile.classList.remove(item.bg));
          tile.classList.add(catalog[name].bg);
          tile.querySelectorAll('[data-bottle]').forEach((el) => { el.hidden = el.dataset.bottle !== name; });
          row.querySelector('[data-routine-name]').textContent = name;
          row.querySelector('[data-routine-note]').textContent = notes[wash][i];
          row.querySelector('[data-routine-price]').textContent = `$${catalog[name].price}`;
        });
        const full = picks.reduce((sum, name) => sum + catalog[name].price, 0);
        root.querySelector('[data-routine-title]').textContent = `${titles[type]} for ${concerns[concern]}`;
        root.querySelector('[data-routine-full]').textContent = `$${full}`;
        root.querySelector('[data-routine-total]').textContent = `$${(full * 0.9).toFixed(2).replace(/\.00$/, '')}`;
      };
      root.querySelectorAll('[data-routine-input]').forEach((input) => input.addEventListener('change', update));
      root.querySelector('[data-add-routine]').addEventListener('click', () => addToCart('Your 3-step routine', 3));
      update();
    });

    document.querySelectorAll('[data-shine]').forEach((root) => {
      const toggle = root.querySelector('[data-shine-toggle]');
      toggle.addEventListener('click', () => {
        const soft = toggle.getAttribute('aria-pressed') !== 'true';
        toggle.setAttribute('aria-pressed', String(soft));
        toggle.setAttribute('aria-label', soft ? 'Switch to silk restore look' : 'Switch to softer days look');
        root.querySelectorAll('[data-shine-photo]').forEach((img) => { img.hidden = (img.dataset.shinePhoto === 'soft') !== soft; });
        root.querySelectorAll('[data-shine-label]').forEach((label) => label.classList.toggle('text-ink/50', (label.dataset.shineLabel === 'soft') !== soft));
      });
    });

    if (watchMotion) {
      document.documentElement.classList.add('reveal-ready');
      const observer = new IntersectionObserver((entries) => entries.forEach((entry) => {
        if (entry.isIntersecting) { entry.target.classList.add('is-visible'); observer.unobserve(entry.target); }
      }), { threshold: 0.15 });
      document.querySelectorAll('[data-reveal]').forEach((el) => observer.observe(el));
      const counter = new IntersectionObserver((entries) => entries.forEach((entry) => {
        if (!entry.isIntersecting) return;
        const el = entry.target; const end = Number(el.dataset.count); const start = performance.now();
        const tick = (now) => { const p = Math.min((now - start) / 900, 1); el.textContent = Math.round(end * p); if (p < 1) requestAnimationFrame(tick); };
        requestAnimationFrame(tick); counter.unobserve(el);
      }), { threshold: 0.5 });
      document.querySelectorAll('[data-count]').forEach((el) => counter.observe(el));
    }
  </script>
<!-- Optional credit — delete this block if you prefer a clean footer -->
<p class="lt-built-with" style="margin:0;padding:12px 16px;text-align:center;font:500 11px/1.4 system-ui,-apple-system,sans-serif;color:#9ca3af;">Built with <a href="https://letstemplates.com" style="color:#059669;text-decoration:none;">Let's templates</a></p>
</body>
</html>

From this template

Lustrae screenshot Premium

E-commerce

Lustrae

Unlimited access to all products

Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.

$20 / 3 months or $60 / year
Get Unlimited Access