ComponentsMarketing

Pricing Box

Ready

A paired pricing card — struck list price, oversized yearly price, term pill, crimson checks. Light and dark variants, footnote riding underneath.

Preview

Standard

Non-Profit / Education

$9.99

$5.99

Billed Yearly

Get the deal completely risk-free and without any charges.

  • 20.000 Usage Credits
  • Standard Email Support (24-hour response)

* Billed as $5.99 yearly (auto-renewal)

Premium

Developers / API Access

$16.99

$9.99

Billed Yearly

Get the deal completely risk-free and without any charges.

  • Unlimited Usage Credits
  • Dedicated Support (2-hour guaranteed response)

* Billed as $9.99 yearly (auto-renewal)

Code

pricing-box-example.html
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" />
<style>
  .price-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    justify-content: center;
    width: 100%;
    font-family: Inter, system-ui, sans-serif;
  }
  .price-col { flex: 1 1 320px; max-width: 450px; display: flex; flex-direction: column; }
  .price-card {
    position: relative;
    flex: 1;
    container-type: inline-size;
    background: oklch(99.3% 0.002 260);
    border-radius: 24px;
    padding: 40px;
    color: oklch(25% 0.01 260);
  }
  .price-card--dark { background: oklch(22.5% 0.006 260); color: oklch(96% 0.003 260); }
  .price-card__head { display: flex; align-items: center; justify-content: space-between; }
  .price-card__plan { margin: 0; font-size: 1.875rem; font-weight: 700; letter-spacing: -0.015em; color: oklch(18% 0.008 260); }
  .price-card--dark .price-card__plan { color: oklch(98% 0.002 260); }
  .price-card__dot { width: 11px; height: 11px; border-radius: 50%; background: oklch(62% 0.214 16); }
  .price-card__ring {
    position: absolute;
    top: 74px;
    left: 20px;
    width: 38px;
    height: 38px;
    border: 2px solid oklch(62% 0.214 16 / 0.55);
    border-radius: 50%;
    pointer-events: none;
  }
  .price-card__audience { position: relative; margin: 6px 0 0; font-size: 1.0625rem; color: oklch(50% 0.01 260); }
  .price-card--dark .price-card__audience { color: oklch(72% 0.008 260); }
  .price-card__was {
    display: block;
    margin-top: 40px;
    font-size: 1.25rem;
    color: oklch(58% 0.01 260);
    text-decoration: line-through;
  }
  .price-card--dark .price-card__was { color: oklch(60% 0.008 260); }
  .price-card__now {
    margin: 4px 0 0;
    font-size: 4rem; /* fallback when container queries are unsupported */
    font-size: clamp(3.25rem, 21cqw, 6.25rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: oklch(15% 0.008 260);
  }
  .price-card--dark .price-card__now { color: oklch(99% 0.002 260); }
  .price-card__term {
    display: inline-block;
    margin-top: 16px;
    padding: 9px 18px;
    border-radius: 999px;
    background: oklch(94% 0.004 260);
    font-size: 0.9375rem;
    font-weight: 500;
    color: oklch(30% 0.01 260);
  }
  .price-card--dark .price-card__term { background: oklch(31% 0.008 260); color: oklch(95% 0.003 260); }
  .price-card__pitch { margin: 38px 0 0; font-size: 1.125rem; font-weight: 600; line-height: 1.5; letter-spacing: -0.005em; }
  .price-card__features { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
  .price-card__features li { display: flex; gap: 12px; font-size: 1.0625rem; line-height: 1.45; color: oklch(36% 0.012 260); }
  .price-card--dark .price-card__features li { color: oklch(88% 0.005 260); }
  .price-card__check { flex: none; margin-top: 3px; }
  .price-card__cta {
    display: block;
    width: 100%;
    margin-top: 34px;
    padding: 17px 24px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: oklch(18% 0.008 260);
    color: oklch(99% 0.002 260);
    font: 600 1.0625rem/1.1 Inter, system-ui, sans-serif;
    letter-spacing: -0.005em;
  }
  .price-card__cta:hover { background: oklch(12% 0.008 260); }
  .price-card--dark .price-card__cta { background: oklch(99% 0.002 260); color: oklch(18% 0.008 260); }
  .price-card--dark .price-card__cta:hover { background: oklch(92% 0.003 260); }
  .price-card__cta:focus-visible { outline: 2px solid oklch(62% 0.214 16); outline-offset: 3px; }
  .price-note { margin-top: 16px; font-size: 0.9375rem; color: oklch(42% 0.012 260); }
</style>
<div class="price-wrap">
  <div class="price-col">
    <article class="price-card">
      <div class="price-card__head">
        <h3 class="price-card__plan">Standard</h3>
        <span class="price-card__dot" aria-hidden="true"></span>
      </div>
      <p class="price-card__audience">Non-Profit / Education</p>
      <del class="price-card__was">$9.99</del>
      <p class="price-card__now">$5.99</p>
      <span class="price-card__term">Billed Yearly</span>
      <p class="price-card__pitch">Get the deal completely risk-free and without any charges.</p>
      <ul class="price-card__features">
        <li>
          <svg class="price-card__check" viewBox="0 0 20 20" width="20" height="20" fill="none" stroke="oklch(62% 0.214 16)" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 10.5l4.2 4L16.5 5" /></svg>
          20.000 Usage Credits
        </li>
        <li>
          <svg class="price-card__check" viewBox="0 0 20 20" width="20" height="20" fill="none" stroke="oklch(62% 0.214 16)" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 10.5l4.2 4L16.5 5" /></svg>
          Standard Email Support (24-hour response)
        </li>
      </ul>
      <button type="button" class="price-card__cta">Get Started</button>
    </article>
    <p class="price-note">* Billed as $5.99 yearly (auto-renewal)</p>
  </div>
  <div class="price-col">
    <article class="price-card price-card--dark">
      <span class="price-card__ring" aria-hidden="true"></span>
      <div class="price-card__head">
        <h3 class="price-card__plan">Premium</h3>
      </div>
      <p class="price-card__audience">Developers / API Access</p>
      <del class="price-card__was">$16.99</del>
      <p class="price-card__now">$9.99</p>
      <span class="price-card__term">Billed Yearly</span>
      <p class="price-card__pitch">Get the deal completely risk-free and without any charges.</p>
      <ul class="price-card__features">
        <li>
          <svg class="price-card__check" viewBox="0 0 20 20" width="20" height="20" fill="none" stroke="oklch(62% 0.214 16)" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 10.5l4.2 4L16.5 5" /></svg>
          Unlimited Usage Credits
        </li>
        <li>
          <svg class="price-card__check" viewBox="0 0 20 20" width="20" height="20" fill="none" stroke="oklch(62% 0.214 16)" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 10.5l4.2 4L16.5 5" /></svg>
          Dedicated Support (2-hour guaranteed response)
        </li>
      </ul>
      <button type="button" class="price-card__cta">Get Started</button>
    </article>
    <p class="price-note">* Billed as $9.99 yearly (auto-renewal)</p>
  </div>
</div>