# M text gradient 3

> Pricing cards — each tier has its own palette and speed

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/m-text-gradient-3).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/m-text-gradient-3
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/m-text-gradient-3-light-adf00129b3a5ef13.png
- Registry item: https://ui.cnippet.dev/r/m-text-gradient-3.json
- Categories: text gradient
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/m-text-gradient-3.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/text-gradient`

## Files

### `registry/default/motion-variants/m-text-gradient-3.tsx`

```tsx
"use client";

import { TextGradient } from "@/registry/default/motion/text-gradient";

const tiers = [
  {
    colors: ["#a855f7", "#ec4899", "#a855f7"],
    duration: 4,
    label: "Pro",
    price: "$12",
  },
  {
    colors: ["#3b82f6", "#06b6d4", "#3b82f6"],
    duration: 5,
    label: "Team",
    price: "$49",
  },
  {
    colors: ["#f97316", "#eab308", "#f97316"],
    duration: 6,
    label: "Enterprise",
    price: "$199",
  },
];

export default function TextGradientPricing() {
  return (
    <div className="flex min-h-50 items-center justify-center px-6">
      <div className="flex gap-6">
        {tiers.map((tier) => (
          <div
            className="flex flex-col items-center gap-1 rounded-xl border border-border bg-card p-5 text-center"
            key={tier.label}
          >
            <TextGradient
              as="p"
              className="font-bold text-3xl"
              colors={tier.colors}
              duration={tier.duration}
            >
              {tier.price}
            </TextGradient>
            <p className="text-muted-foreground text-xs">{tier.label}</p>
          </div>
        ))}
      </div>
    </div>
  );
}
```
