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

Everknit Gallery

A gallery block extracted from the Everknit template, available in Tailwind CSS.

0 22
Everknit Gallery preview

Download Codebase

Commercial License

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

everknit.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>Everknit Gallery | Tailwind CSS UI Block</title>
  <meta name="description" content="A gallery block extracted from the Everknit template, available in Tailwind CSS.">
  <meta name="keywords" content="Everknit, Tailwind CSS template, HTML website template, ecommerce template, apparel store, clothing shop, streetwear brand, product filters, responsive fashion design">
  <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="Everknit | Tailwind CSS Apparel Ecommerce Template">
  <meta property="og:description" content="A bold Swiss-style Tailwind CSS ecommerce template for apparel basics brands, streetwear labels, and online clothing stores with filters, lookbooks, and a full cart flow.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Everknit template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Everknit | Tailwind CSS Apparel Ecommerce Template">
  <meta name="twitter:description" content="A bold Swiss-style Tailwind CSS ecommerce template for apparel basics brands, streetwear labels, and online clothing stores with filters, lookbooks, and a full cart flow.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Everknit template preview">
  <script src="https://cdn.tailwindcss.com/3.4.17"></script>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700&amp;display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            ink: '#0d0d0d',
            paper: '#fafafa',
            mist: '#f1f1f1',
            ember: '#f59e2e',
            apricot: '#fcc58f',
            iris: '#8b5cf6',
            citron: '#c5e03a'
          },
          fontFamily: {
            sans: ['"Inter Tight"', 'ui-sans-serif', 'system-ui', '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; }
    body { font-family: 'Inter Tight', ui-sans-serif, system-ui, sans-serif; }
    .no-scrollbar { scrollbar-width: none; }
    .no-scrollbar::-webkit-scrollbar { display: none; }
    .wordmark-track { animation: wordmark-slide 38s linear infinite; }
    @keyframes wordmark-slide { to { transform: translateX(-50%); } }
    .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; }
    [data-look-tile] { transition: opacity .4s ease, filter .4s ease, transform .4s ease; }
    [data-look-tile].is-dimmed { opacity: .28; filter: grayscale(1); }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .wordmark-track { animation: none; }
      ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    }
  </style>
