- No data uploaded
- Instant results
Tailwind CSS Feature Grid for Vanilla JS — Glassmorphism
A production-ready glassmorphism 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. 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) -->
<section class="px-6 py-16">
<div class="max-w-6xl mx-auto">
<div class="max-w-2xl mx-auto text-center mb-12">
<span class="inline-flex items-center px-2.5 py-0.5 text-xs font-semibold rounded-full bg-[#4f46e5]/10 text-[#4f46e5]">Features</span>
<h2 class="mt-3 text-3xl font-bold text-slate-900">Everything you need to launch</h2>
<p class="mt-3 text-slate-500">Batteries included, zero lock-in.</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div>
<div class="h-full p-6 bg-white/60 backdrop-blur-xl border border-white/60 shadow-2xl rounded-xl">
<span class="inline-flex items-center px-2.5 py-0.5 text-xs font-semibold rounded-full bg-[#4f46e5]/10 text-[#4f46e5]" aria-hidden="true">⚡</span>
<h3 class="mt-4 text-lg font-semibold text-slate-900">Blazing fast</h3>
<p class="mt-2 text-sm text-slate-500">Static HTML served from the edge — sub-50ms anywhere.</p>
</div>
</div>
<div>
<div class="h-full p-6 bg-white/60 backdrop-blur-xl border border-white/60 shadow-2xl rounded-xl">
<span class="inline-flex items-center px-2.5 py-0.5 text-xs font-semibold rounded-full bg-[#4f46e5]/10 text-[#4f46e5]" aria-hidden="true">🔒</span>
<h3 class="mt-4 text-lg font-semibold text-slate-900">Secure by default</h3>
<p class="mt-2 text-sm text-slate-500">Hardened headers, no server attack surface.</p>
</div>
</div>
<div>
<div class="h-full p-6 bg-white/60 backdrop-blur-xl border border-white/60 shadow-2xl rounded-xl">
<span class="inline-flex items-center px-2.5 py-0.5 text-xs font-semibold rounded-full bg-[#4f46e5]/10 text-[#4f46e5]" aria-hidden="true">🎨</span>
<h3 class="mt-4 text-lg font-semibold text-slate-900">Themeable</h3>
<p class="mt-2 text-sm text-slate-500">Swap the brand color and radius in one place.</p>
</div>
</div>
<div>
<div class="h-full p-6 bg-white/60 backdrop-blur-xl border border-white/60 shadow-2xl rounded-xl">
<span class="inline-flex items-center px-2.5 py-0.5 text-xs font-semibold rounded-full bg-[#4f46e5]/10 text-[#4f46e5]" aria-hidden="true">🌙</span>
<h3 class="mt-4 text-lg font-semibold text-slate-900">Dark mode</h3>
<p class="mt-2 text-sm text-slate-500">Every component ships light and dark palettes.</p>
</div>
</div>
<div>
<div class="h-full p-6 bg-white/60 backdrop-blur-xl border border-white/60 shadow-2xl rounded-xl">
<span class="inline-flex items-center px-2.5 py-0.5 text-xs font-semibold rounded-full bg-[#4f46e5]/10 text-[#4f46e5]" aria-hidden="true">♿</span>
<h3 class="mt-4 text-lg font-semibold text-slate-900">Accessible</h3>
<p class="mt-2 text-sm text-slate-500">Semantic markup and visible focus states.</p>
</div>
</div>
<div>
<div class="h-full p-6 bg-white/60 backdrop-blur-xl border border-white/60 shadow-2xl rounded-xl">
<span class="inline-flex items-center px-2.5 py-0.5 text-xs font-semibold rounded-full bg-[#4f46e5]/10 text-[#4f46e5]" aria-hidden="true">📱</span>
<h3 class="mt-4 text-lg font-semibold text-slate-900">Responsive</h3>
<p class="mt-2 text-sm text-slate-500">Mobile-first layouts that scale to 4K.</p>
</div>
</div>
</div>
</div>
</section>
More Tailwind components for Vanilla JS
All components →- 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
- Pricing Table A three-tier pricing section with a monthly/yearly billing toggle, a highlighted “most popular” plan and feature checklists
- Testimonial Slider A customer testimonial carousel that shows one quote at a time with labelled slide buttons — no autoplay, so users stay in control
- FAQ Accordion A frequently-asked-questions section with four expandable items, each toggled by a button that exposes its state via aria-expanded
- Currency Pricing Table A dynamic pricing section that detects the visitor’s currency, shows purchasing-power-adjusted regional prices and lets users switch between USD, EUR, GBP, INR and JPY
- Login Modal A centered sign-in dialog with email and password fields, “remember me”, a forgot-password link and a social sign-in button
- 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
- 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
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 feature grid in Vanilla JS
Paste the markup where the component should appear. It is pure HTML/CSS — no JavaScript required.
Accessibility & customization
Each card uses an <h3> under the section <h2> for a correct heading outline; emoji icons are marked aria-hidden so they are not read aloud.
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) |