Tailwind Components

42 free copy-paste components in plain HTML for Tailwind CSS v4

GitHub

Marketing

Call-to-action banner

Full-width colored banner with heading and two buttons.

Source

Ready to get started?

Create an account in under a minute. No credit card required.

View code
<section class="px-6 py-16">
  <div class="mx-auto max-w-5xl rounded-3xl bg-indigo-600 px-8 py-14 text-center shadow-xl sm:px-16">
    <h2 class="text-3xl font-bold tracking-tight text-white sm:text-4xl">Ready to get started?</h2>
    <p class="mx-auto mt-4 max-w-xl text-lg text-indigo-100">Create an account in under a minute. No credit card required.</p>
    <div class="mt-8 flex flex-col justify-center gap-3 sm:flex-row">
      <a href="#" class="rounded-lg bg-white px-5 py-3 text-sm font-semibold text-indigo-700 shadow-sm hover:bg-indigo-50">Create account</a>
      <a href="#" class="rounded-lg px-5 py-3 text-sm font-semibold text-white ring-1 ring-white/40 hover:bg-white/10">Talk to us</a>
    </div>
  </div>
</section>

FAQ accordion

Accessible FAQ built on native details and summary elements, no JavaScript.

Source

Frequently asked questions

Can I cancel anytime?

Yes. You keep access until the end of the billing period and you will not be charged again.

Do you offer discounts for nonprofits?

We do. Contact us with proof of status and we will apply the discount to your account.

Where is my data stored?

Describe your hosting region and backup policy here.

View code
<section class="bg-white px-6 py-24 dark:bg-gray-950">
  <div class="mx-auto max-w-3xl">
    <h2 class="text-3xl font-bold tracking-tight text-gray-900 dark:text-white">Frequently asked questions</h2>
    <div class="mt-10 divide-y divide-gray-200 border-y border-gray-200 dark:divide-gray-800 dark:border-gray-800">
      <details class="group py-5" open>
        <summary class="flex cursor-pointer list-none items-center justify-between font-medium text-gray-900 dark:text-white [&::-webkit-details-marker]:hidden">
          Can I cancel anytime?
          <span class="ml-4 transition-transform group-open:rotate-45 text-xl text-gray-500" aria-hidden="true">+</span>
        </summary>
        <p class="mt-3 text-gray-600 dark:text-gray-400">Yes. You keep access until the end of the billing period and you will not be charged again.</p>
      </details>
      <details class="group py-5">
        <summary class="flex cursor-pointer list-none items-center justify-between font-medium text-gray-900 dark:text-white [&::-webkit-details-marker]:hidden">
          Do you offer discounts for nonprofits?
          <span class="ml-4 transition-transform group-open:rotate-45 text-xl text-gray-500" aria-hidden="true">+</span>
        </summary>
        <p class="mt-3 text-gray-600 dark:text-gray-400">We do. Contact us with proof of status and we will apply the discount to your account.</p>
      </details>
      <details class="group py-5">
        <summary class="flex cursor-pointer list-none items-center justify-between font-medium text-gray-900 dark:text-white [&::-webkit-details-marker]:hidden">
          Where is my data stored?
          <span class="ml-4 transition-transform group-open:rotate-45 text-xl text-gray-500" aria-hidden="true">+</span>
        </summary>
        <p class="mt-3 text-gray-600 dark:text-gray-400">Describe your hosting region and backup policy here.</p>
      </details>
    </div>
  </div>
</section>

Feature grid

Section heading and a responsive grid of six features with icons.

Source

Everything included

Built for teams that move fast

Fast by default
Pages are prerendered and cached at the edge, so first loads feel instant.
Secure sign-in
Passkeys, magic links and single sign-on, with sessions you can revoke.
Audit log
Every change is recorded with who, what and when, and can be exported.
Roles and teams
Invite teammates, group them into teams and grant exactly the access they need.
Automatic backups
Point-in-time restore for the last 30 days, tested every week.
Open API
A documented REST API and webhooks for everything you can do in the app.
View code
<section class="bg-gray-50 px-6 py-24 dark:bg-gray-900">
  <div class="mx-auto max-w-7xl">
    <div class="mx-auto max-w-2xl text-center">
      <h2 class="text-base font-semibold text-indigo-600 dark:text-indigo-400">Everything included</h2>
      <p class="mt-2 text-3xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-4xl">Built for teams that move fast</p>
    </div>
    <dl class="mt-16 grid gap-8 sm:grid-cols-2 lg:grid-cols-3">
      <div class="rounded-2xl bg-white p-6 shadow-sm ring-1 ring-gray-200 dark:bg-gray-950 dark:ring-gray-800">
        <dt class="flex items-center gap-3 font-semibold text-gray-900 dark:text-white">
          <span class="flex size-10 items-center justify-center rounded-lg bg-indigo-600 text-white" aria-hidden="true">
            <svg class="size-5" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M13 10V3L4 14h7v7l9-11h-7z" /></svg>
          </span>
          Fast by default
        </dt>
        <dd class="mt-3 text-sm leading-6 text-gray-600 dark:text-gray-400">Pages are prerendered and cached at the edge, so first loads feel instant.</dd>
      </div>
      <div class="rounded-2xl bg-white p-6 shadow-sm ring-1 ring-gray-200 dark:bg-gray-950 dark:ring-gray-800">
        <dt class="flex items-center gap-3 font-semibold text-gray-900 dark:text-white">
          <span class="flex size-10 items-center justify-center rounded-lg bg-indigo-600 text-white" aria-hidden="true">
            <svg class="size-5" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" /></svg>
          </span>
          Secure sign-in
        </dt>
        <dd class="mt-3 text-sm leading-6 text-gray-600 dark:text-gray-400">Passkeys, magic links and single sign-on, with sessions you can revoke.</dd>
      </div>
      <div class="rounded-2xl bg-white p-6 shadow-sm ring-1 ring-gray-200 dark:bg-gray-950 dark:ring-gray-800">
        <dt class="flex items-center gap-3 font-semibold text-gray-900 dark:text-white">
          <span class="flex size-10 items-center justify-center rounded-lg bg-indigo-600 text-white" aria-hidden="true">
            <svg class="size-5" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M4 7h16M4 12h16M4 17h10" /></svg>
          </span>
          Audit log
        </dt>
        <dd class="mt-3 text-sm leading-6 text-gray-600 dark:text-gray-400">Every change is recorded with who, what and when, and can be exported.</dd>
      </div>
      <div class="rounded-2xl bg-white p-6 shadow-sm ring-1 ring-gray-200 dark:bg-gray-950 dark:ring-gray-800">
        <dt class="flex items-center gap-3 font-semibold text-gray-900 dark:text-white">
          <span class="flex size-10 items-center justify-center rounded-lg bg-indigo-600 text-white" aria-hidden="true">
            <svg class="size-5" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M17 20h5v-2a4 4 0 00-5-3.9M9 20H4v-2a4 4 0 015-3.9m8-6.1a3 3 0 11-6 0 3 3 0 016 0zM9 8a3 3 0 11-6 0 3 3 0 016 0z" /></svg>
          </span>
          Roles and teams
        </dt>
        <dd class="mt-3 text-sm leading-6 text-gray-600 dark:text-gray-400">Invite teammates, group them into teams and grant exactly the access they need.</dd>
      </div>
      <div class="rounded-2xl bg-white p-6 shadow-sm ring-1 ring-gray-200 dark:bg-gray-950 dark:ring-gray-800">
        <dt class="flex items-center gap-3 font-semibold text-gray-900 dark:text-white">
          <span class="flex size-10 items-center justify-center rounded-lg bg-indigo-600 text-white" aria-hidden="true">
            <svg class="size-5" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M4 4v6h6M20 20v-6h-6M5 15a7 7 0 0012 3M19 9A7 7 0 007 6" /></svg>
          </span>
          Automatic backups
        </dt>
        <dd class="mt-3 text-sm leading-6 text-gray-600 dark:text-gray-400">Point-in-time restore for the last 30 days, tested every week.</dd>
      </div>
      <div class="rounded-2xl bg-white p-6 shadow-sm ring-1 ring-gray-200 dark:bg-gray-950 dark:ring-gray-800">
        <dt class="flex items-center gap-3 font-semibold text-gray-900 dark:text-white">
          <span class="flex size-10 items-center justify-center rounded-lg bg-indigo-600 text-white" aria-hidden="true">
            <svg class="size-5" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M8 9l-4 3 4 3m8-6l4 3-4 3M14 5l-4 14" /></svg>
          </span>
          Open API
        </dt>
        <dd class="mt-3 text-sm leading-6 text-gray-600 dark:text-gray-400">A documented REST API and webhooks for everything you can do in the app.</dd>
      </div>
    </dl>
  </div>
