CSS Featured Pricing Card

A dark highlighted pricing plan with a "Most popular" badge, check-mark features and a gradient button.

  • pricing
  • most popular
  • badge
  • plan
  • saas
  • dark
HTML
<article class="plan-featured">
  <span class="plan-featured-badge">Most popular</span>
  <h3>Team</h3>
  <p class="plan-featured-price"><strong>$29</strong> per user / month</p>
  <ul>
    <li>Unlimited projects</li>
    <li>Shared component libraries</li>
    <li>SSO and audit log</li>
  </ul>
  <a class="plan-featured-cta" href="#">Start free trial</a>
</article>
CSS
.plan-featured {
  position: relative;
  width: 230px;
  padding: 26px 22px 22px;
  border: 1px solid #6366f1;
  border-radius: 18px;
  background: linear-gradient(180deg, #1e1b4b, #0f172a 60%);
  box-shadow: 0 20px 50px -20px rgba(99, 102, 241, 0.6);
  color: #e0e7ff;
  font-family: system-ui, sans-serif;
}

.plan-featured-badge {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #818cf8, #e879f9);
  color: #1e1b4b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.plan-featured h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.plan-featured-price {
  margin: 6px 0 14px;
  color: #a5b4fc;
  font-size: 13px;
}

.plan-featured-price strong {
  color: #fff;
  font-size: 32px;
}

.plan-featured ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  font-size: 14px;
  list-style: none;
}

.plan-featured li {
  display: flex;
  gap: 8px;
}

.plan-featured li::before {
  content: "✓";
  color: #a5b4fc;
  font-weight: 800;
}

.plan-featured-cta {
  display: block;
  padding: 11px;
  border-radius: 10px;
  background: linear-gradient(90deg, #6366f1, #c026d3);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.plan-featured-cta:hover {
  filter: brightness(1.15);
}

.plan-featured-cta:focus-visible {
  outline: 2px solid #e0e7ff;
  outline-offset: 3px;
}

About this CSS Featured Pricing Card

This CSS Featured Pricing Card is 86 lines of pure CSS (1.5 KB) with no JavaScript and no dependencies. It uses transitions, transforms, linear gradients and box shadows. It works in current versions of Chrome, Edge, Safari and Firefox. It works in any stack: plain HTML, React, Vue, Svelte, Astro, WordPress or Webflow.

CSS features used

Customize it

The colors in this snippet. Search and replace them to match your brand:

  • #6366f1
  • #1e1b4b
  • #0f172a
  • #e0e7ff
  • #818cf8
  • #e879f9
  • #a5b4fc
  • #fff
  • #c026d3

How to use this featured pricing card

  1. Copy the HTML and paste it where you want the element to appear.
  2. Copy the CSS into your stylesheet, or inside a <style> tag.
  3. Keep the .plan-featured class name, or rename it in both places. Then tweak colors, sizes and timing to match your design.
  4. Using React or Next.js? Change class to className in the HTML. The CSS works as is, including in Tailwind projects (put it in your global stylesheet).

Building with an AI tool?

“Copy for AI” copies a short prompt for Cursor, Claude Code, Lovable, Bolt or v0. Your AI tool opens the Markdown version of this snippet and reads the HTML, CSS and setup notes there. If your tool can't open links, with the code instead. More ways to use copy CSS with AI.

Feedback