# Pricing plan card

> A plan card that lifts and picks up a colored glow on hover, with the button arrow nudging toward checkout.

- Category: [Cards](https://library.aimran.es/components/cards)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-card-pricing
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Pricing pages are where people hesitate, and a small lift under the cursor makes the plan feel within reach. Use it for the middle tier of a design tool, a coworking membership or a monthly coffee subscription. This pricing card in HTML and CSS has the price, a checklist of features and a clear button.

Put the plan you want to sell in the middle and let the others stay still; if every card lifts, none of them stands out. Three or four features are enough, and the full comparison belongs in a table further down.

## Code

### HTML

```html
<article class="uv-cprice"><header><i>✦</i><span>PLAN</span></header><h3>Studio</h3><div><strong>24€</strong><small>/ mes</small></div><ul><li>Unlimited projects</li><li>Team collaboration</li><li>Full export</li></ul><button>Choose plan <b>→</b></button></article>
```

### CSS

```css
.uv-cprice {
  --c1: #0071e3;
  --c2: #8ec5ff;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uv-cprice {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  width: 16em;
  padding: 1.5em;
  border-radius: 1.5em;
  font-size: var(--s);
  color: var(--fg);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent),0 24px 60px -40px #000;
  transition: transform calc(0.4s / var(--k)) cubic-bezier(.34,1.56,.64,1),box-shadow calc(0.4s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uv-cprice header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uv-cprice header i {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: .7em;
  font-style: normal;
  color: #fff;
  background: var(--c1);
}

.uv-cprice header span {
  font-size: .62em;
  opacity: .45;
}

.uv-cprice h3 {
  margin: 1.3em 0 .4em;
  font-size: 1.35em;
}

.uv-cprice strong {
  font-size: 2.5em;
  font-weight: 500;
}

.uv-cprice small {
  opacity: .45;
}

.uv-cprice ul {
  list-style: none;
  padding: 1em 0;
  margin: 1em 0;
  border-block: 1px solid color-mix(in srgb,var(--fg) 9%,transparent);
  font-size: .75em;
  line-height: 2;
}

.uv-cprice li::before {
  content: "✓";
  margin-right: .6em;
  color: var(--c1);
}

.uv-cprice button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: .85em 1em;
  border: 0;
  border-radius: .8em;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--c1);
  cursor: pointer;
}

.uv-cprice button b {
  transition: transform calc(0.35s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uv-cprice:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--c1) 40%,transparent),0 30px 70px -35px var(--c1);
}

.uv-cprice:hover button b {
  transform: translateX(.3em);
}
```

### React

```tsx
import type { CSSProperties } from "react";

const css = `
.uv-cprice {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  width: 16em;
  padding: 1.5em;
  border-radius: 1.5em;
  font-size: var(--s);
  color: var(--fg);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent),0 24px 60px -40px #000;
  transition: transform calc(0.4s / var(--k)) cubic-bezier(.34,1.56,.64,1),box-shadow calc(0.4s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uv-cprice header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uv-cprice header i {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: .7em;
  font-style: normal;
  color: #fff;
  background: var(--c1);
}

.uv-cprice header span {
  font-size: .62em;
  opacity: .45;
}

.uv-cprice h3 {
  margin: 1.3em 0 .4em;
  font-size: 1.35em;
}

.uv-cprice strong {
  font-size: 2.5em;
  font-weight: 500;
}

.uv-cprice small {
  opacity: .45;
}

.uv-cprice ul {
  list-style: none;
  padding: 1em 0;
  margin: 1em 0;
  border-block: 1px solid color-mix(in srgb,var(--fg) 9%,transparent);
  font-size: .75em;
  line-height: 2;
}

.uv-cprice li::before {
  content: "✓";
  margin-right: .6em;
  color: var(--c1);
}

.uv-cprice button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: .85em 1em;
  border: 0;
  border-radius: .8em;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--c1);
  cursor: pointer;
}

.uv-cprice button b {
  transition: transform calc(0.35s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uv-cprice:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--c1) 40%,transparent),0 30px 70px -35px var(--c1);
}

.uv-cprice:hover button b {
  transform: translateX(.3em);
}
`;

export default function CardPricing() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#0071e3",
          "--c2": "#8ec5ff",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <article className="uv-cprice"><header><i>✦</i><span>PLAN</span></header><h3>Studio</h3><div><strong>24€</strong><small>/ mes</small></div><ul><li>Unlimited projects</li><li>Team collaboration</li><li>Full export</li></ul><button>Choose plan <b>→</b></button></article>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Pricing plan card” block (Cards) from AIMRAN Library to my project.

## What it is
A plan card that lifts and picks up a colored glow on hover, with the button arrow nudging toward checkout.

## Chosen settings
- Main color: #0071e3
- Secondary color: #8ec5ff
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Estudio"

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
import type { CSSProperties } from "react";

const css = `
.uv-cprice {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  width: 16em;
  padding: 1.5em;
  border-radius: 1.5em;
  font-size: var(--s);
  color: var(--fg);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent),0 24px 60px -40px #000;
  transition: transform calc(0.4s / var(--k)) cubic-bezier(.34,1.56,.64,1),box-shadow calc(0.4s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uv-cprice header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uv-cprice header i {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: .7em;
  font-style: normal;
  color: #fff;
  background: var(--c1);
}

.uv-cprice header span {
  font-size: .62em;
  opacity: .45;
}

.uv-cprice h3 {
  margin: 1.3em 0 .4em;
  font-size: 1.35em;
}

.uv-cprice strong {
  font-size: 2.5em;
  font-weight: 500;
}

.uv-cprice small {
  opacity: .45;
}

.uv-cprice ul {
  list-style: none;
  padding: 1em 0;
  margin: 1em 0;
  border-block: 1px solid color-mix(in srgb,var(--fg) 9%,transparent);
  font-size: .75em;
  line-height: 2;
}

.uv-cprice li::before {
  content: "✓";
  margin-right: .6em;
  color: var(--c1);
}

.uv-cprice button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: .85em 1em;
  border: 0;
  border-radius: .8em;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--c1);
  cursor: pointer;
}

.uv-cprice button b {
  transition: transform calc(0.35s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uv-cprice:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--c1) 40%,transparent),0 30px 70px -35px var(--c1);
}

.uv-cprice:hover button b {
  transform: translateX(.3em);
}
`;

export default function CardPricing() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#0071e3",
          "--c2": "#8ec5ff",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <article className="uv-cprice"><header><i>✦</i><span>PLAN</span></header><h3>Studio</h3><div><strong>24€</strong><small>/ mes</small></div><ul><li>Unlimited projects</li><li>Team collaboration</li><li>Full export</li></ul><button>Choose plan <b>→</b></button></article>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