</section>

Centered hero

Headline, supporting text and two calls to action, centered.

Source

New: version 2.0 is out

Ship your next idea in a weekend

Everything you need to launch: authentication, billing and a dashboard, wired together and ready to customize.

View code
<section class="bg-white px-6 py-24 dark:bg-gray-950 sm:py-32">
  <div class="mx-auto max-w-2xl text-center">
    <p class="inline-flex items-center gap-2 rounded-full bg-indigo-50 px-3 py-1 text-sm font-medium text-indigo-700 ring-1 ring-indigo-600/20 ring-inset dark:bg-indigo-500/10 dark:text-indigo-300 dark:ring-indigo-400/30">
      New: version 2.0 is out
    </p>
    <h1 class="mt-6 text-4xl font-bold tracking-tight text-balance text-gray-900 dark:text-white sm:text-6xl">
      Ship your next idea in a weekend
    </h1>
    <p class="mt-6 text-lg leading-8 text-pretty text-gray-600 dark:text-gray-300">
      Everything you need to launch: authentication, billing and a dashboard, wired together and ready to customize.
    </p>
    <div class="mt-10 flex flex-col items-center justify-center gap-4 sm:flex-row">
      <a href="#" class="w-full rounded-lg bg-indigo-600 px-5 py-3 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:w-auto">
        Get started free
      </a>
      <a href="#" class="w-full rounded-lg px-5 py-3 text-sm font-semibold text-gray-900 ring-1 ring-gray-300 hover:bg-gray-50 dark:text-white dark:ring-gray-700 dark:hover:bg-gray-900 sm:w-auto">
        Read the docs <span aria-hidden="true">&rarr;</span>
      </a>
    </div>
  </div>
</section>

Split hero with image

Text on the left, image on the right, stacks on mobile.

Source

Analytics your whole team can read

Plain-language dashboards, scheduled reports and alerts that land where your team already works.

  • Connect a data source in minutes
  • Share read-only links with anyone
  • Alerts by email or chat
Your screenshot here
View code
<section class="bg-white dark:bg-gray-950">
  <div class="mx-auto grid max-w-7xl items-center gap-12 px-6 py-20 lg:grid-cols-2 lg:py-28">
    <div>
      <h1 class="text-4xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-5xl">
        Analytics your whole team can read
      </h1>
      <p class="mt-6 text-lg leading-8 text-gray-600 dark:text-gray-300">
        Plain-language dashboards, scheduled reports and alerts that land where your team already works.
      </p>
      <ul class="mt-8 space-y-3 text-gray-700 dark:text-gray-300">
        <li class="flex gap-3">
          <svg class="size-6 flex-none text-indigo-600 dark:text-indigo-400" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" /></svg>
          Connect a data source in minutes
        </li>
        <li class="flex gap-3">
          <svg class="size-6 flex-none text-indigo-600 dark:text-indigo-400" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" /></svg>
          Share read-only links with anyone
        </li>
        <li class="flex gap-3">
          <svg class="size-6 flex-none text-indigo-600 dark:text-indigo-400" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" /></svg>
          Alerts by email or chat
        </li>
      </ul>
      <div class="mt-10 flex gap-4">
        <a href="#" class="rounded-lg bg-gray-900 px-5 py-3 text-sm font-semibold text-white hover:bg-gray-700 dark:bg-white dark:text-gray-900 dark:hover:bg-gray-200">Start a trial</a>
        <a href="#" class="rounded-lg px-5 py-3 text-sm font-semibold text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-900">Book a demo</a>
      </div>
    </div>
    <div class="aspect-[4/3] w-full overflow-hidden rounded-2xl bg-linear-to-br from-indigo-500 via-purple-500 to-pink-500 shadow-xl">
      <!-- Replace with your screenshot: <img src="..." alt="Product dashboard" class="size-full object-cover" /> -->
      <div class="flex size-full items-center justify-center text-lg font-semibold text-white/90">Your screenshot here</div>
    </div>
  </div>
</section>

Logo cloud

"Trusted by" row. Swap the placeholder names for logos you have permission to use.

Source

Used by teams at

  • Northwind
  • Globex
  • Initech
  • Umbrella
  • Hooli
View code
<section class="bg-white px-6 py-16 dark:bg-gray-950">
  <p class="text-center text-sm font-semibold text-gray-600 dark:text-gray-400">Used by teams at</p>
  <ul class="mx-auto mt-8 grid max-w-4xl grid-cols-2 items-center gap-8 text-center text-lg font-bold tracking-tight text-gray-400 sm:grid-cols-3 lg:grid-cols-5 dark:text-gray-600">
    <li>Northwind</li>
    <li>Globex</li>
    <li>Initech</li>
    <li>Umbrella</li>
    <li class="col-span-2 sm:col-span-1">Hooli</li>
  </ul>
</section>

Newsletter signup

Inline email form with label, privacy note and button.

Source

Get one useful email a month

Product updates and practical guides. No spam, unsubscribe in one click.

We care about your data. Read our privacy policy.

View code
<section class="bg-gray-900 px-6 py-16">
  <div class="mx-auto flex max-w-5xl flex-col gap-8 lg:flex-row lg:items-center lg:justify-between">
    <div class="max-w-xl">
      <h2 class="text-2xl font-bold tracking-tight text-white sm:text-3xl">Get one useful email a month</h2>
      <p class="mt-3 text-gray-300">Product updates and practical guides. No spam, unsubscribe in one click.</p>
    </div>
    <form class="w-full max-w-md" action="#" method="post">
      <div class="flex flex-col gap-3 sm:flex-row">
        <label for="newsletter-email" class="sr-only">Email address</label>
        <input id="newsletter-email" name="email" type="email" autocomplete="email" required placeholder="you@example.com"
          class="min-w-0 flex-auto rounded-lg bg-white/5 px-3.5 py-2.5 text-white ring-1 ring-white/10 ring-inset placeholder:text-gray-500 focus:ring-2 focus:ring-indigo-500 focus:outline-hidden" />
        <button type="submit" class="rounded-lg bg-indigo-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-indigo-400 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-500">Subscribe</button>
      </div>
      <p class="mt-3 text-xs text-gray-400">We care about your data. Read our <a href="#" class="font-medium text-white underline">privacy policy</a>.</p>
    </form>
  </div>
</section>

Pricing table, three tiers

Three plans with a highlighted middle tier and feature lists.

Source

Simple, honest pricing

Start free. Upgrade when your team grows. Cancel anytime.

Starter

For side projects and trying things out.

$0/month

  • 1 project
  • 1,000 events / month
  • Community support
Start free

Most popular

Team

For growing teams that need collaboration.

$29/month

  • Unlimited projects
  • 100,000 events / month
  • Up to 10 teammates
  • Email support
Start 14-day trial

Enterprise

For organizations with advanced needs.

Custom

  • SSO and SCIM
  • Audit logs and data residency
  • Dedicated support
