CSS Pricing Card
A clean pricing plan card with a price, a feature list and a full-width button.
HTML
<div class="price-card">
<p class="price-name">Pro</p>
<p class="price-amount">$12<span>/mo</span></p>
<ul>
<li>Unlimited projects</li>
<li>Priority support</li>
</ul>
<a class="price-cta" href="#">Choose plan</a>
</div>
CSS
.price-card {
width: 200px;
padding: 20px;
border: 1px solid #e0e7ff;
border-radius: 16px;
background: #fff;
box-shadow: 0 10px 30px -12px rgba(67, 56, 202, 0.25);
font-family: system-ui, sans-serif;
}
.price-name {
margin: 0;
color: #4f46e5;
font-size: 13px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.price-amount {
margin: 6px 0 12px;
color: #111827;
font-size: 34px;
font-weight: 800;
}
.price-amount span {
color: #6b7280;
font-size: 14px;
font-weight: 500;
}
.price-card ul {
margin: 0 0 16px;
padding: 0;
list-style: none;
color: #374151;
font-size: 13px;
}
.price-card li {
padding: 3px 0 3px 20px;
background: no-repeat left center / 14px
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.price-cta {
display: block;
padding: 10px;
border-radius: 10px;
background: #4f46e5;
color: #fff;
font-size: 14px;
font-weight: 600;
text-align: center;
text-decoration: none;
}
.price-cta:hover {
background: #4338ca;
}
About this CSS Pricing Card
This CSS Pricing Card is 61 lines of pure CSS (1.2 KB) with no JavaScript and no dependencies. It uses 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:
#e0e7ff#fff#4f46e5#111827#6b7280#374151#4338ca
How to use this pricing card
- Copy the HTML and paste it where you want the element to appear.
- Copy the CSS into your stylesheet, or inside a
<style>tag. - Keep the
.price-cardclass name, or rename it in both places. Then tweak colors, sizes and timing to match your design. - Using React or Next.js? Change
classtoclassNamein 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.