- No data uploaded
- Instant results
Tailwind CSS Footer for Vanilla JS — Glassmorphism
A production-ready glassmorphism footer: a multi-column site footer with a brand description, three link groups, a newsletter sign-up field and a copyright row. Pick your brand color, toggle dark mode and corner radius — the live preview and the Vanilla JS code update instantly in your browser.
Live component editor
<!-- Requires Tailwind CSS v3 (CLI/PostCSS build, or the Play CDN for prototypes) -->
<footer class="mt-16 bg-white/60 backdrop-blur-xl border border-white/60">
<div class="max-w-6xl mx-auto px-6 py-12 grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<p class="text-lg font-bold text-slate-900">◆ Acme</p>
<p class="mt-2 text-sm text-slate-500">Tools for teams that ship.</p>
</div>
<div>
<h3 class="text-sm font-semibold uppercase text-slate-900">Product</h3>
<ul class="list-none mt-3 flex flex-col gap-2">
<li><a href="#" class="text-sm no-underline text-slate-500">Features</a></li>
<li><a href="#" class="text-sm no-underline text-slate-500">Pricing</a></li>
<li><a href="#" class="text-sm no-underline text-slate-500">Changelog</a></li>
</ul>
</div>
<div>
<h3 class="text-sm font-semibold uppercase text-slate-900">Company</h3>
<ul class="list-none mt-3 flex flex-col gap-2">
<li><a href="#" class="text-sm no-underline text-slate-500">About</a></li>
<li><a href="#" class="text-sm no-underline text-slate-500">Careers</a></li>
<li><a href="#" class="text-sm no-underline text-slate-500">Blog</a></li>
</ul>
</div>
<div>
<h3 class="text-sm font-semibold uppercase text-slate-900">Resources</h3>
<ul class="list-none mt-3 flex flex-col gap-2">
<li><a href="#" class="text-sm no-underline text-slate-500">Docs</a></li>
<li><a href="#" class="text-sm no-underline text-slate-500">Guides</a></li>
<li><a href="#" class="text-sm no-underline text-slate-500">Support</a></li>
</ul>
</div>
</div>
<div class="border-t border-slate-200">
<div class="max-w-6xl mx-auto px-6 py-6 flex flex-wrap items-center justify-between gap-4">
<p class="text-sm text-slate-500">© 2026 Acme Inc. All rights reserved.</p>
<form class="flex items-center gap-2">
<label for="ft-email" class="text-sm text-slate-500">Newsletter</label>
<input id="ft-email" type="email" placeholder="you@company.com" class="block w-full px-3 py-2 text-sm rounded-lg border bg-white/70 border-white/80 text-slate-900 placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-[#4f46e5] focus:border-[#4f46e5]">
<button type="submit" class="inline-flex items-center justify-center px-4 py-2.5 text-sm font-semibold rounded-lg bg-[#4f46e5] hover:bg-[#433cc3] text-white shadow-sm transition-colors focus:outline-none focus:ring-2 focus:ring-[#4f46e5] focus:ring-offset-2 focus:ring-offset-white">Subscribe</button>
</form>
</div>
</div>
</footer>
More Tailwind components for Vanilla JS
All components →- Navbar A responsive top navigation bar with a logo, primary links, a sign-in/CTA pair on desktop and a collapsible hamburger menu on mobile
- Cookie Consent Banner A GDPR-style cookie banner with equally prominent “Accept all” and “Reject all”, granular analytics/marketing toggles (off by default), stored consent and Google Consent Mode v2 signals
- Contact Form A contact card with name, email, a topic selector, a message textarea and a submit button
- Hero Section A landing-page hero with an announcement badge, a large headline, supporting copy, primary and secondary calls to action and a row of social-proof stats
- Signup Form A registration card with name, email and password fields, a password hint, a terms-of-service checkbox and a primary call to action
- Login Modal A centered sign-in dialog with email and password fields, “remember me”, a forgot-password link and a social sign-in button
- Pricing Table A three-tier pricing section with a monthly/yearly billing toggle, a highlighted “most popular” plan and feature checklists
- Feature Grid A marketing section with a centered heading and a responsive grid of six feature cards, each with an icon badge, title and description
Install Tailwind CSS for Vanilla JS
Prototype instantly with the Play CDN, or install the Tailwind CLI for production:
<script src="https://cdn.tailwindcss.com"></script>npm install -D tailwindcss@3
npx tailwindcss init
npx tailwindcss -i ./src/input.css -o ./dist/output.css --watchAdd ./**/*.html to content in tailwind.config.js and put the three @tailwind directives in src/input.css.
Use the footer in Vanilla JS
Paste the markup where the component should appear. It is pure HTML/CSS — no JavaScript required.
Accessibility & customization
Wrapped in a <footer> landmark; link groups use headings + lists, and the newsletter input has a visually associated label for assistive technology.
Every color, radius and dark-mode choice is baked into plain utility classes, so the copied code has no runtime dependency on this site. The glass style relies on backdrop-filter, supported in all current browsers; place it over a colorful background for the best effect.
Compatibility
| Item | Details |
|---|---|
| CSS framework | Tailwind CSS v3.4+ |
| Library | Plain HTML + optional vanilla JS |
| Interactive state | None (static markup) |
| Dark mode | Yes — toggle in the editor |
| Style | Glassmorphism (backdrop blur) |