Contact sales
View code
<section class="bg-white px-6 py-24 dark:bg-gray-950">
  <div class="mx-auto max-w-2xl text-center">
    <h2 class="text-3xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-4xl">Simple, honest pricing</h2>
    <p class="mt-4 text-lg text-gray-600 dark:text-gray-400">Start free. Upgrade when your team grows. Cancel anytime.</p>
  </div>
  <div class="mx-auto mt-16 grid max-w-6xl gap-8 lg:grid-cols-3">
    <div class="flex flex-col rounded-3xl p-8 ring-1 ring-gray-200 dark:ring-gray-800">
      <h3 class="text-lg font-semibold text-gray-900 dark:text-white">Starter</h3>
      <p class="mt-2 text-sm text-gray-600 dark:text-gray-400">For side projects and trying things out.</p>
      <p class="mt-6 flex items-baseline gap-1"><span class="text-4xl font-bold text-gray-900 dark:text-white">$0</span><span class="text-sm text-gray-600 dark:text-gray-400">/month</span></p>
      <ul class="mt-8 flex-1 space-y-3 text-sm text-gray-700 dark:text-gray-300">
        <li class="flex gap-2"><span class="text-indigo-600 dark:text-indigo-400" aria-hidden="true">&#10003;</span> 1 project</li>
        <li class="flex gap-2"><span class="text-indigo-600 dark:text-indigo-400" aria-hidden="true">&#10003;</span> 1,000 events / month</li>
        <li class="flex gap-2"><span class="text-indigo-600 dark:text-indigo-400" aria-hidden="true">&#10003;</span> Community support</li>
      </ul>
      <a href="#" class="mt-8 rounded-lg px-4 py-2.5 text-center text-sm font-semibold text-indigo-600 ring-1 ring-indigo-200 ring-inset hover:ring-indigo-300 dark:text-indigo-400 dark:ring-indigo-500/40">Start free</a>
    </div>
    <div class="relative flex flex-col rounded-3xl bg-gray-900 p-8 shadow-2xl ring-2 ring-indigo-600 dark:bg-gray-900">
      <p class="absolute -top-3 left-1/2 -translate-x-1/2 rounded-full bg-indigo-600 px-3 py-1 text-xs font-semibold text-white">Most popular</p>
      <h3 class="text-lg font-semibold text-white">Team</h3>
      <p class="mt-2 text-sm text-gray-300">For growing teams that need collaboration.</p>
      <p class="mt-6 flex items-baseline gap-1"><span class="text-4xl font-bold text-white">$29</span><span class="text-sm text-gray-300">/month</span></p>
      <ul class="mt-8 flex-1 space-y-3 text-sm text-gray-200">
        <li class="flex gap-2"><span class="text-indigo-400" aria-hidden="true">&#10003;</span> Unlimited projects</li>
        <li class="flex gap-2"><span class="text-indigo-400" aria-hidden="true">&#10003;</span> 100,000 events / month</li>
        <li class="flex gap-2"><span class="text-indigo-400" aria-hidden="true">&#10003;</span> Up to 10 teammates</li>
        <li class="flex gap-2"><span class="text-indigo-400" aria-hidden="true">&#10003;</span> Email support</li>
      </ul>
      <a href="#" class="mt-8 rounded-lg bg-indigo-600 px-4 py-2.5 text-center text-sm font-semibold text-white hover:bg-indigo-500">Start 14-day trial</a>
    </div>
    <div class="flex flex-col rounded-3xl p-8 ring-1 ring-gray-200 dark:ring-gray-800">
      <h3 class="text-lg font-semibold text-gray-900 dark:text-white">Enterprise</h3>
      <p class="mt-2 text-sm text-gray-600 dark:text-gray-400">For organizations with advanced needs.</p>
      <p class="mt-6 flex items-baseline gap-1"><span class="text-4xl font-bold text-gray-900 dark:text-white">Custom</span></p>
      <ul class="mt-8 flex-1 space-y-3 text-sm text-gray-700 dark:text-gray-300">
        <li class="flex gap-2"><span class="text-indigo-600 dark:text-indigo-400" aria-hidden="true">&#10003;</span> SSO and SCIM</li>
        <li class="flex gap-2"><span class="text-indigo-600 dark:text-indigo-400" aria-hidden="true">&#10003;</span> Audit logs and data residency</li>
        <li class="flex gap-2"><span class="text-indigo-600 dark:text-indigo-400" aria-hidden="true">&#10003;</span> Dedicated support</li>
      </ul>
      <a href="#" class="mt-8 rounded-lg px-4 py-2.5 text-center text-sm font-semibold text-indigo-600 ring-1 ring-indigo-200 ring-inset hover:ring-indigo-300 dark:text-indigo-400 dark:ring-indigo-500/40">Contact sales</a>
    </div>
  </div>
</section>

Testimonial quote

A single customer quote with name and role. Replace the sample text with a real quote.

Source

“Sample quote: describe the concrete result a real customer got, in their own words. Keep it short and specific.”

Customer Name
Role, Company
View code
<section class="bg-white px-6 py-24 dark:bg-gray-950">
  <figure class="mx-auto max-w-3xl text-center">
    <blockquote class="text-xl leading-9 font-medium text-gray-900 dark:text-white sm:text-2xl">
      <p>&ldquo;Sample quote: describe the concrete result a real customer got, in their own words. Keep it short and specific.&rdquo;</p>
    </blockquote>
    <figcaption class="mt-8 flex items-center justify-center gap-4">
      <span class="flex size-12 items-center justify-center rounded-full bg-indigo-100 text-sm font-semibold text-indigo-700 dark:bg-indigo-500/20 dark:text-indigo-300" aria-hidden="true">JD</span>
      <div class="text-left">
        <div class="font-semibold text-gray-900 dark:text-white">Customer Name</div>
        <div class="text-sm text-gray-600 dark:text-gray-400">Role, Company</div>
      </div>
    </figcaption>
  </figure>
</section>

Application UI

Avatar group

Overlapping initials avatars with a "+N" counter.

Source
RO BI MC +5

8 people are working on this

View code
<div class="flex items-center px-6 py-6">
  <div class="flex -space-x-3">
    <span class="flex size-10 items-center justify-center rounded-full bg-rose-500 text-sm font-semibold text-white ring-2 ring-white dark:ring-gray-950" title="Rae Ortiz">RO</span>
    <span class="flex size-10 items-center justify-center rounded-full bg-amber-500 text-sm font-semibold text-white ring-2 ring-white dark:ring-gray-950" title="Ben Ito">BI</span>
    <span class="flex size-10 items-center justify-center rounded-full bg-emerald-500 text-sm font-semibold text-white ring-2 ring-white dark:ring-gray-950" title="Mia Chen">MC</span>
    <span class="flex size-10 items-center justify-center rounded-full bg-gray-200 text-sm font-semibold text-gray-700 ring-2 ring-white dark:bg-gray-800 dark:text-gray-200 dark:ring-gray-950">+5</span>
  </div>
  <p class="ml-4 text-sm text-gray-600 dark:text-gray-400">8 people are working on this</p>
</div>

Blog post card

Cover, category, title, excerpt and author row.

Source

Engineering

How we cut our build time in half

A look at the caching, parallelism and dependency changes that made the difference.

Sam Kim

· 6 min read

View code
<article class="flex w-80 flex-col overflow-hidden rounded-2xl bg-white shadow-sm ring-1 ring-gray-200 dark:bg-gray-900 dark:ring-gray-800">
  <div class="aspect-video bg-linear-to-r from-sky-400 to-indigo-500"></div>
  <div class="flex flex-1 flex-col p-6">
    <p class="text-xs font-semibold tracking-wide text-indigo-600 uppercase dark:text-indigo-400">Engineering</p>
    <h3 class="mt-2 text-lg font-semibold text-gray-900 dark:text-white"><a href="#" class="hover:underline">How we cut our build time in half</a></h3>
    <p class="mt-2 flex-1 text-sm text-gray-600 dark:text-gray-400">A look at the caching, parallelism and dependency changes that made the difference.</p>
    <div class="mt-6 flex items-center gap-3 text-sm">
      <span class="flex size-9 items-center justify-center rounded-full bg-gray-200 font-semibold text-gray-700 dark:bg-gray-800 dark:text-gray-200" aria-hidden="true">SK</span>
      <div>
        <p class="font-medium text-gray-900 dark:text-white">Sam Kim</p>
        <p class="text-gray-500 dark:text-gray-400"><time datetime="2026-11-12">Nov 12, 2026</time> &middot; 6 min read</p>
      </div>
    </div>
  </div>
