Skip to content

Profile Card

Rounded teammate card: pastel header band, big emoji avatar in a white circle, name, role, status pill, three stats in soft wells, skill pills and a “Say hi” button.

soft-flat/ui/profile-card
Open ↗

Source

import { cn } from "@/lib/utils";

export interface ProfileCardProps {
  name?: string;
  role?: string;
  emoji?: string;
  tone?: "peach" | "mint" | "lavender" | "butter";
  status?: string;
  stats?: { value: string; label: string }[];
  skills?: string[];
  className?: string;
}

const TONES = { peach: "bg-da-accent", mint: "bg-da-secondary", lavender: "bg-da-primary/20", butter: "bg-da-warning/40" } as const;

/** Rounded teammate card: pastel header band with a big emoji avatar, name, role, status pill, three stats in soft wells, skill pills and message button. */
export function ProfileCard({
  name = "Ana Souza",
  role = "Studio lead",
  emoji = "🦊",
  tone = "peach",
  status = "🌴 Back on Monday",
  stats = [
    { value: "32", label: "done" },
    { value: "5", label: "boards" },
    { value: "98%", label: "on time" },
  ],
  skills = ["Planning", "Design", "Workshops"],
  className,
}: ProfileCardProps) {
  return (
    <article className={cn("w-full max-w-xs overflow-hidden rounded-da-lg bg-da-surface text-da-surface-fg shadow-da-md", className)}>
      <div aria-hidden className={cn("h-20", TONES[tone])} />
      <div className="px-6 pb-6 text-center">
        <span aria-hidden className="mx-auto -mt-10 grid size-20 place-items-center rounded-full bg-da-surface text-4xl shadow-da-md ring-4 ring-da-surface">
          {emoji}
        </span>
        <h3 className="mt-3 font-da-display text-xl font-extrabold">{name}</h3>
        <p className="text-sm text-da-muted-fg">{role}</p>
        <p className="mt-3 inline-block rounded-da-pill bg-da-surface-2 px-3 py-1 text-xs font-semibold">{status}</p>
        <dl className="mt-5 grid grid-cols-3 gap-2">
          {stats.map((s) => (
            <div key={s.label} className="flex flex-col rounded-da-md bg-da-surface-2 py-3">
              <dt className="order-2 text-[11px] text-da-muted-fg">{s.label}</dt>
              <dd className="font-da-display text-lg font-extrabold">{s.value}</dd>
            </div>
          ))}
        </dl>
        <ul className="mt-4 flex flex-wrap justify-center gap-1.5" aria-label="Skills">
          {skills.map((s) => (
            <li key={s} className="rounded-da-pill bg-da-primary/12 px-3 py-1 text-xs font-semibold">
              {s}
            </li>
          ))}
        </ul>
        <a
          href="#message"
          className="da-focus da-transition mt-5 flex h-11 items-center justify-center rounded-da-pill bg-da-fg font-semibold text-da-bg hover:-translate-y-0.5"
        >
          Say hi 👋
        </a>
      </div>
    </article>
  );
}

export default ProfileCard;

modules/soft-flat/ui/profile-card/index.tsx

Props

PropTypeDefaultDescription
name / role / emoji / statusstring—Identity.
tonestring—Header color.
stats{ value, label }[]—Stats.
skillsstring[]—Skills.

Other card variants in Soft Flat

Card in other art directions

Card

Composable card (Card, CardHeader, CardKicker, CardTitle, CardDescription, CardContent, CardFooter) with 5 solid tones, 3 hard-shadow depths and an interactive press-on-hover mode.

BrutalistCard

Profile Card

User/team member card: striped blue banner with status chip, overlapping yellow initials square, uppercase name and mono role, bio, ruled stat strip and a split action bar.

BrutalistCard

Release Card

Changelog entry card: yellow version/date column (top bar on mobile), uppercase title (optional link), summary and a list of changes tagged new / improved / fixed / breaking with fixed-width colored labels.

BrutalistCard

Stat Card

KPI card: mono label, icon square, giant value, green/red delta chip with arrow, and an outlined mini bar chart whose last bar is filled. Four solid tones.

BrutalistCard

Card

Composable frosted card (Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter) with frosted / tinted-gradient / solid variants, specular top edge and interactive lift.

GlassCard

Meeting Card

Meeting recap glass card: title, time / duration / platform meta, gradient participant stack with +N, AI summary panel, action items with checkboxes and owners, and a transcript link.

GlassCard

Profile Card

Teammate glass card: gradient cover, large initials avatar with presence dot, role and timezone, status pill, three stats, expertise tags and Message / Schedule actions.

GlassCard

Stat Ring Card

KPI glass card with a primary→accent gradient progress ring (SVG) showing the percentage, the value over its max and a caption; the ring draws in on mount.

GlassCard

Card

Composable hairline card (Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter) with default / raised / ghost variants and an interactive hover lift.

MinimalCard

Incident Card

Incident summary card: severity chip, id and duration, linked title, service chips, a 4-step status progress bar, commander avatar, stacked responder avatars and update count.

MinimalCard

Integration Card

Integration tile: logo/monogram, name, category, description, a Radix Switch to enable it, live status meta and a Configure link. Controlled or uncontrolled.

MinimalCard

Metric Card

KPI card: muted label, big mono value, inline SVG sparkline with area fill and end dot, and a colored delta chip vs. the previous period (lowerIsBetter flips the colors).

MinimalCard

Profile Card

Studio/person profile card in the Read.cv spirit: square gray portrait with initials, name, role and city in mono, availability dot in signal color, short bio and a list of links with ↗.

Mono CleanCard

Project Card

Portfolio project card: neutral image frame that darkens slightly on hover with a “View case ↗” overlay, then a mono meta row (index, client, year) and the title with discipline tags.

Mono CleanCard

Stat Card

Analytics stat: mono label, large display value, change in mono, and a row of thin vertical bars (last bar in ink, others gray) — no chart chrome.

Mono CleanCard

Template Card

Template tile: a wireframe preview drawn with hairlines (nav, giant title, image grid) in a bordered frame, then name, author, category and usage count, with a “Use template” button revealed on hover/focus.

Mono CleanCard

Account Card

Bank account card: institution + masked number header, big balance with available amount, sync timestamp, and three recent inflow/outflow rows.

Neo CorporateCard

Invoice Card

Invoice summary card: number + status, bill-to and dates grid, line items table with mono amounts, subtotal/tax/total, and download/send actions.

Neo CorporateCard

Kpi Card

Metric card: label, big mono value, colored delta vs. period and an area sparkline in the primary color along the bottom.

Neo CorporateCard

Plan Card

Billing/subscription card: current plan + price + renewal date, usage meters (progressbar semantics, turning amber at 80% and red at 95%), manage and upgrade actions.

Neo CorporateCard

Action Card

Reduction action card: serif title, description, saving and cost figures, leaf-rated impact/effort, and an “Add to plan” pill that toggles to a sage “In your plan” state.

Organic SoftCard

Article Card

Journal article card: an organic shaped “cover” (arch, blob or circle) with a hand-drawn leaf, category and read time, serif title that underlines on hover, excerpt; whole card is one link.

Organic SoftCard

Metric Card

Emissions metric card: label, big serif value with mono unit, a change chip (down = good, sage; up = clay) and a human equivalence line with a small leaf.

Organic SoftCard

Supplier Card

Supplier card: arch-shaped initials avatar, name, category and country, status pill, share of your footprint and a rounded data-completeness bar with a reminder action.

Organic SoftCard