# Colored fallback

> Tinted initials fallbacks using semantic tokens.

A shadcn/ui block from the [@flx](https://ui.flexnative.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/flx/avatar-05).

- Page, with a live preview: https://shadcn.exchange/r/flx/avatar-05
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/flx/avatar-05-light-33388903b41ad006.png
- Registry item: https://ui.flexnative.com/r/avatar-05.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/avatar-05.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: `avatar`

## Files

### `registry/patterns/avatar/avatar-05.tsx`

```tsx
import { Avatar, AvatarFallback } from '@/components/ui/avatar'

const people = [
  { initials: 'SR', className: 'bg-primary text-primary-foreground' },
  { initials: 'LC', className: 'bg-secondary text-secondary-foreground' },
  { initials: 'AM', className: 'bg-accent text-accent-foreground' },
  { initials: 'JD', className: 'bg-muted text-foreground' },
]

export function Avatar05() {
  return (
    <div className="flex items-center gap-3">
      {people.map(({ initials, className }) => (
        <Avatar key={initials}>
          <AvatarFallback className={className}>{initials}</AvatarFallback>
        </Avatar>
      ))}
    </div>
  )
}
```