</article>

Product card

Image, title, price, rating and add-to-cart button.

Source

Sand glaze, 350 ml

★★★★★ (128)

View code
<article class="w-72 overflow-hidden rounded-2xl bg-white shadow-sm ring-1 ring-gray-200 dark:bg-gray-900 dark:ring-gray-800">
  <div class="aspect-square bg-linear-to-br from-amber-200 to-rose-300">
    <!-- <img src="..." alt="Ceramic mug in sand color" class="size-full object-cover" /> -->
  </div>
  <div class="p-5">
    <div class="flex items-start justify-between gap-3">
      <h3 class="font-semibold text-gray-900 dark:text-white"><a href="#">Ceramic mug</a></h3>
      <p class="font-semibold text-gray-900 dark:text-white">$24</p>
    </div>
    <p class="mt-1 text-sm text-gray-600 dark:text-gray-400">Sand glaze, 350 ml</p>
    <p class="mt-2 text-sm text-amber-500" aria-label="Rated 4 out of 5">&#9733;&#9733;&#9733;&#9733;<span class="text-gray-300 dark:text-gray-700">&#9733;</span> <span class="text-gray-500">(128)</span></p>
    <button type="button" class="mt-4 w-full cursor-pointer rounded-lg bg-gray-900 px-4 py-2.5 text-sm font-semibold text-white hover:bg-gray-700 dark:bg-white dark:text-gray-900 dark:hover:bg-gray-200">Add to cart</button>
  </div>
</article>

Dropdown menu

Native details/summary dropdown with grouped items and a destructive action. Add JS to close on outside click if needed.

Source
View code
<div class="flex justify-center px-6 py-6 pb-56">
  <details class="relative">
    <summary class="inline-flex cursor-pointer list-none items-center gap-2 rounded-lg bg-white px-4 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-gray-300 hover:bg-gray-50 dark:bg-gray-900 dark:text-white dark:ring-gray-700 [&::-webkit-details-marker]:hidden">
      Options
      <svg class="size-4" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7" /></svg>
    </summary>
    <div class="absolute right-0 z-10 mt-2 w-52 divide-y divide-gray-100 rounded-xl bg-white shadow-lg ring-1 ring-gray-200 dark:divide-gray-800 dark:bg-gray-900 dark:ring-gray-800">
      <div class="p-1">
        <a href="#" class="block rounded-lg px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800">Edit</a>
        <a href="#" class="block rounded-lg px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800">Duplicate</a>
        <a href="#" class="block rounded-lg px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800">Archive</a>
      </div>
      <div class="p-1">
        <a href="#" class="block rounded-lg px-3 py-2 text-sm text-red-600 hover:bg-red-50 dark:text-red-400 dark:hover:bg-red-500/10">Delete</a>
      </div>
    </div>
  </details>
</div>

Empty state

Friendly empty state with icon, message and primary action.

Source

No projects yet

Create your first project to start tracking work.

View code
<div class="mx-auto max-w-md rounded-2xl border-2 border-dashed border-gray-300 px-6 py-12 text-center dark:border-gray-700">
  <svg class="mx-auto size-12 text-gray-400" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2V7z" /></svg>
  <h3 class="mt-4 text-sm font-semibold text-gray-900 dark:text-white">No projects yet</h3>
  <p class="mt-1 text-sm text-gray-500 dark:text-gray-400">Create your first project to start tracking work.</p>
  <button type="button" class="mt-6 inline-flex cursor-pointer items-center gap-2 rounded-lg bg-indigo-600 px-4 py-2 text-sm font-semibold text-white hover:bg-indigo-500">
    <span aria-hidden="true">+</span> New project
  </button>
</div>

Modal dialog

Confirmation modal on the native dialog element: focus trapping, Esc to close and backdrop come from the browser.

Source

Delete this project?

All tasks and files in this project will be permanently removed. This cannot be undone.

View code
<div class="px-6 py-6">
  <button type="button" onclick="document.getElementById('confirm-dialog').showModal()" class="cursor-pointer rounded-lg bg-red-600 px-4 py-2 text-sm font-semibold text-white hover:bg-red-500">Delete project</button>
  <dialog id="confirm-dialog" aria-labelledby="confirm-title" class="m-auto w-full max-w-md rounded-2xl bg-white p-0 shadow-2xl backdrop:bg-gray-950/60 dark:bg-gray-900">
    <form method="dialog" class="p-6">
      <h2 id="confirm-title" class="text-lg font-semibold text-gray-900 dark:text-white">Delete this project?</h2>
      <p class="mt-2 text-sm text-gray-600 dark:text-gray-400">All tasks and files in this project will be permanently removed. This cannot be undone.</p>
      <div class="mt-6 flex justify-end gap-3">
        <button value="cancel" class="cursor-pointer rounded-lg px-4 py-2 text-sm font-semibold text-gray-700 ring-1 ring-gray-300 hover:bg-gray-50 dark:text-gray-200 dark:ring-gray-700 dark:hover:bg-gray-800">Cancel</button>
        <button value="confirm" class="cursor-pointer rounded-lg bg-red-600 px-4 py-2 text-sm font-semibold text-white hover:bg-red-500">Delete</button>
      </div>
    </form>
  </dialog>
</div>

Settings panel

Two-column settings section with label, help text and form controls.

Source

Profile

This information is shown to your teammates.

A sentence or two about what you work on.

View code
<form class="mx-auto max-w-4xl divide-y divide-gray-200 px-6 dark:divide-gray-800" action="#" method="post">
  <div class="grid gap-6 py-8 md:grid-cols-3">
    <div>
      <h2 class="font-semibold text-gray-900 dark:text-white">Profile</h2>
      <p class="mt-1 text-sm text-gray-600 dark:text-gray-400">This information is shown to your teammates.</p>
    </div>
    <div class="space-y-5 md:col-span-2">
      <div>
        <label for="display-name" class="block text-sm font-medium text-gray-900 dark:text-white">Display name</label>
        <input id="display-name" name="displayName" type="text" value="Alex Lee" class="mt-2 block w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-gray-900 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-500/30 focus:outline-hidden dark:border-gray-700 dark:bg-gray-900 dark:text-white" />
      </div>
      <div>
        <label for="bio" class="block text-sm font-medium text-gray-900 dark:text-white">Bio</label>
        <textarea id="bio" name="bio" rows="3" class="mt-2 block w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-gray-900 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-500/30 focus:outline-hidden dark:border-gray-700 dark:bg-gray-900 dark:text-white"></textarea>
        <p class="mt-2 text-xs text-gray-500 dark:text-gray-400">A sentence or two about what you work on.</p>
      </div>
    </div>
  </div>
  <div class="flex justify-end gap-3 py-6">
    <button type="reset" class="cursor-pointer rounded-lg px-4 py-2 text-sm font-semibold text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800">Cancel</button>
    <button type="submit" class="cursor-pointer rounded-lg bg-indigo-600 px-4 py-2 text-sm font-semibold text-white hover:bg-indigo-500">Save</button>
  </div>
</form>

Forms

Selectable option cards

Radio cards for plan or shipping selection using has-checked styling.