</head>
<body class="bg-paper text-ink antialiased overflow-x-hidden">
<!-- block:start gallery -->
    <section id="lookbook" class="bg-[#0b0b0b] text-white">
      <div class="mx-auto max-w-[1920px] px-5 lg:px-[1.1vw] py-14 md:py-[3.2vw]">
        <div class="grid gap-6 md:grid-cols-4 md:gap-[1.1vw]">
          <p class="text-sm lg:text-[1.2vw] md:pt-[4vw]">/03</p>
          <div class="md:col-span-3">
            <div class="flex flex-col gap-4 md:flex-row md:items-end md:justify-between">
              <h2 class="text-5xl lg:text-[4.9vw] font-medium leading-none tracking-[-0.045em]">The Lookbook</h2>
              <p class="max-w-[26ch] text-sm lg:text-[1.2vw] leading-snug text-white/85">Let restraint do the talking — pieces made with intent and styled for real streets.</p>
            </div>

            <div data-look-grid class="mt-8 md:mt-[2.2vw] space-y-4 md:space-y-[1.2vw]">
              <div>
                <div class="grid gap-3 md:grid-cols-3 md:gap-[1.1vw]">
                  <figure data-look-tile data-tags="classic daily" class="md:col-span-2 overflow-hidden rounded-lg lg:rounded-[0.5vw] aspect-[7/6] md:aspect-auto md:h-[42.7vw]">
                    <img src="https://images.unsplash.com/photo-1643622782660-30dedcd8d75a?auto=format&amp;fit=crop&amp;w=1400&amp;q=80" alt="Man in a red track jacket against a dark slatted wall" loading="lazy" class="h-full w-full object-cover transition duration-700 hover:scale-105" style="object-position: center 20%">
                  </figure>
                  <div class="grid grid-cols-2 gap-3 md:grid-cols-1 md:grid-rows-2 md:gap-[1.1vw] md:h-[42.7vw]">
                      <figure data-look-tile data-tags="soft daily" class="overflow-hidden rounded-lg lg:rounded-[0.5vw] aspect-square md:aspect-auto">
                        <img src="https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&amp;fit=crop&amp;w=900&amp;q=80" alt="Woman in a hooded denim layer against a blue wall" loading="lazy" class="h-full w-full object-cover transition duration-700 hover:scale-105" style="object-position: center 30%">
                      </figure>
                      <figure data-look-tile data-tags="classic core" class="overflow-hidden rounded-lg lg:rounded-[0.5vw] aspect-square md:aspect-auto">
                        <img src="https://images.unsplash.com/photo-1677005284143-b896b7b149a2?auto=format&amp;fit=crop&amp;w=900&amp;q=80" alt="Man in sunglasses and a relaxed shirt leaning on a pale wall" loading="lazy" class="h-full w-full object-cover transition duration-700 hover:scale-105" style="object-position: center 30%">
                      </figure>
                  </div>
                </div>
                <div class="mt-2 lg:mt-[0.7vw] flex justify-between text-xs lg:text-[1.1vw] uppercase">
                  <span>Street Layer</span>
                  <span>City Core</span>
                </div>
              </div>
              <div>
                <div class="grid gap-3 md:grid-cols-3 md:gap-[1.1vw]">
                  <div class="order-2 md:order-1 grid grid-cols-2 gap-3 md:grid-cols-1 md:grid-rows-2 md:gap-[1.1vw] md:h-[42.7vw]">
                      <figure data-look-tile data-tags="active core" class="overflow-hidden rounded-lg lg:rounded-[0.5vw] aspect-square md:aspect-auto">
                        <img src="https://images.unsplash.com/photo-1605296867304-46d5465a13f1?auto=format&amp;fit=crop&amp;w=900&amp;q=80" alt="Athlete in dark training wear crouched over a barbell" loading="lazy" class="h-full w-full object-cover transition duration-700 hover:scale-105" style="object-position: center">
                      </figure>
                      <figure data-look-tile data-tags="active daily" class="overflow-hidden rounded-lg lg:rounded-[0.5vw] aspect-square md:aspect-auto">
                        <img src="https://images.unsplash.com/photo-1540254597053-3901b858d40f?auto=format&amp;fit=crop&amp;w=900&amp;q=80" alt="Runner in a black track set sprinting on a field" loading="lazy" class="h-full w-full object-cover transition duration-700 hover:scale-105" style="object-position: center 35%">
                      </figure>
                  </div>
                  <figure data-look-tile data-tags="active soft" class="order-1 md:order-2 md:col-span-2 overflow-hidden rounded-lg lg:rounded-[0.5vw] aspect-[7/6] md:aspect-auto md:h-[42.7vw]">
                    <img src="https://images.unsplash.com/photo-1600696491085-19dbbeb4f8c1?auto=format&amp;fit=crop&amp;w=1400&amp;q=80" alt="Woman in a black sports top and leggings kicking on the beach" loading="lazy" class="h-full w-full object-cover transition duration-700 hover:scale-105" style="object-position: center 40%">
                  </figure>
                </div>
                <div class="mt-2 lg:mt-[0.7vw] flex justify-between text-xs lg:text-[1.1vw] uppercase">
                  <span>Training Kit</span>
                  <span>Motion Club</span>
                </div>
              </div>
            </div>

            <div data-look-filter role="group" aria-label="Filter the lookbook" class="mt-6 md:mt-[2vw] grid grid-cols-3 gap-2 sm:grid-cols-6 md:gap-[0.6vw]">
                <button type="button" data-look="all" aria-pressed="true" class="rounded-full border border-white/80 py-1.5 lg:py-[0.45vw] text-sm lg:text-[1.15vw] transition hover:bg-white/10 aria-pressed:bg-white aria-pressed:text-ink">All</button>
                <button type="button" data-look="classic" aria-pressed="false" class="rounded-full border border-white/80 py-1.5 lg:py-[0.45vw] text-sm lg:text-[1.15vw] transition hover:bg-white/10 aria-pressed:bg-white aria-pressed:text-ink">Classic</button>
                <button type="button" data-look="daily" aria-pressed="false" class="rounded-full border border-white/80 py-1.5 lg:py-[0.45vw] text-sm lg:text-[1.15vw] transition hover:bg-white/10 aria-pressed:bg-white aria-pressed:text-ink">Daily</button>
                <button type="button" data-look="soft" aria-pressed="false" class="rounded-full border border-white/80 py-1.5 lg:py-[0.45vw] text-sm lg:text-[1.15vw] transition hover:bg-white/10 aria-pressed:bg-white aria-pressed:text-ink">Soft</button>
                <button type="button" data-look="active" aria-pressed="false" class="rounded-full border border-white/80 py-1.5 lg:py-[0.45vw] text-sm lg:text-[1.15vw] transition hover:bg-white/10 aria-pressed:bg-white aria-pressed:text-ink">Active</button>
                <button type="button" data-look="core" aria-pressed="false" class="rounded-full border border-white/80 py-1.5 lg:py-[0.45vw] text-sm lg:text-[1.15vw] transition hover:bg-white/10 aria-pressed:bg-white aria-pressed:text-ink">Core</button>
            </div>
          </div>
        </div>
      </div>
    </section>
    <!-- block:end gallery -->
