Pricing
Put your plans in perspective with a responsive pricing comparison.
<div class="pricing">
<div><div><span class="badge">Example plan</span><h3>Personal</h3><p><strong>$0</strong> / month</p><p>For your next side project.</p><ul><li>All core blocks</li><li>Unlimited local projects</li><li>Community support</li></ul><a href="#personal">Choose Personal</a></div></div>
<div><div><span class="badge accent">Example plan</span><h3>Team</h3><p><strong>$24</strong> / month</p><p>A starting point for your pricing page.</p><ul><li>Everything in Personal</li><li>Shared design libraries</li><li>Priority support</li></ul><a href="#team">Choose Team</a></div></div>
</div>.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.pricing > div { padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius); }
.pricing > div:nth-child(2) { border-color: var(--ring); background: var(--accent); }
.pricing h3 { margin-top: 0; }
.pricing strong { font-size: 2.4rem; letter-spacing: -0.05em; }
.pricing ul { padding-left: 1.2rem; font-size: 14px; line-height: 2; }
.pricing a { margin-top: 1rem; }export default function decorate(block) {
block.querySelectorAll('a').forEach((link) => link.classList.add('button'));
}Installation
Run the source CLI from a Blocks UI checkout. This package is not published to npm.
node packages/cli/index.js add pricingOr copy the source files above. Include tokens.css and base.css once in your project.
Usage
Use the authored row-and-column structure, then let the standalone runtime discover and enhance the block.
<div class="pricing">
<div><div><span class="badge">Example plan</span><h3>Personal</h3><p><strong>$0</strong> / month</p><p>For your next side project.</p><ul><li>All core blocks</li><li>Unlimited local projects</li><li>Community support</li></ul><a href="#personal">Choose Personal</a></div></div>
<div><div><span class="badge accent">Example plan</span><h3>Team</h3><p><strong>$24</strong> / month</p><p>A starting point for your pricing page.</p><ul><li>Everything in Personal</li><li>Shared design libraries</li><li>Priority support</li></ul><a href="#team">Choose Team</a></div></div>
</div>import decorate from './blocks/pricing/pricing.js';
document.querySelectorAll('.pricing').forEach(decorate);Variants
Choose a variant in the live preview. Add its class to the authored block.
defaultAccessibility & behavior
Semantic HTML, visible focus states, shared contrast-aware tokens, and responsive styles provide an accessible foundation. Preserve labels and heading hierarchy when customizing.
Multiple instances are supported. Layouts adapt to smaller viewports. No npm dependencies are required at runtime.
AEM usage
Copy the canonical CSS and JavaScript into your EDS block folder. Use the same row-and-column authoring structure shown above and let your existing AEM loader call the default decorator.
Standalone verified. EDS markup compatible. Live AEM integration has not been verified.