A neo-brutalist hero section with a live CRM board (2027)

How our neo-brutalist hero works: hard shadows and colour blocks around a live pipeline board where a teammate's cursor carries deals across columns, run by a small state machine.

6 min read

The real component. Click the picture to open it live and try it before you read how it was built.

Neo-brutalism is everywhere in 2027 design: hard shadows, flat colour blocks and thick outlines. This hero uses it for a CRM, with the product working beside the headline.

A board that runs by itself

The board's story is a pure state machine: a teammate reaches for the top deal of a column, lifts it, carries it one column right and drops it. Steps take turns through the columns, so one deal at a time travels to Won.

src/registry/heroes/neo-brutalist/deal-flow.ts

// The board's story as a pure state machine: a teammate reaches for the top deal of a column, lifts it,
// carries it one column right and drops it. Steps take turns through the columns, so one deal travels
// the whole pipeline in hand-offs; when it lands in the last column a fresh lead drops into the first.

export type FlowPhase = "rest" | "reach" | "lift" | "carry" | "drop";

export interface BoardCard {
  id: number;
  // Index into the deal pool.
  deal: number;
  stage: number;
  // Just created, so it drops in from above instead of fading up.
  isFresh: boolean;
  // Pushed off the bottom of a full column: it fades out where it is, then goes.
  isLeaving: boolean;
}

export interface FlowState {
  cards: BoardCard[];
  phase: FlowPhase;
  movingId: number | null;
  step: number;
  nextId: number;
  wins: number;
  wonValue: number;
}

interface FlowRules {
  lastStage: number;
  values: number[];
}

// Slots per column: a full column pushes its oldest card out.
export const COLUMN_SLOTS = 3;

// How long each phase lasts. "rest" only runs once, while the hero makes its entrance.
export const PHASE_MS: Record<FlowPhase, number> = { rest: 2000, reach: 750, lift: 350, carry: 950, drop: 1250 };

const NEXT_PHASE: Record<FlowPhase, FlowPhase> = {
  rest: "reach",
  reach: "lift",
  lift: "carry",
  carry: "drop",
  drop: "reach",
};

export function createFlow(startStages: number[], wonStart: number): FlowState {
  const cards = startStages.map((stage, index) => ({
    id: index,
    deal: index,
    stage,
    isFresh: false,
    isLeaving: false,
  }));
  return { cards, phase: "rest", movingId: null, step: 0, nextId: cards.length, wins: 0, wonValue: wonStart };
}

// The cards a column shows, top to bottom; a leaving card no longer holds a slot.
export function columnCards(cards: BoardCard[], stage: number): BoardCard[] {
  return cards.filter((card) => card.stage === stage && !card.isLeaving);
}

// The top card of the step's column, or of the next column that has one.
function pickMovingCard(flow: FlowState, lastStage: number): number | null {
  for (let offset = 0; offset < lastStage; offset += 1) {
    const top = columnCards(flow.cards, (flow.step + offset) % lastStage)[0];
    if (top) return top.id;
  }
  return null;
}

// The next deal from the pool that isn't already on the board, so no company shows twice.
function pickFreshDeal(flow: FlowState, poolSize: number): number {
  const onBoard = new Set(flow.cards.map((card) => card.deal));
  const start = flow.nextId % poolSize;
  for (let offset = 0; offset < poolSize; offset += 1) {
    const deal = (start + offset) % poolSize;
    if (!onBoard.has(deal)) return deal;
  }
  return start;
}

// The moving card goes to the top of the next column; a full column lets its bottom card go.
function carryCard(flow: FlowState): BoardCard[] {
  const moving = flow.cards.find((card) => card.id === flow.movingId);
  if (!moving) return flow.cards;
  const target = moving.stage + 1;
  const crowd = columnCards(flow.cards, target);
  const pushedOut = crowd.length >= COLUMN_SLOTS ? crowd[crowd.length - 1].id : null;
  const rest = flow.cards
    .filter((card) => card.id !== moving.id)
    .map((card) => (card.id === pushedOut ? { ...card, isLeaving: true } : card));
  return [{ ...moving, stage: target, isFresh: false }, ...rest];
}

// A deal that lands in the last column counts as won, and a fresh lead takes its place in the first.
function landCard(flow: FlowState, rules: FlowRules): FlowState {
  const moving = flow.cards.find((card) => card.id === flow.movingId);
  if (!moving || moving.stage !== rules.lastStage) return flow;
  const fresh: BoardCard = {
    id: flow.nextId,
    deal: pickFreshDeal(flow, rules.values.length),
    stage: 0,
    isFresh: true,
    isLeaving: false,
  };
  return {
    ...flow,
    cards: [fresh, ...flow.cards],
    nextId: flow.nextId + 1,
    wins: flow.wins + 1,
    wonValue: flow.wonValue + rules.values[moving.deal],
  };
}

export function advanceFlow(flow: FlowState, rules: FlowRules): FlowState {
  const phase = NEXT_PHASE[flow.phase];
  if (phase === "reach") {
    const settled = { ...flow, cards: flow.cards.filter((card) => !card.isLeaving) };
    const step = flow.phase === "rest" ? 0 : flow.step + 1;
    return { ...settled, phase, step, movingId: pickMovingCard({ ...settled, step }, rules.lastStage) };
  }
  if (phase === "carry") return { ...flow, phase, cards: carryCard(flow) };
  if (phase === "drop") return { ...landCard(flow, rules), phase };
  return { ...flow, phase };
}
The board's state machine