<script>
    document.querySelectorAll("[data-menu-toggle]").forEach((button) => {
      const menu = document.getElementById(button.getAttribute("aria-controls"));
      if (!menu) return;
      button.addEventListener("click", () => {
        const open = button.getAttribute("aria-expanded") === "true";
        button.setAttribute("aria-expanded", String(!open));
        menu.classList.toggle("hidden", open);
      });
    });

    (() => {
      const read = (key, fallback) => { try { return Number(localStorage.getItem(key) ?? fallback); } catch (e) { return fallback; } };
      const write = (key, value) => { try { localStorage.setItem(key, String(value)); } catch (e) {} };
      const paint = () => {
        document.querySelectorAll("[data-cart-count]").forEach((el) => { el.textContent = read("everknit-cart", 2); });
        document.querySelectorAll("[data-wish-count]").forEach((el) => { el.textContent = read("everknit-wish", 3); });
      };
      window.everknitStore = { read, write, paint };
      paint();
      document.addEventListener("click", (event) => {
        const add = event.target.closest("[data-add-cart]");
        if (add) {
          write("everknit-cart", read("everknit-cart", 2) + 1);
          paint();
          add.classList.add("bg-ink", "text-white");
          setTimeout(() => add.classList.remove("bg-ink", "text-white"), 600);
        }
        const wish = event.target.closest("[data-wish]");
        if (wish) {
          const saved = wish.getAttribute("aria-pressed") !== "true";
          wish.setAttribute("aria-pressed", String(saved));
          const icon = wish.querySelector("[data-wish-icon]");
          if (icon) { icon.classList.toggle("fa-solid", saved); icon.classList.toggle("fa-regular", !saved); }
          write("everknit-wish", Math.max(0, read("everknit-wish", 3) + (saved ? 1 : -1)));
          paint();
        }
      });
    })();

    document.querySelectorAll("[data-swatch-card]").forEach((card) => {
      const target = card.querySelector("[data-swatch-target]");
      card.querySelectorAll("[data-swatch]").forEach((swatch) => {
        swatch.addEventListener("click", () => {
          card.querySelectorAll("[data-swatch]").forEach((other) => other.setAttribute("aria-pressed", String(other === swatch)));
          if (target) target.style.color = swatch.dataset.swatch;
        });
      });
    });

    document.querySelectorAll("[data-shop-filter]").forEach((form) => {
      const section = form.closest("section");
      const items = [...section.querySelectorAll("[data-filter-items] [data-product]")];
      const empty = section.querySelector("[data-filter-empty]");
      const count = section.querySelector("[data-filter-count]");
      const dot = form.querySelector("[data-color-dot]");
      const dotColors = { orange: "#f59e2e", yellow: "#f5c81e", all: "conic-gradient(#f59e2e 0 50%, #f5c81e 50% 100%)" };
      const inRange = (price, range) => range === "all" || (range === "under-100" && price < 100) || (range === "100-150" && price >= 100 && price <= 150) || (range === "over-150" && price > 150);
      const apply = () => {
        const data = new FormData(form);
        const q = String(data.get("q") || "").trim().toLowerCase();
        let shown = 0;
        items.forEach((item) => {
          const match = (data.get("category") === "all" || item.dataset.category === data.get("category"))
            && (data.get("size") === "all" || item.dataset.sizes.split(" ").includes(data.get("size")))
            && (data.get("color") === "all" || item.dataset.color === data.get("color"))
            && inRange(Number(item.dataset.price), data.get("price"))
            && (!q || item.dataset.name.includes(q) || item.dataset.category.includes(q));
          item.hidden = !match;
          if (match) shown += 1;
        });
        if (empty) empty.hidden = shown > 0;
        if (count) count.textContent = `${shown} ${shown === 1 ? "piece" : "pieces"}`;
        if (dot) dot.style.background = dotColors[data.get("color")] || dotColors.all;
      };
      form.addEventListener("input", apply);
      form.addEventListener("change", apply);
      section.querySelectorAll("[data-filter-clear]").forEach((button) => button.addEventListener("click", () => {
        form.reset();
        apply();
      }));
      apply();
    });

    document.querySelectorAll("[data-look-filter]").forEach((group) => {
      const tiles = group.closest("section").querySelectorAll("[data-look-tile]");
      group.addEventListener("click", (event) => {
        const button = event.target.closest("[data-look]");
        if (!button) return;
        const filter = button.dataset.look;
        group.querySelectorAll("[data-look]").forEach((chip) => chip.setAttribute("aria-pressed", String(chip === button)));
        tiles.forEach((tile) => tile.classList.toggle("is-dimmed", filter !== "all" && !tile.dataset.tags.split(" ").includes(filter)));
      });
    });

    document.querySelectorAll("[data-tee-slider]").forEach((slider) => {
      const track = slider.querySelector("[data-tee-track]");
      const step = () => (track.querySelector("[data-tee]")?.offsetWidth || track.clientWidth);
      const move = (direction) => {
        const max = track.scrollWidth - track.clientWidth - 4;
        if (direction > 0 && track.scrollLeft >= max) return track.scrollTo({ left: 0 });
        if (direction < 0 && track.scrollLeft <= 4) return track.scrollTo({ left: track.scrollWidth });
        track.scrollBy({ left: direction * step() });
      };
      slider.querySelector("[data-tee-prev]")?.addEventListener("click", () => move(-1));
      slider.querySelector("[data-tee-next]")?.addEventListener("click", () => move(1));
    });

    document.querySelectorAll("[data-copy-code]").forEach((button) => {
      button.addEventListener("click", () => {
        const code = button.dataset.copyCode;
        navigator.clipboard?.writeText(code).catch(() => {});
        button.textContent = "Copied";
        setTimeout(() => { button.textContent = code; }, 1400);
      });
    });

    (() => {
      const items = document.querySelectorAll("[data-reveal]");
      const skip = navigator.webdriver || !("IntersectionObserver" in window) || matchMedia("(prefers-reduced-motion: reduce)").matches;
      if (!items.length || skip) return;
      document.documentElement.classList.add("reveal-ready");
      const observer = new IntersectionObserver((entries) => {
        entries.forEach((entry) => {
          if (!entry.isIntersecting) return;
          entry.target.classList.add("is-visible");
          observer.unobserve(entry.target);
        });
      }, { rootMargin: "0px 0px -10% 0px" });
      items.forEach((item) => observer.observe(item));
    })();
  </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

Everknit screenshot Premium

E-commerce

Everknit

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