Source
Shipping method
View code
<fieldset class="max-w-2xl px-6 py-6">
  <legend class="text-sm font-semibold text-gray-900 dark:text-white">Shipping method</legend>
  <div class="mt-4 grid gap-4 sm:grid-cols-2">
    <label class="flex cursor-pointer gap-3 rounded-xl p-4 ring-1 ring-gray-300 has-checked:bg-indigo-50 has-checked:ring-2 has-checked:ring-indigo-600 dark:ring-gray-700 dark:has-checked:bg-indigo-500/10">
      <input type="radio" name="shipping" value="standard" class="mt-1 accent-indigo-600" checked />
      <span>
        <span class="block text-sm font-medium text-gray-900 dark:text-white">Standard</span>
        <span class="block text-sm text-gray-500 dark:text-gray-400">4 to 10 business days</span>
        <span class="mt-2 block text-sm font-semibold text-gray-900 dark:text-white">$5.00</span>
      </span>
    </label>
    <label class="flex cursor-pointer gap-3 rounded-xl p-4 ring-1 ring-gray-300 has-checked:bg-indigo-50 has-checked:ring-2 has-checked:ring-indigo-600 dark:ring-gray-700 dark:has-checked:bg-indigo-500/10">
      <input type="radio" name="shipping" value="express" class="mt-1 accent-indigo-600" />
      <span>
        <span class="block text-sm font-medium text-gray-900 dark:text-white">Express</span>
        <span class="block text-sm text-gray-500 dark:text-gray-400">2 to 3 business days</span>
        <span class="mt-2 block text-sm font-semibold text-gray-900 dark:text-white">$16.00</span>
      </span>
    </label>
  </div>
</fieldset>

Contact form

Two-column contact form with validation-friendly markup and a consent checkbox.

Source
View code
<form class="mx-auto grid max-w-2xl gap-6 px-6 py-12 sm:grid-cols-2" action="#" method="post">
  <div>
    <label for="first-name" class="block text-sm font-medium text-gray-900 dark:text-white">First name</label>
    <input id="first-name" name="firstName" type="text" autocomplete="given-name" required class="mt-2 block w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-gray-900 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-500/30 focus:outline-hidden dark:border-gray-700 dark:bg-gray-900 dark:text-white" />
  </div>
  <div>
    <label for="last-name" class="block text-sm font-medium text-gray-900 dark:text-white">Last name</label>
    <input id="last-name" name="lastName" type="text" autocomplete="family-name" class="mt-2 block w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-gray-900 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-500/30 focus:outline-hidden dark:border-gray-700 dark:bg-gray-900 dark:text-white" />
  </div>
  <div class="sm:col-span-2">
    <label for="contact-email" class="block text-sm font-medium text-gray-900 dark:text-white">Email</label>
    <input id="contact-email" name="email" type="email" autocomplete="email" required class="peer mt-2 block w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-gray-900 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-500/30 focus:outline-hidden user-invalid:border-red-500 dark:border-gray-700 dark:bg-gray-900 dark:text-white" />
    <p class="mt-2 hidden text-sm text-red-600 peer-user-invalid:block dark:text-red-400">Please enter a valid email address.</p>
  </div>
  <div class="sm:col-span-2">
    <label for="topic" class="block text-sm font-medium text-gray-900 dark:text-white">Topic</label>
    <select id="topic" name="topic" class="mt-2 block w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-gray-900 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-500/30 focus:outline-hidden dark:border-gray-700 dark:bg-gray-900 dark:text-white">
      <option>Sales</option>
      <option>Support</option>
      <option>Partnerships</option>
    </select>
  </div>
  <div class="sm:col-span-2">
    <label for="message" class="block text-sm font-medium text-gray-900 dark:text-white">Message</label>
    <textarea id="message" name="message" rows="5" required class="mt-2 block w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-gray-900 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-500/30 focus:outline-hidden dark:border-gray-700 dark:bg-gray-900 dark:text-white"></textarea>
  </div>
  <label class="flex items-start gap-3 text-sm text-gray-600 sm:col-span-2 dark:text-gray-400">
    <input type="checkbox" name="consent" required class="mt-0.5 size-4 accent-indigo-600" />
    I agree that my details may be used to respond to this message.
  </label>
  <div class="sm:col-span-2">
    <button type="submit" class="w-full cursor-pointer rounded-lg bg-indigo-600 px-4 py-2.5 text-sm font-semibold text-white hover:bg-indigo-500">Send message</button>
  </div>
</form>

File upload dropzone

Dashed upload area wrapping a real file input, so click and keyboard work without JavaScript.

Source
View code
<div class="max-w-xl px-6 py-6">
  <label for="file-upload" class="flex cursor-pointer flex-col items-center rounded-2xl border-2 border-dashed border-gray-300 px-6 py-10 text-center hover:border-indigo-400 focus-within:border-indigo-500 dark:border-gray-700">
    <svg class="size-10 text-gray-400" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M12 16V4m0 0l-4 4m4-4l4 4M4 16v2a2 2 0 002 2h12a2 2 0 002-2v-2" /></svg>
    <span class="mt-4 text-sm font-semibold text-indigo-600 dark:text-indigo-400">Upload a file</span>
    <span class="mt-1 text-sm text-gray-600 dark:text-gray-400">or drag and drop</span>
    <span class="mt-2 text-xs text-gray-500">PNG, JPG or PDF up to 10 MB</span>
    <input id="file-upload" name="file" type="file" accept=".png,.jpg,.jpeg,.pdf" class="sr-only" />
  </label>
</div>

Input variants

Input with leading icon, with an add-on prefix, with an error state and disabled.

Source
https://

That username is taken.

View code
<div class="grid max-w-xl gap-6 px-6 py-6">
  <div>
    <label for="search-docs" class="block text-sm font-medium text-gray-900 dark:text-white">Search</label>
    <div class="relative mt-2">
      <svg class="pointer-events-none absolute top-1/2 left-3 size-5 -translate-y-1/2 text-gray-400" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" d="M21 21l-4.3-4.3M17 10.5a6.5 6.5 0 11-13 0 6.5 6.5 0 0113 0z" /></svg>
      <input id="search-docs" type="search" placeholder="Search docs" class="block w-full rounded-lg border border-gray-300 bg-white py-2 pr-3 pl-10 text-gray-900 placeholder:text-gray-400 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-500/30 focus:outline-hidden dark:border-gray-700 dark:bg-gray-900 dark:text-white" />
    </div>
  </div>
  <div>
    <label for="website" class="block text-sm font-medium text-gray-900 dark:text-white">Website</label>
    <div class="mt-2 flex rounded-lg border border-gray-300 bg-white focus-within:border-indigo-500 focus-within:ring-2 focus-within:ring-indigo-500/30 dark:border-gray-700 dark:bg-gray-900">
      <span class="flex items-center border-r border-gray-300 px-3 text-sm text-gray-500 dark:border-gray-700 dark:text-gray-400">https://</span>
      <input id="website" type="text" placeholder="example.com" class="block w-full min-w-0 rounded-r-lg bg-transparent px-3 py-2 text-gray-900 focus:outline-hidden dark:text-white" />
    </div>
  </div>
  <div>
    <label for="username" class="block text-sm font-medium text-gray-900 dark:text-white">Username</label>
    <input id="username" type="text" value="admin" aria-invalid="true" aria-describedby="username-error" class="mt-2 block w-full rounded-lg border border-red-500 bg-white px-3 py-2 text-red-900 focus:ring-2 focus:ring-red-500/30 focus:outline-hidden dark:bg-gray-900 dark:text-red-300" />
    <p id="username-error" class="mt-2 text-sm text-red-600 dark:text-red-400">That username is taken.</p>
  </div>
  <div>
    <label for="plan" class="block text-sm font-medium text-gray-500">Plan (managed by your admin)</label>
    <input id="plan" type="text" value="Team" disabled class="mt-2 block w-full cursor-not-allowed rounded-lg border border-gray-200 bg-gray-50 px-3 py-2 text-gray-500 dark:border-gray-800 dark:bg-gray-900" />
  </div>
</div>

Sign-in form

Email and password form with labels, remember-me, forgot link and social button slot.

Source

Sign in to your account

Forgot password?

No account? Start a free trial

