# M colorful text 1

> Hero headline — full sentence reveals character-by-character with random vibrant colours

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

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

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/m-colorful-text-1.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/colorful-text`

## Files

### `registry/default/motion-variants/m-colorful-text-1.tsx`

```tsx
"use client";

import { ColorfulText } from "@/registry/default/motion/colorful-text";

export default function ColorfulTextHero() {
  return (
    <div className="flex min-h-50 flex-col items-center justify-center gap-3 px-6">
      <ColorfulText
        as="h1"
        className="font-bold text-4xl tracking-tight sm:text-5xl"
        staggerDuration={0.04}
      >
        Build beautiful interfaces
      </ColorfulText>
      <p className="text-muted-foreground text-sm">
        Each character animates in with a randomised vibrant colour
      </p>
    </div>
  );
}
```
