Single Highlight Plan
Single centered pricing card with "Most popular" badge, yearly price, and violet gradient dark styling. One-tier products, lifetime deals, and all-access passes. Focused conversion without choice overload.
Dependencies
react
npm install react react-domexport function SingleHighlightPricing() {
return (
<section className="px-6 py-20 text-center">
<div className="mx-auto max-w-md rounded-3xl border border-violet-500/40 bg-gradient-to-b from-violet-950 to-zinc-950 p-10 text-white shadow-2xl shadow-violet-500/20">
<span className="rounded-full bg-violet-500/20 px-3 py-1 text-xs font-semibold text-violet-200">Most popular</span>
<h2 className="mt-4 text-2xl font-bold">All-access</h2>
<p className="mt-2 text-5xl font-bold">$49<span className="text-lg text-zinc-500">/yr</span></p>
<button className="mt-8 w-full rounded-2xl bg-violet-500 py-3 font-semibold hover:bg-violet-400">Get access</button>
</div>
</section>
);
}
Please implement this code in the current project and add it to (Your Desired Section, e.g. homepage hero, pricing page, dashboard). Change the primary accent color to (YOUR HEX CODE COLOR, e.g. #6366F1).
Requirements:
- Use React + Tailwind CSS (match the project's existing setup)
- Install dependencies if needed: npm install react react-dom
- Keep the layout responsive on mobile and desktop
- Replace placeholder copy with content that fits the project
The UI code:
export function SingleHighlightPricing() {
return (
<section className="px-6 py-20 text-center">
<div className="mx-auto max-w-md rounded-3xl border border-violet-500/40 bg-gradient-to-b from-violet-950 to-zinc-950 p-10 text-white shadow-2xl shadow-violet-500/20">
<span className="rounded-full bg-violet-500/20 px-3 py-1 text-xs font-semibold text-violet-200">Most popular</span>
<h2 className="mt-4 text-2xl font-bold">All-access</h2>
<p className="mt-2 text-5xl font-bold">$49<span className="text-lg text-zinc-500">/yr</span></p>
<button className="mt-8 w-full rounded-2xl bg-violet-500 py-3 font-semibold hover:bg-violet-400">Get access</button>
</div>
</section>
);
}
Replace (Your Desired Section) and (YOUR HEX CODE COLOR) before pasting into Cursor, Copilot, or ChatGPT.