View code
<div class="flex justify-center bg-gray-50 px-6 py-16 dark:bg-gray-900">
  <div class="w-full max-w-sm">
    <h2 class="text-center text-2xl font-bold tracking-tight text-gray-900 dark:text-white">Sign in to your account</h2>
    <form class="mt-8 space-y-5 rounded-2xl bg-white p-8 shadow-sm ring-1 ring-gray-200 dark:bg-gray-950 dark:ring-gray-800" action="#" method="post">
      <div>
        <label for="signin-email" class="block text-sm font-medium text-gray-900 dark:text-white">Email</label>
        <input id="signin-email" name="email" type="email" autocomplete="email" required class="mt-2 block w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-gray-900 placeholder:text-gray-400 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-500/30 focus:outline-hidden dark:border-gray-700 dark:bg-gray-900 dark:text-white" />
      </div>
      <div>
        <div class="flex items-center justify-between">
          <label for="signin-password" class="block text-sm font-medium text-gray-900 dark:text-white">Password</label>
          <a href="#" class="text-sm font-medium text-indigo-600 hover:text-indigo-500 dark:text-indigo-400">Forgot password?</a>
        </div>
        <input id="signin-password" name="password" type="password" autocomplete="current-password" required class="mt-2 block w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-gray-900 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-500/30 focus:outline-hidden dark:border-gray-700 dark:bg-gray-900 dark:text-white" />
      </div>
      <label class="flex items-center gap-2 text-sm text-gray-700 dark:text-gray-300">
        <input type="checkbox" name="remember" class="size-4 accent-indigo-600" />
        Remember me
      </label>
      <button type="submit" class="w-full cursor-pointer rounded-lg bg-indigo-600 px-4 py-2.5 text-sm font-semibold text-white hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">Sign in</button>
    </form>
    <p class="mt-6 text-center text-sm text-gray-600 dark:text-gray-400">No account? <a href="#" class="font-semibold text-indigo-600 hover:text-indigo-500 dark:text-indigo-400">Start a free trial</a></p>
  </div>
</div>

Toggle switch

Accessible switch built from a checkbox with role=switch and the peer modifier.

Source
View code
<div class="px-6 py-6">
  <label class="flex cursor-pointer items-center justify-between gap-6 max-w-sm">
    <span>
      <span class="block text-sm font-medium text-gray-900 dark:text-white">Email notifications</span>
      <span class="block text-sm text-gray-500 dark:text-gray-400">Get a daily summary of activity.</span>
    </span>
    <span class="relative inline-flex flex-none">
      <input type="checkbox" role="switch" class="peer sr-only" checked />
      <span class="h-6 w-11 rounded-full bg-gray-300 transition-colors peer-checked:bg-indigo-600 peer-focus-visible:ring-2 peer-focus-visible:ring-indigo-500 peer-focus-visible:ring-offset-2 dark:bg-gray-700 dark:peer-focus-visible:ring-offset-gray-950"></span>
      <span class="absolute top-0.5 left-0.5 size-5 rounded-full bg-white shadow-sm transition-transform peer-checked:translate-x-5"></span>
    </span>
  </label>
</div>

Feedback

Alerts

Info, success, warning and error alerts with icons and accessible roles.

Source

Heads up: scheduled maintenance on Sunday from 02:00 to 03:00 UTC.

Saved. Your changes are live.

Almost full: you have used 90% of your storage.

View code
<div class="max-w-2xl space-y-4 px-6 py-6">
  <div class="flex gap-3 rounded-xl bg-blue-50 p-4 text-sm text-blue-800 ring-1 ring-blue-200 dark:bg-blue-500/10 dark:text-blue-200 dark:ring-blue-500/30" role="status">
    <span aria-hidden="true" class="font-bold">i</span>
    <p><strong class="font-semibold">Heads up:</strong> scheduled maintenance on Sunday from 02:00 to 03:00 UTC.</p>
  </div>
  <div class="flex gap-3 rounded-xl bg-green-50 p-4 text-sm text-green-800 ring-1 ring-green-200 dark:bg-green-500/10 dark:text-green-200 dark:ring-green-500/30" role="status">
    <span aria-hidden="true">&#10003;</span>
    <p><strong class="font-semibold">Saved.</strong> Your changes are live.</p>
  </div>
  <div class="flex gap-3 rounded-xl bg-amber-50 p-4 text-sm text-amber-800 ring-1 ring-amber-200 dark:bg-amber-500/10 dark:text-amber-200 dark:ring-amber-500/30" role="status">
    <span aria-hidden="true">!</span>
    <p><strong class="font-semibold">Almost full:</strong> you have used 90% of your storage.</p>
  </div>
  <div class="flex gap-3 rounded-xl bg-red-50 p-4 text-sm text-red-800 ring-1 ring-red-200 dark:bg-red-500/10 dark:text-red-200 dark:ring-red-500/30" role="alert">
    <span aria-hidden="true">&times;</span>
    <div>
      <p class="font-semibold">There were 2 errors with your submission</p>
      <ul class="mt-2 list-disc pl-5">
        <li>Email is already in use</li>
        <li>Password must be at least 12 characters</li>
      </ul>
    </div>
  </div>
</div>

Badges

Status badges in several colors, with and without a dot.

Source
Draft Active Pending Failed New
View code
<div class="flex flex-wrap gap-2 px-6 py-6">
  <span class="inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-700 dark:bg-gray-800 dark:text-gray-300">Draft</span>
  <span class="inline-flex items-center gap-1.5 rounded-full bg-green-50 px-2.5 py-0.5 text-xs font-medium text-green-700 ring-1 ring-green-600/20 ring-inset dark:bg-green-500/10 dark:text-green-300"><span class="size-1.5 rounded-full bg-green-500" aria-hidden="true"></span>Active</span>
  <span class="inline-flex items-center gap-1.5 rounded-full bg-amber-50 px-2.5 py-0.5 text-xs font-medium text-amber-700 ring-1 ring-amber-600/20 ring-inset dark:bg-amber-500/10 dark:text-amber-300"><span class="size-1.5 rounded-full bg-amber-500" aria-hidden="true"></span>Pending</span>
  <span class="inline-flex items-center gap-1.5 rounded-full bg-red-50 px-2.5 py-0.5 text-xs font-medium text-red-700 ring-1 ring-red-600/20 ring-inset dark:bg-red-500/10 dark:text-red-300"><span class="size-1.5 rounded-full bg-red-500" aria-hidden="true"></span>Failed</span>
  <span class="inline-flex items-center rounded-md bg-indigo-600 px-2 py-0.5 text-xs font-semibold text-white">New</span>
</div>

Progress bar

Labeled progress bar using role=progressbar with ARIA values.

Source
Uploading files 64%
View code
<div class="max-w-md px-6 py-6">
  <div class="flex justify-between text-sm font-medium text-gray-900 dark:text-white">
    <span id="upload-label">Uploading files</span>
    <span>64%</span>
  </div>
  <div class="mt-2 h-2.5 overflow-hidden rounded-full bg-gray-200 dark:bg-gray-800" role="progressbar" aria-labelledby="upload-label" aria-valuenow="64" aria-valuemin="0" aria-valuemax="100">
    <div class="h-full rounded-full bg-indigo-600 transition-[width]" style="width: 64%"></div>
  </div>
</div>

Skeleton loader

Pulsing placeholder for a card while content loads; respects reduced motion.

Source
View code
<div class="w-80 rounded-2xl p-5 ring-1 ring-gray-200 dark:ring-gray-800" aria-busy="true" aria-label="Loading">
  <div class="flex items-center gap-3 motion-safe:animate-pulse">
    <div class="size-10 rounded-full bg-gray-200 dark:bg-gray-800"></div>
    <div class="flex-1 space-y-2">
      <div class="h-3 w-1/2 rounded-sm bg-gray-200 dark:bg-gray-800"></div>
      <div class="h-3 w-1/3 rounded-sm bg-gray-200 dark:bg-gray-800"></div>
    </div>
  </div>
  <div class="mt-5 space-y-2 motion-safe:animate-pulse">
    <div class="h-3 rounded-sm bg-gray-200 dark:bg-gray-800"></div>
    <div class="h-3 rounded-sm bg-gray-200 dark:bg-gray-800"></div>
    <div class="h-3 w-4/5 rounded-sm bg-gray-200 dark:bg-gray-800"></div>
  </div>