Cards and cursors on one spring

Every card glides between slots on the same spring as the cursor carrying it, so they stay together. Low damping on the way down gives a small bounce on landing, and a winning deal sets off a burst of chunky confetti.

src/registry/heroes/neo-brutalist/deal-card.tsx

"use client";

import { motion, type Transition } from "motion/react";
import { Check } from "lucide-react";
import { cn } from "@/lib/utils";
import { formatMoney, TEAMMATE_TONES, TILE_TONES, toneAt } from "./board-style";
import type { Deal, Teammate } from "./board-types";
import type { SlotBox } from "./use-slot-layout";

// Every card glides between slots on this spring, and the cursor carrying one uses it too, so they stay together.
export const CARRY_SPRING: Transition = { type: "spring", stiffness: 160, damping: 21 };
const LIFT_SPRING: Transition = { type: "spring", stiffness: 380, damping: 22 };
// Low damping on the way down: the card lands with a small bounce.
const DROP_SPRING: Transition = { type: "spring", stiffness: 520, damping: 13 };
const ENTRANCE_DELAY_S = 0.9;
const ENTRANCE_STEP_S = 0.05;

interface DealCardProps {
  deal: Deal;
  owner: Teammate;
  slot: SlotBox;
  // Its place in the starting lineup, which staggers the entrance.
  order: number;
  isLifted: boolean;
  isMoving: boolean;
  isFresh: boolean;
  isLeaving: boolean;
  isWon: boolean;
  // How far along the pipeline its column is, 0 to 1.
  progress: number;
}

function CardFace({ deal, owner, progress, isWon }: Pick<DealCardProps, "deal" | "owner" | "progress" | "isWon">) {
  const Icon = deal.icon;
  return (
    <>
      <span className="flex items-center gap-2">
        <span
          className={cn(
            "grid size-6 shrink-0 place-items-center rounded-md border-2 border-zinc-950",
            toneAt(TILE_TONES, deal.company.length),
          )}
        >
          <Icon className="size-3.5" />
        </span>
        <span className="min-w-0 truncate text-sm font-bold 2xl:text-base">{deal.company}</span>
      </span>
      <span className="text-lg leading-none font-extrabold tracking-tight tabular-nums 2xl:text-xl">
        {formatMoney(deal.value)}
      </span>
      <span className="flex items-center gap-2">
        <span
          className={cn(
            "flex min-w-0 flex-1 items-center gap-1 truncate text-xs",
            isWon ? "font-bold text-lime-700" : "text-zinc-500",
          )}
        >
          {isWon && <Check aria-hidden strokeWidth={3} className="size-3.5 shrink-0" />}
          {isWon ? "Closed won" : deal.detail}
        </span>
        <span
          className={cn(
            "grid size-5 shrink-0 place-items-center rounded-full border-2 border-zinc-950 text-xs font-bold",
            toneAt(TEAMMATE_TONES, deal.owner),
          )}
        >
          {owner.name.charAt(0)}
        </span>
      </span>
      {/* Fills by scale, not width, so it stays a transform while the deal moves up the pipeline. */}
      <span aria-hidden className="h-1.5 overflow-hidden rounded-full bg-zinc-950/10">
        <motion.span
          initial={false}
          animate={{ scaleX: progress }}
          transition={CARRY_SPRING}
          className="block size-full origin-left rounded-full bg-zinc-950"
        />
      </span>
    </>
  );
}

// One deal, laid over its slot. Picked up it tilts and rises off its hard shadow; dropped, it bounces home.
export function DealCard({
  deal,
  owner,
  slot,
  order,
  isLifted,
  isMoving,
  isFresh,
  isLeaving,
  isWon,
  progress,
}: DealCardProps) {
  const enterFrom = isFresh ? { x: slot.x, y: slot.y - 32, opacity: 0 } : { x: slot.x, y: slot.y + 14, opacity: 0 };
  const delay = isFresh ? 0.15 : ENTRANCE_DELAY_S + order * ENTRANCE_STEP_S;
  return (
    <motion.li
      initial={enterFrom}
      animate={{ x: slot.x, y: slot.y, opacity: isLeaving ? 0 : 1, scale: isLeaving ? 0.9 : 1 }}
      transition={{
        x: CARRY_SPRING,
        y: CARRY_SPRING,
        opacity: { duration: 0.35, delay: isLeaving ? 0 : delay },
        scale: { duration: 0.35 },
      }}
      style={{ width: slot.width, height: slot.height }}
      className={cn("absolute top-0 left-0 list-none", isMoving ? "z-20" : isLeaving ? "z-0" : "z-10")}
    >
      <motion.div
        animate={{ rotate: isLifted ? -4 : 0, scale: isLifted ? 1.05 : 1 }}
        transition={isLifted ? LIFT_SPRING : DROP_SPRING}
        className="relative size-full"
      >
        <span aria-hidden className="absolute inset-0 translate-x-1 translate-y-1 rounded-xl bg-zinc-950" />
        <motion.div
          animate={{ x: isLifted ? -4 : 0, y: isLifted ? -4 : 0 }}
          transition={isLifted ? LIFT_SPRING : DROP_SPRING}
          className="relative flex size-full flex-col justify-between rounded-xl border-2 border-zinc-950 bg-white p-2.5 text-zinc-950"
        >
          <CardFace deal={deal} owner={owner} progress={progress} isWon={isWon} />
        </motion.div>
      </motion.div>
    </motion.li>
  );
}
A deal card

More articles