# Plan Comparison Card

> A pricing card that lists included features with checks and greys out the ones the plan leaves out.

- Category: [CSS Cards](https://copy-css.com/category/cards)
- Tags: pricing, features, included, excluded, checklist, plan
- Live preview: https://copy-css.com/snippets/plan-comparison-card
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<article class="plan-compare">
  <header>
    <h3>Starter</h3>
    <p><strong>$9</strong> / month</p>
  </header>
  <ul>
    <li>5 projects</li>
    <li>Basic analytics</li>
    <li class="is-off"><span class="plan-compare-sr">Not included: </span>Custom domain</li>
    <li class="is-off"><span class="plan-compare-sr">Not included: </span>Priority support</li>
  </ul>
  <a href="#">Choose Starter</a>
</article>
```

## CSS

```css
.plan-compare {
  width: 220px;
  padding: 18px;
  border: 1px solid #f0abfc;
  border-radius: 16px;
  background: #fff;
  color: #4a044e;
  font-family: system-ui, sans-serif;
}

.plan-compare header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px dashed #f5d0fe;
}

.plan-compare h3 {
  margin: 0;
  font-size: 16px;
}

.plan-compare header p {
  margin: 0;
  color: #a21caf;
  font-size: 12px;
}

.plan-compare strong {
  font-size: 22px;
}

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

.plan-compare li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  background: #fae8ff;
  color: #a21caf;
  font-size: 11px;
  font-weight: 800;
}

.plan-compare li.is-off {
  color: #a3a3a3;
}

.plan-compare li.is-off::before {
  content: "✕";
  background: #f5f5f5;
  color: #a3a3a3;
}

.plan-compare-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.plan-compare a {
  display: block;
  padding: 9px;
  border: 1.5px solid #c026d3;
  border-radius: 10px;
  color: #a21caf;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.plan-compare a:hover {
  background: #c026d3;
  color: #fff;
}

.plan-compare a:focus-visible {
  outline: 2px solid #c026d3;
  outline-offset: 2px;
}
```

## Notes

- This CSS Plan Comparison Card is 97 lines of pure CSS (1.6 KB) with no JavaScript and no dependencies. It uses transitions, clip paths, CSS Grid and Flexbox.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