</div>

Loading button

Disabled button with an inline spinner for pending states.

Source
View code
<div class="px-6 py-6">
  <button type="button" disabled class="inline-flex cursor-not-allowed items-center gap-2 rounded-lg bg-indigo-600 px-4 py-2 text-sm font-semibold text-white opacity-80">
    <svg class="size-4 motion-safe:animate-spin" viewBox="0 0 24 24" fill="none" aria-hidden="true">
      <circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" class="opacity-25"></circle>
      <path d="M22 12a10 10 0 00-10-10" stroke="currentColor" stroke-width="4" stroke-linecap="round"></path>
    </svg>
    Saving...
  </button>
</div>

Toast notification

Small notification card with title, message and dismiss button. Position it with fixed bottom-4 right-4 in your app.

Source

Invite sent

We emailed an invitation to sam@example.com.

View code
<div class="flex justify-end px-6 py-6">
  <div class="flex w-full max-w-sm items-start gap-3 rounded-xl bg-white p-4 shadow-lg ring-1 ring-gray-200 dark:bg-gray-900 dark:ring-gray-800" role="status" aria-live="polite">
    <span class="mt-0.5 flex size-6 flex-none items-center justify-center rounded-full bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300" aria-hidden="true">&#10003;</span>
    <div class="flex-1 text-sm">
      <p class="font-semibold text-gray-900 dark:text-white">Invite sent</p>
      <p class="mt-1 text-gray-600 dark:text-gray-400">We emailed an invitation to sam@example.com.</p>
    </div>
    <button type="button" onclick="this.closest('[role=status]').remove()" class="cursor-pointer rounded-md p-1 text-gray-400 hover:text-gray-600 dark:hover:text-gray-200">
      <span class="sr-only">Dismiss</span>
      <svg class="size-4" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" d="M6 6l12 12M18 6L6 18" /></svg>
    </button>
  </div>
</div>

Data display

Activity feed

Vertical timeline of events with connecting line and timestamps.

Source
  1. Mia merged pull request #214

  2. Ben commented on "Checkout redesign"

  3. Rae created the project

View code
<div class="max-w-md px-6 py-6">
  <ol class="relative border-l border-gray-200 dark:border-gray-800">
    <li class="mb-8 ml-6">
      <span class="absolute -left-3 flex size-6 items-center justify-center rounded-full bg-green-100 text-xs text-green-700 ring-4 ring-white dark:bg-green-500/20 dark:text-green-300 dark:ring-gray-950" aria-hidden="true">&#10003;</span>
      <p class="text-sm text-gray-900 dark:text-white"><strong class="font-semibold">Mia</strong> merged pull request #214</p>
      <time class="text-xs text-gray-500 dark:text-gray-400" datetime="2026-12-01T09:12">Today, 09:12</time>
    </li>
    <li class="mb-8 ml-6">
      <span class="absolute -left-3 flex size-6 items-center justify-center rounded-full bg-blue-100 text-xs text-blue-700 ring-4 ring-white dark:bg-blue-500/20 dark:text-blue-300 dark:ring-gray-950" aria-hidden="true">&#9998;</span>
      <p class="text-sm text-gray-900 dark:text-white"><strong class="font-semibold">Ben</strong> commented on "Checkout redesign"</p>
      <time class="text-xs text-gray-500 dark:text-gray-400" datetime="2026-11-30T16:40">Yesterday, 16:40</time>
    </li>
    <li class="ml-6">
      <span class="absolute -left-3 flex size-6 items-center justify-center rounded-full bg-gray-100 text-xs text-gray-700 ring-4 ring-white dark:bg-gray-800 dark:text-gray-300 dark:ring-gray-950" aria-hidden="true">+</span>
      <p class="text-sm text-gray-900 dark:text-white"><strong class="font-semibold">Rae</strong> created the project</p>
      <time class="text-xs text-gray-500 dark:text-gray-400" datetime="2026-11-28T10:00">Nov 28, 10:00</time>
    </li>
  </ol>
</div>

Description list

Key-value details panel for records such as an order or applicant.

Source

Order #10482

Placed on

Customer
Alex Lee
Shipping address
12 Example Street, Springfield
Payment
Card ending 4242
Total
$86.00
View code
<div class="max-w-3xl px-6 py-6">
  <h3 class="text-base font-semibold text-gray-900 dark:text-white">Order #10482</h3>
  <p class="mt-1 text-sm text-gray-500 dark:text-gray-400">Placed on <time datetime="2026-11-28">November 28, 2026</time></p>
  <dl class="mt-6 divide-y divide-gray-200 border-t border-gray-200 text-sm dark:divide-gray-800 dark:border-gray-800">
    <div class="grid gap-1 py-3 sm:grid-cols-3"><dt class="font-medium text-gray-900 dark:text-white">Customer</dt><dd class="text-gray-700 sm:col-span-2 dark:text-gray-300">Alex Lee</dd></div>
    <div class="grid gap-1 py-3 sm:grid-cols-3"><dt class="font-medium text-gray-900 dark:text-white">Shipping address</dt><dd class="text-gray-700 sm:col-span-2 dark:text-gray-300">12 Example Street, Springfield</dd></div>
    <div class="grid gap-1 py-3 sm:grid-cols-3"><dt class="font-medium text-gray-900 dark:text-white">Payment</dt><dd class="text-gray-700 sm:col-span-2 dark:text-gray-300">Card ending 4242</dd></div>
    <div class="grid gap-1 py-3 sm:grid-cols-3"><dt class="font-medium text-gray-900 dark:text-white">Total</dt><dd class="font-semibold text-gray-900 sm:col-span-2 dark:text-white">$86.00</dd></div>
  </dl>
</div>

Kanban column

Board column with header count and task cards showing labels, assignee and due date.

Source

In progress 2

  • Write onboarding emails

    Marketing Due Dec 4
  • Fix flaky checkout test

    Bug BI
View code
<section class="w-72 rounded-2xl bg-gray-100 p-3 dark:bg-gray-900" aria-labelledby="col-in-progress">
  <h3 id="col-in-progress" class="flex items-center justify-between px-1 text-sm font-semibold text-gray-900 dark:text-white">In progress <span class="rounded-full bg-white px-2 text-xs text-gray-600 dark:bg-gray-800 dark:text-gray-300">2</span></h3>
  <ul class="mt-3 space-y-3" role="list">
    <li class="rounded-xl bg-white p-3 shadow-sm ring-1 ring-gray-200 dark:bg-gray-950 dark:ring-gray-800">
      <p class="text-sm font-medium text-gray-900 dark:text-white">Write onboarding emails</p>
      <div class="mt-3 flex items-center justify-between">
        <span class="rounded-md bg-purple-50 px-2 py-0.5 text-xs font-medium text-purple-700 dark:bg-purple-500/10 dark:text-purple-300">Marketing</span>
        <span class="text-xs text-gray-500 dark:text-gray-400">Due Dec 4</span>
      </div>
    </li>
    <li class="rounded-xl bg-white p-3 shadow-sm ring-1 ring-gray-200 dark:bg-gray-950 dark:ring-gray-800">
      <p class="text-sm font-medium text-gray-900 dark:text-white">Fix flaky checkout test</p>
      <div class="mt-3 flex items-center justify-between">
        <span class="rounded-md bg-red-50 px-2 py-0.5 text-xs font-medium text-red-700 dark:bg-red-500/10 dark:text-red-300">Bug</span>
        <span class="flex size-6 items-center justify-center rounded-full bg-amber-500 text-[10px] font-semibold text-white" title="Ben Ito">BI</span>
      </div>
    </li>
  </ul>
</section>

Stats cards

Four KPI cards with value and change indicator.

Source
Revenue
$48,210+12.4%
New customers
312+4.1%
Churn
1.8%+0.3%
Avg. response
2h 14m-18m
View code
<dl class="grid gap-4 px-6 py-6 sm:grid-cols-2 lg:grid-cols-4">
  <div class="rounded-2xl bg-white p-5 shadow-sm ring-1 ring-gray-200 dark:bg-gray-900 dark:ring-gray-800">
    <dt class="text-sm text-gray-500 dark:text-gray-400">Revenue</dt>
    <dd class="mt-2 flex items-baseline justify-between"><span class="text-2xl font-semibold text-gray-900 dark:text-white">$48,210</span><span class="text-sm font-medium text-green-600 dark:text-green-400">+12.4%</span></dd>
  </div>
  <div class="rounded-2xl bg-white p-5 shadow-sm ring-1 ring-gray-200 dark:bg-gray-900 dark:ring-gray-800">
    <dt class="text-sm text-gray-500 dark:text-gray-400">New customers</dt>
    <dd class="mt-2 flex items-baseline justify-between"><span class="text-2xl font-semibold text-gray-900 dark:text-white">312</span><span class="text-sm font-medium text-green-600 dark:text-green-400">+4.1%</span></dd>
  </div>
  <div class="rounded-2xl bg-white p-5 shadow-sm ring-1 ring-gray-200 dark:bg-gray-900 dark:ring-gray-800">
    <dt class="text-sm text-gray-500 dark:text-gray-400">Churn</dt>
    <dd class="mt-2 flex items-baseline justify-between"><span class="text-2xl font-semibold text-gray-900 dark:text-white">1.8%</span><span class="text-sm font-medium text-red-600 dark:text-red-400">+0.3%</span></dd>
  </div>
  <div class="rounded-2xl bg-white p-5 shadow-sm ring-1 ring-gray-200 dark:bg-gray-900 dark:ring-gray-800">
    <dt class="text-sm text-gray-500 dark:text-gray-400">Avg. response</dt>
    <dd class="mt-2 flex items-baseline justify-between"><span class="text-2xl font-semibold text-gray-900 dark:text-white">2h 14m</span><span class="text-sm font-medium text-green-600 dark:text-green-400">-18m</span></dd>
  </div>
</dl>

Data table

Responsive table with header, status badges, row actions and horizontal scroll on small screens.

Source
Team members
Name Email Role Status Actions
Rae Ortiz rae@example.com Admin Active Edit, Rae Ortiz
Ben Ito ben@example.com Editor Invited Edit, Ben Ito
Mia Chen mia@example.com Viewer Suspended Edit, Mia Chen
View code
<div class="px-6 py-6">
  <div class="overflow-x-auto rounded-2xl ring-1 ring-gray-200 dark:ring-gray-800">
    <table class="min-w-full divide-y divide-gray-200 text-left text-sm dark:divide-gray-800">
      <caption class="sr-only">Team members</caption>
      <thead class="bg-gray-50 text-gray-900 dark:bg-gray-900 dark:text-white">
        <tr>
          <th scope="col" class="px-4 py-3 font-semibold">Name</th>
          <th scope="col" class="px-4 py-3 font-semibold">Email</th>
          <th scope="col" class="px-4 py-3 font-semibold">Role</th>
          <th scope="col" class="px-4 py-3 font-semibold">Status</th>
          <th scope="col" class="px-4 py-3"><span class="sr-only">Actions</span></th>
        </tr>
      </thead>
      <tbody class="divide-y divide-gray-200 bg-white text-gray-700 dark:divide-gray-800 dark:bg-gray-950 dark:text-gray-300">
        <tr>
          <td class="px-4 py-3 font-medium whitespace-nowrap text-gray-900 dark:text-white">Rae Ortiz</td>
          <td class="px-4 py-3">rae@example.com</td>
          <td class="px-4 py-3">Admin</td>
          <td class="px-4 py-3"><span class="rounded-full bg-green-50 px-2 py-0.5 text-xs font-medium text-green-700 dark:bg-green-500/10 dark:text-green-300">Active</span></td>
          <td class="px-4 py-3 text-right"><a href="#" class="font-medium text-indigo-600 hover:text-indigo-500 dark:text-indigo-400">Edit<span class="sr-only">, Rae Ortiz</span></a></td>
        </tr>
        <tr>
          <td class="px-4 py-3 font-medium whitespace-nowrap text-gray-900 dark:text-white">Ben Ito</td>
          <td class="px-4 py-3">ben@example.com</td>
          <td class="px-4 py-3">Editor</td>
          <td class="px-4 py-3"><span class="rounded-full bg-amber-50 px-2 py-0.5 text-xs font-medium text-amber-700 dark:bg-amber-500/10 dark:text-amber-300">Invited</span></td>
          <td class="px-4 py-3 text-right"><a href="#" class="font-medium text-indigo-600 hover:text-indigo-500 dark:text-indigo-400">Edit<span class="sr-only">, Ben Ito</span></a></td>
        </tr>
        <tr>
          <td class="px-4 py-3 font-medium whitespace-nowrap text-gray-900 dark:text-white">Mia Chen</td>
          <td class="px-4 py-3">mia@example.com</td>
          <td class="px-4 py-3">Viewer</td>
          <td class="px-4 py-3"><span class="rounded-full bg-gray-100 px-2 py-0.5 text-xs font-medium text-gray-700 dark:bg-gray-800 dark:text-gray-300">Suspended</span></td>
          <td class="px-4 py-3 text-right"><a href="#" class="font-medium text-indigo-600 hover:text-indigo-500 dark:text-indigo-400">Edit<span class="sr-only">, Mia Chen</span></a></td>
        </tr>
      </tbody>
    </table>
  </div>
</div>

User list

Stacked list of people with avatar initials, details and an action button.

Source
  • Rae Ortiz

    Design lead

  • Ben Ito

    Backend engineer

  • Mia Chen

    Product manager

View code
<ul class="max-w-xl divide-y divide-gray-200 px-6 dark:divide-gray-800" role="list">
  <li class="flex items-center gap-4 py-4">
    <span class="flex size-10 flex-none items-center justify-center rounded-full bg-rose-500 text-sm font-semibold text-white" aria-hidden="true">RO</span>
    <div class="min-w-0 flex-1">
      <p class="truncate text-sm font-semibold text-gray-900 dark:text-white">Rae Ortiz</p>
      <p class="truncate text-sm text-gray-500 dark:text-gray-400">Design lead</p>
    </div>
    <button type="button" class="cursor-pointer rounded-lg px-3 py-1.5 text-sm font-semibold text-gray-700 ring-1 ring-gray-300 hover:bg-gray-50 dark:text-gray-200 dark:ring-gray-700 dark:hover:bg-gray-800">Message</button>
  </li>
  <li class="flex items-center gap-4 py-4">
    <span class="flex size-10 flex-none items-center justify-center rounded-full bg-amber-500 text-sm font-semibold text-white" aria-hidden="true">BI</span>
    <div class="min-w-0 flex-1">
      <p class="truncate text-sm font-semibold text-gray-900 dark:text-white">Ben Ito</p>
      <p class="truncate text-sm text-gray-500 dark:text-gray-400">Backend engineer</p>
    </div>
    <button type="button" class="cursor-pointer rounded-lg px-3 py-1.5 text-sm font-semibold text-gray-700 ring-1 ring-gray-300 hover:bg-gray-50 dark:text-gray-200 dark:ring-gray-700 dark:hover:bg-gray-800">Message</button>
  </li>
  <li class="flex items-center gap-4 py-4">
    <span class="flex size-10 flex-none items-center justify-center rounded-full bg-emerald-500 text-sm font-semibold text-white" aria-hidden="true">MC</span>
    <div class="min-w-0 flex-1">
      <p class="truncate text-sm font-semibold text-gray-900 dark:text-white">Mia Chen</p>
      <p class="truncate text-sm text-gray-500 dark:text-gray-400">Product manager</p>
    </div>
    <button type="button" class="cursor-pointer rounded-lg px-3 py-1.5 text-sm font-semibold text-gray-700 ring-1 ring-gray-300 hover:bg-gray-50 dark:text-gray-200 dark:ring-gray-700 dark:hover:bg-gray-800">Message</button>
  </li>
</ul>