v0.1 public beta early access on GitHub
Home / Screens / finance-dashboard
Screen template

Finance Dashboard Screen

Greeting header with avatar and notifications, accent balance card with delta pill, four quick actions, budget bars, and recent transactions

pro Expo Go ✓ iosandroid gestures: tap · scroll haptics: light · medium · selection
$ npx lumioui add finance-dashboard
import { FinanceDashboardScreen } from "@/screens/finance/dashboard";
Native packages installed6
@lumioui/ui@latest@lumioui/core@latestreact-native-safe-area-context@*react-native-reanimated@*react-native-svg@*nativewind@*
finance/dashboard.tsxsource · yours to edit
import * as React from "react";
import { useState } from "react";
import { View, ScrollView, Pressable } from "react-native";
import { SafeAreaView, useSafeAreaInsets } from "react-native-safe-area-context";
import { AnimatedNumber, Avatar, Card, Icon, Progress, QuickActions, Separator, StatCard, Text, type IconName } from "@lumioui/ui";
import { AnimatedPressable, useHaptic, usePressAnimation, type ColorTokens } from "@lumioui/core";

import { Mount } from "../shared";
export interface SpendingCategory {
  id: string;
  name: string;
  spent: number;
  budget: number;
  icon?: IconName;
  /** Soft-tint tile background class. */
  tileBg?: string;
  /** Icon tint token — pairs with `tileBg`. */
  tint?: keyof ColorTokens;
}

export interface Transaction {
  id: string;
  merchant: string;
  category: string;
  /** Positive = credit, negative = debit. */
  amount: number;
  date: string;
  icon?: IconName;
  /** Soft-tint tile background class. */
  tileBg?: string;
  /** Icon tint token — pairs with `tileBg`. */
  tint?: keyof ColorTokens;
}

export interface FinanceDashboardScreenProps {
  balance?: number;
  currency?: string;
  userName?: string;
  /** Small muted line above the name — "Good evening", "Welcome back". */
  greeting?: string;
  avatarUrl?: string;
  /** Signed period-over-period change rendered as a pill on the balance card. */
  balanceDelta?: number;
  deltaPeriod?: string;
  /** Dot on the bell when there are unseen notifications. */
  hasNotifications?: boolean;
  categories?: SpendingCategory[];
  transactions?: Transaction[];
  onAction?: (action: "send" | "request" | "topup" | "pay") => void;
  onSeeAll?: () => void;
  onTransactionPress?: (transaction: Transaction) => void;
  onAvatarPress?: () => void;
  onNotifications?: () => void;
}

const DEFAULT_CATEGORIES: SpendingCategory[] = [
  { id: "food", name: "Food & dining", spent: 342, budget: 500, icon: "coffee", tileBg: "bg-chart-5/15", tint: "chart5" },
  { id: "transport", name: "Transport", spent: 128, budget: 200, icon: "tram-front", tileBg: "bg-chart-2/15", tint: "chart2" },
  { id: "shopping", name: "Shopping", spent: 460, budget: 400, icon: "shopping-cart", tileBg: "bg-chart-3/15", tint: "chart3" },
  { id: "bills", name: "Bills & utilities", spent: 210, budget: 300, icon: "zap", tileBg: "bg-warning/15", tint: "warning" },
];

const DEFAULT_TRANSACTIONS: Transaction[] = [
  { id: "t1", merchant: "Blue Bottle Coffee", category: "Food & dining", amount: -6.4, date: "Today", icon: "coffee", tileBg: "bg-chart-5/15", tint: "chart5" },
  { id: "t2", merchant: "Paycheck — Lumio Inc.", category: "Income", amount: 3200, date: "Yesterday", icon: "briefcase", tileBg: "bg-success/15", tint: "success" },
  { id: "t3", merchant: "Metro Transit", category: "Transport", amount: -2.75, date: "Yesterday", icon: "tram-front", tileBg: "bg-chart-2/15", tint: "chart2" },
  { id: "t4", merchant: "City Lights Bookstore", category: "Shopping", amount: -34.2, date: "Sep 5", icon: "book-open", tileBg: "bg-chart-4/15", tint: "chart4" },
];

const ACTIONS = [
  { key: "send", label: "Send", icon: "arrow-up" },
  { key: "request", label: "Request", icon: "arrow-down" },
  { key: "topup", label: "Top up", icon: "plus" },
  { key: "pay", label: "Pay", icon: "credit-card" },
] as const;

function fmt(amount: number, currency: string) {
  // Locked locale — an undefined locale leaks the device's grouping
  // separators into a template that should render predictably.
  const abs = Math.abs(amount).toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
  return `${amount < 0 ? "−" : "+"}${currency}${abs}`;
}

/** Transaction row — tinted squircle glyph + signed amount, dips on press. */
function TransactionRow({
  tx,
  currency,
  onPress,
}: {
  tx: Transaction;
  currency: string;
  onPress?: (t: Transaction) => void;
}) {
  const haptics = useHaptic();
  // Rows dip like iOS cells — fast timing keeps feedback under a scroll.
  const press = usePressAnimation({ pressedScale: 0.98, pressedOpacity: 0.75, fast: true });
  return (
    <AnimatedPressable
      onPress={() => {
        haptics.light();
        onPress?.(tx);
      }}
      onPressIn={press.onPressIn}
      onPressOut={press.onPressOut}
      style={press.animatedStyle}
      accessibilityRole="button"
      accessibilityLabel={`${tx.merchant}, ${fmt(tx.amount, currency)}`}
      className="flex-row items-center gap-3 p-3"
    >
      {/* Tinted-square merchant glyph — the modern fintech idiom
          (squircle over a tonal wash). */}
      <View
        className={`h-11 w-11 items-center justify-center rounded-2xl ${
          tx.tileBg ?? "bg-primary/15"
        }`}
      >
        <Icon name={tx.icon ?? "credit-card"} size="sm" color={tx.tint ?? "primary"} />
      </View>
      <View className="flex-1">
        <Text variant="small" numberOfLines={1}>
          {tx.merchant}
        </Text>
        <Text variant="muted">
          {tx.category} · {tx.date}
        </Text>
      </View>
      <Text
        variant="small"
        className={`tabular-nums font-semibold ${tx.amount >= 0 ? "text-success" : ""}`}
      >
        {fmt(tx.amount, currency)}
      </Text>
    </AnimatedPressable>
  );
}

/** Finance dashboard — accent balance card with visibility toggle and delta
 *  pill, quick actions, budget bars, and recent transactions. */
export function FinanceDashboardScreen({
  balance = 4280.5,
  currency = "$",
  userName = "Amara Chen",
  greeting = "Good evening",
  // Same face the chat flow uses for Amara Chen (@amarachen).
  avatarUrl = "https://i.pravatar.cc/150?img=9",
  balanceDelta = 182.4,
  deltaPeriod = "this month",
  hasNotifications = true,
  categories = DEFAULT_CATEGORIES,
  transactions = DEFAULT_TRANSACTIONS,
  onAction,
  onSeeAll,
  onTransactionPress,
  onAvatarPress,
  onNotifications,
}: FinanceDashboardScreenProps) {
  const haptics = useHaptic();
  const insets = useSafeAreaInsets();
  const [hidden, setHidden] = useState(false);

  return (
    <SafeAreaView className="flex-1 bg-[#F4F5F9] dark:bg-[#111114]" edges={["top"]}>
      <ScrollView
        showsVerticalScrollIndicator={false}
        contentContainerClassName="gap-5 px-6"
        contentContainerStyle={{ paddingBottom: insets.bottom + 24 }}
      >
        {/* Greeting + notification bell + profile avatar */}
        <Mount className="flex-row items-center gap-3 pt-4">
          <View className="flex-1">
            <Text variant="muted">
              {greeting} · {new Date().toLocaleDateString("en-US", { weekday: "short", month: "short", day: "numeric" })}
            </Text>
            <Text variant="h3" numberOfLines={1}>
              {userName}
            </Text>
          </View>
          <Pressable
            onPress={() => {
              haptics.light();
              onNotifications?.();
            }}
            accessibilityRole="button"
            accessibilityLabel={
              hasNotifications ? "Notifications, new activity" : "Notifications"
            }
            hitSlop={8}
            className="h-11 w-11 items-center justify-center"
          >
            <View>
              <Icon name="bell" size="md" color="foreground" />
              {hasNotifications ? (
                <View
                  className="absolute -right-0.5 -top-0.5 h-2.5 w-2.5 rounded-full border-2 border-background bg-destructive"
                  accessible={false}
                />
              ) : null}
            </View>
          </Pressable>
          <Avatar
            size="md"
            source={avatarUrl ? { uri: avatarUrl } : undefined}
            fallback={userName}
            alt="Your profile"
            onPress={onAvatarPress}
          />
        </Mount>

        {/* Balance — the accent card of the screen (Cash App / fintech
            idiom: the money number owns the brand color). */}
        <Mount delay={70}>
        <Card className="rounded-2xl border-transparent bg-[#1B1B26]">
          <Card.Content className="gap-2 p-5">
            <View className="flex-row items-center justify-between">
              <Text className="text-sm text-white/70">
                Total balance
              </Text>
              <Pressable
                onPress={() => {
                  setHidden((v) => !v);
                  haptics.selection();
                }}
                accessibilityRole="button"
                accessibilityLabel={hidden ? "Show balance" : "Hide balance"}
                hitSlop={8}
                className="h-11 w-11 items-center justify-center"
              >
                <Icon
                  name={hidden ? "eye" : "eye-off"}
                  size="sm"
                  color="#FFFFFF"
                />
              </Pressable>
            </View>
            {hidden ? (
              <Text variant="h2" className="text-white">
                ••••••
              </Text>
            ) : (
              <AnimatedNumber
                value={balance}
                format={(n) =>
                  `${currency}${n.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`
                }
                // font-sans overrides AnimatedNumber's built-in font-mono
                // (tailwind-merge dedupes, later class wins).
                className="font-sans text-4xl font-bold tracking-tight text-white"
                accessibilityRole="text"
                accessibilityLabel={`Balance ${currency}${balance.toFixed(2)}`}
              />
            )}
            {balanceDelta !== 0 && !hidden ? (
              <View className="mt-1 flex-row">
                <View className="flex-row items-center gap-1 rounded-full bg-[#BEF04C] px-2.5 py-1">
                  <Icon
                    name={balanceDelta >= 0 ? "arrow-up" : "arrow-down"}
                    size="sm"
                    color="#1B1B26"
                  />
                  <Text className="text-xs font-semibold text-[#1B1B26]">
                    {fmt(balanceDelta, currency)} {deltaPeriod}
                  </Text>
                </View>
              </View>
            ) : null}
          </Card.Content>
        </Card>
        </Mount>

        {/* In/out stat tiles — the money movement behind the balance. */}
        <Mount delay={140} className="flex-row gap-3">
          <StatCard
            className="flex-1"
            icon="arrow-down"
            tone="success"
            value={3200}
            format={(n) => `${currency}${Math.round(n).toLocaleString("en-US")}`}
            label="Money in"
            delta={18}
            deltaLabel={deltaPeriod}
          />
          <StatCard
            className="flex-1"
            icon="arrow-up"
            tone="warning"
            value={1806}
            format={(n) => `${currency}${Math.round(n).toLocaleString("en-US")}`}
            label="Money out"
            delta={6}
            deltaLabel={deltaPeriod}
          />
        </Mount>

        {/* Quick actions — tonal circles + labels (Material 3 tonal idiom) */}
        <Mount delay={210}>
          <QuickActions
            actions={ACTIONS.map((a) => ({
              icon: a.icon,
              label: a.label,
              tone: "primary" as const,
              onPress: () => onAction?.(a.key),
            }))}
          />
        </Mount>

        {/* Spending by category */}
        <Mount delay={280} className="gap-3">
          <Text variant="large" accessibilityRole="header">
            Spending this month
          </Text>
          <Card variant="elevated" className="rounded-2xl bg-white dark:bg-[#1A1A20]">
            <Card.Content className="gap-4 p-5">
              {categories.map((cat) => {
                const pct = Math.min(100, (cat.spent / cat.budget) * 100);
                const over = cat.spent > cat.budget;
                return (
                  <View
                    key={cat.id}
                    className="gap-2"
                    accessible
                    accessibilityRole="text"
                    accessibilityLabel={`${cat.name}: ${currency}${cat.spent} of ${currency}${cat.budget} budget${over ? ", over budget" : ""}`}
                  >
                    <View className="flex-row items-center gap-3">
                      <View
                        className={`h-9 w-9 items-center justify-center rounded-2xl ${
                          cat.tileBg ?? "bg-primary/15"
                        }`}
                        accessible={false}
                      >
                        <Icon
                          name={cat.icon ?? "credit-card"}
                          size="sm"
                          color={cat.tint ?? "primary"}
                        />
                      </View>
                      <Text variant="small" className="flex-1">
                        {cat.name}
                      </Text>
                      <Text
                        variant="muted"
                        className={`tabular-nums ${over ? "font-semibold text-destructive" : ""}`}
                      >
                        {currency}
                        {cat.spent.toLocaleString("en-US")} / {currency}
                        {cat.budget.toLocaleString("en-US")}
                      </Text>
                    </View>
                    <Progress
                      value={pct}
                      indicatorClassName={over ? "bg-destructive" : undefined}
                    />
                  </View>
                );
              })}
            </Card.Content>
          </Card>
        </Mount>

        {/* Recent transactions */}
        <Mount delay={350} className="gap-2">
          <View className="flex-row items-center justify-between">
            <Text variant="large" accessibilityRole="header">
              Recent
            </Text>
            <Pressable
              onPress={() => {
                haptics.light();
                onSeeAll?.();
              }}
              accessibilityRole="button"
              accessibilityLabel="See all transactions"
              hitSlop={12}
              className="min-h-11 justify-center px-2"
            >
              <Text variant="small" className="text-[#65A30D]">
                See all
              </Text>
            </Pressable>
          </View>
          <Card variant="elevated" className="rounded-2xl bg-white dark:bg-[#1A1A20]">
            <Card.Content className="p-2">
              {transactions.map((tx, i) => (
                <React.Fragment key={tx.id}>
                  {i > 0 ? (
                    <View className="px-3">
                      <Separator className="ml-[56px]" />
                    </View>
                  ) : null}
                  <TransactionRow
                    tx={tx}
                    currency={currency}
                    onPress={onTransactionPress}
                  />
                </React.Fragment>
              ))}
            </Card.Content>
          </Card>
        </Mount>
      </ScrollView>
    </SafeAreaView>
  );
}
agent prompt — paste into Claude Code, Cursor, Devin…
Recreate the "Finance Dashboard Screen" screen in React Native using LumioUI.

Goal: Greeting header with avatar and notifications, accent balance card with delta pill, four quick actions, budget bars, and recent transactions Match the reference implementation's layout, behavior, and motion exactly — this is a production screen, not a mockup.

## Setup

Fastest path — install the screen plus its component deps:

```bash
npx lumioui add finance-dashboard
```

Or pull just the components: `npx lumioui add animated-number avatar card icon progress quick-actions separator stat-card text`

Native packages:
- @lumioui/ui@latest
- @lumioui/core@latest
- react-native-safe-area-context@*
- react-native-reanimated@*
- react-native-svg@*
- nativewind@*

Stack assumptions: Expo SDK 54 / RN 0.81, Reanimated 4, NativeWind v4, TypeScript strict, Expo Go compatible.

## Components — how, where, when

### `animated-number` — Number that tweens between values with reduced-motion support.
- `<AnimatedNumber>` ×1

### `avatar` — Circular user image with fallback initials and status dot.
- `<Avatar>` ×1

### `card` — Compound surface — header, title, content and footer slots.
- `<Card>` ×3

### `icon` — Lucide icon set mapped to theme colors and sizes.
- `<Icon>` ×5

### `progress` — Animated fill bar with indeterminate sweep mode.
- `<Progress>` ×1

### `quick-actions` — Row of tinted icon-disc actions with labels — the Send / Top up / Scan pattern under wallet and home headers.
- `<QuickActions>` ×1

### `separator` — Hairline rule with orientation and spacing control.
- `<Separator>` ×1

### `stat-card` — KPI tile with tinted icon disc, count-up AnimatedNumber value, and a delta pill for trends.
- `<StatCard>` ×2

### `text` — Themed type scale from caption to display.
- `<Text>` ×13

## Conventions (non-negotiable)

- Styling via NativeWind `className` with semantic tokens only: `bg-background`, `text-foreground`, `bg-card`, `text-card-foreground`, `bg-secondary`, `bg-muted`, `text-muted-foreground`, `bg-accent`, `bg-destructive`, `border-border`. Hard-coded colors only inside media overlays (`text-white`, `bg-black/N`).
- Motion via the token presets from `@lumioui/core` (`spring.press`, `spring.surface`, `spring.glide`, `timing.fast`, `timing.slow`, …) — no bespoke spring configs or durations.
- Gate transform motion behind `useReducedMotion()`; keep opacity/color feedback, drop travel and overshoot.
- Haptics via `useHaptic()`: `light` on press, `selection` on toggle/select, `warning` on invalid input. Never import expo-haptics directly.
- Press feedback via `usePressAnimation()` (~0.97 scale), not `activeOpacity` tricks.
- a11y: `accessibilityRole` + `accessibilityLabel` on every control, touch targets ≥44pt.
- Entrance choreography: staggered `Mount` wrappers (delay 0/60/120…) so regions land in sequence instead of popping in at once.
- Wrap the screen in `SafeAreaView`; keep dark mode working via the semantic tokens.

## Deliverable

One file: `screens/finance/dashboard.tsx` exporting FinanceDashboardScreen. Preserve the props interface — the host app wires the callbacks (navigation, submit handlers) through them.

## Reference implementation

The LumioUI source for this screen — reproduce it faithfully:

```tsx
import * as React from "react";
import { useState } from "react";
import { View, ScrollView, Pressable } from "react-native";
import { SafeAreaView, useSafeAreaInsets } from "react-native-safe-area-context";
import { AnimatedNumber, Avatar, Card, Icon, Progress, QuickActions, Separator, StatCard, Text, type IconName } from "@lumioui/ui";
import { AnimatedPressable, useHaptic, usePressAnimation, type ColorTokens } from "@lumioui/core";

import { Mount } from "../shared";
export interface SpendingCategory {
  id: string;
  name: string;
  spent: number;
  budget: number;
  icon?: IconName;
  /** Soft-tint tile background class. */
  tileBg?: string;
  /** Icon tint token — pairs with `tileBg`. */
  tint?: keyof ColorTokens;
}

export interface Transaction {
  id: string;
  merchant: string;
  category: string;
  /** Positive = credit, negative = debit. */
  amount: number;
  date: string;
  icon?: IconName;
  /** Soft-tint tile background class. */
  tileBg?: string;
  /** Icon tint token — pairs with `tileBg`. */
  tint?: keyof ColorTokens;
}

export interface FinanceDashboardScreenProps {
  balance?: number;
  currency?: string;
  userName?: string;
  /** Small muted line above the name — "Good evening", "Welcome back". */
  greeting?: string;
  avatarUrl?: string;
  /** Signed period-over-period change rendered as a pill on the balance card. */
  balanceDelta?: number;
  deltaPeriod?: string;
  /** Dot on the bell when there are unseen notifications. */
  hasNotifications?: boolean;
  categories?: SpendingCategory[];
  transactions?: Transaction[];
  onAction?: (action: "send" | "request" | "topup" | "pay") => void;
  onSeeAll?: () => void;
  onTransactionPress?: (transaction: Transaction) => void;
  onAvatarPress?: () => void;
  onNotifications?: () => void;
}

const DEFAULT_CATEGORIES: SpendingCategory[] = [
  { id: "food", name: "Food & dining", spent: 342, budget: 500, icon: "coffee", tileBg: "bg-chart-5/15", tint: "chart5" },
  { id: "transport", name: "Transport", spent: 128, budget: 200, icon: "tram-front", tileBg: "bg-chart-2/15", tint: "chart2" },
  { id: "shopping", name: "Shopping", spent: 460, budget: 400, icon: "shopping-cart", tileBg: "bg-chart-3/15", tint: "chart3" },
  { id: "bills", name: "Bills & utilities", spent: 210, budget: 300, icon: "zap", tileBg: "bg-warning/15", tint: "warning" },
];

const DEFAULT_TRANSACTIONS: Transaction[] = [
  { id: "t1", merchant: "Blue Bottle Coffee", category: "Food & dining", amount: -6.4, date: "Today", icon: "coffee", tileBg: "bg-chart-5/15", tint: "chart5" },
  { id: "t2", merchant: "Paycheck — Lumio Inc.", category: "Income", amount: 3200, date: "Yesterday", icon: "briefcase", tileBg: "bg-success/15", tint: "success" },
  { id: "t3", merchant: "Metro Transit", category: "Transport", amount: -2.75, date: "Yesterday", icon: "tram-front", tileBg: "bg-chart-2/15", tint: "chart2" },
  { id: "t4", merchant: "City Lights Bookstore", category: "Shopping", amount: -34.2, date: "Sep 5", icon: "book-open", tileBg: "bg-chart-4/15", tint: "chart4" },
];

const ACTIONS = [
  { key: "send", label: "Send", icon: "arrow-up" },
  { key: "request", label: "Request", icon: "arrow-down" },
  { key: "topup", label: "Top up", icon: "plus" },
  { key: "pay", label: "Pay", icon: "credit-card" },
] as const;

function fmt(amount: number, currency: string) {
  // Locked locale — an undefined locale leaks the device's grouping
  // separators into a template that should render predictably.
  const abs = Math.abs(amount).toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
  return `${amount < 0 ? "−" : "+"}${currency}${abs}`;
}

/** Transaction row — tinted squircle glyph + signed amount, dips on press. */
function TransactionRow({
  tx,
  currency,
  onPress,
}: {
  tx: Transaction;
  currency: string;
  onPress?: (t: Transaction) => void;
}) {
  const haptics = useHaptic();
  // Rows dip like iOS cells — fast timing keeps feedback under a scroll.
  const press = usePressAnimation({ pressedScale: 0.98, pressedOpacity: 0.75, fast: true });
  return (
    <AnimatedPressable
      onPress={() => {
        haptics.light();
        onPress?.(tx);
      }}
      onPressIn={press.onPressIn}
      onPressOut={press.onPressOut}
      style={press.animatedStyle}
      accessibilityRole="button"
      accessibilityLabel={`${tx.merchant}, ${fmt(tx.amount, currency)}`}
      className="flex-row items-center gap-3 p-3"
    >
      {/* Tinted-square merchant glyph — the modern fintech idiom
          (squircle over a tonal wash). */}
      <View
        className={`h-11 w-11 items-center justify-center rounded-2xl ${
          tx.tileBg ?? "bg-primary/15"
        }`}
      >
        <Icon name={tx.icon ?? "credit-card"} size="sm" color={tx.tint ?? "primary"} />
      </View>
      <View className="flex-1">
        <Text variant="small" numberOfLines={1}>
          {tx.merchant}
        </Text>
        <Text variant="muted">
          {tx.category} · {tx.date}
        </Text>
      </View>
      <Text
        variant="small"
        className={`tabular-nums font-semibold ${tx.amount >= 0 ? "text-success" : ""}`}
      >
        {fmt(tx.amount, currency)}
      </Text>
    </AnimatedPressable>
  );
}

/** Finance dashboard — accent balance card with visibility toggle and delta
 *  pill, quick actions, budget bars, and recent transactions. */
export function FinanceDashboardScreen({
  balance = 4280.5,
  currency = "$",
  userName = "Amara Chen",
  greeting = "Good evening",
  // Same face the chat flow uses for Amara Chen (@amarachen).
  avatarUrl = "https://i.pravatar.cc/150?img=9",
  balanceDelta = 182.4,
  deltaPeriod = "this month",
  hasNotifications = true,
  categories = DEFAULT_CATEGORIES,
  transactions = DEFAULT_TRANSACTIONS,
  onAction,
  onSeeAll,
  onTransactionPress,
  onAvatarPress,
  onNotifications,
}: FinanceDashboardScreenProps) {
  const haptics = useHaptic();
  const insets = useSafeAreaInsets();
  const [hidden, setHidden] = useState(false);

  return (
    <SafeAreaView className="flex-1 bg-[#F4F5F9] dark:bg-[#111114]" edges={["top"]}>
      <ScrollView
        showsVerticalScrollIndicator={false}
        contentContainerClassName="gap-5 px-6"
        contentContainerStyle={{ paddingBottom: insets.bottom + 24 }}
      >
        {/* Greeting + notification bell + profile avatar */}
        <Mount className="flex-row items-center gap-3 pt-4">
          <View className="flex-1">
            <Text variant="muted">
              {greeting} · {new Date().toLocaleDateString("en-US", { weekday: "short", month: "short", day: "numeric" })}
            </Text>
            <Text variant="h3" numberOfLines={1}>
              {userName}
            </Text>
          </View>
          <Pressable
            onPress={() => {
              haptics.light();
              onNotifications?.();
            }}
            accessibilityRole="button"
            accessibilityLabel={
              hasNotifications ? "Notifications, new activity" : "Notifications"
            }
            hitSlop={8}
            className="h-11 w-11 items-center justify-center"
          >
            <View>
              <Icon name="bell" size="md" color="foreground" />
              {hasNotifications ? (
                <View
                  className="absolute -right-0.5 -top-0.5 h-2.5 w-2.5 rounded-full border-2 border-background bg-destructive"
                  accessible={false}
                />
              ) : null}
            </View>
          </Pressable>
          <Avatar
            size="md"
            source={avatarUrl ? { uri: avatarUrl } : undefined}
            fallback={userName}
            alt="Your profile"
            onPress={onAvatarPress}
          />
        </Mount>

        {/* Balance — the accent card of the screen (Cash App / fintech
            idiom: the money number owns the brand color). */}
        <Mount delay={70}>
        <Card className="rounded-2xl border-transparent bg-[#1B1B26]">
          <Card.Content className="gap-2 p-5">
            <View className="flex-row items-center justify-between">
              <Text className="text-sm text-white/70">
                Total balance
              </Text>
              <Pressable
                onPress={() => {
                  setHidden((v) => !v);
                  haptics.selection();
                }}
                accessibilityRole="button"
                accessibilityLabel={hidden ? "Show balance" : "Hide balance"}
                hitSlop={8}
                className="h-11 w-11 items-center justify-center"
              >
                <Icon
                  name={hidden ? "eye" : "eye-off"}
                  size="sm"
                  color="#FFFFFF"
                />
              </Pressable>
            </View>
            {hidden ? (
              <Text variant="h2" className="text-white">
                ••••••
              </Text>
            ) : (
              <AnimatedNumber
                value={balance}
                format={(n) =>
                  `${currency}${n.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`
                }
                // font-sans overrides AnimatedNumber's built-in font-mono
                // (tailwind-merge dedupes, later class wins).
                className="font-sans text-4xl font-bold tracking-tight text-white"
                accessibilityRole="text"
                accessibilityLabel={`Balance ${currency}${balance.toFixed(2)}`}
              />
            )}
            {balanceDelta !== 0 && !hidden ? (
              <View className="mt-1 flex-row">
                <View className="flex-row items-center gap-1 rounded-full bg-[#BEF04C] px-2.5 py-1">
                  <Icon
                    name={balanceDelta >= 0 ? "arrow-up" : "arrow-down"}
                    size="sm"
                    color="#1B1B26"
                  />
                  <Text className="text-xs font-semibold text-[#1B1B26]">
                    {fmt(balanceDelta, currency)} {deltaPeriod}
                  </Text>
                </View>
              </View>
            ) : null}
          </Card.Content>
        </Card>
        </Mount>

        {/* In/out stat tiles — the money movement behind the balance. */}
        <Mount delay={140} className="flex-row gap-3">
          <StatCard
            className="flex-1"
            icon="arrow-down"
            tone="success"
            value={3200}
            format={(n) => `${currency}${Math.round(n).toLocaleString("en-US")}`}
            label="Money in"
            delta={18}
            deltaLabel={deltaPeriod}
          />
          <StatCard
            className="flex-1"
            icon="arrow-up"
            tone="warning"
            value={1806}
            format={(n) => `${currency}${Math.round(n).toLocaleString("en-US")}`}
            label="Money out"
            delta={6}
            deltaLabel={deltaPeriod}
          />
        </Mount>

        {/* Quick actions — tonal circles + labels (Material 3 tonal idiom) */}
        <Mount delay={210}>
          <QuickActions
            actions={ACTIONS.map((a) => ({
              icon: a.icon,
              label: a.label,
              tone: "primary" as const,
              onPress: () => onAction?.(a.key),
            }))}
          />
        </Mount>

        {/* Spending by category */}
        <Mount delay={280} className="gap-3">
          <Text variant="large" accessibilityRole="header">
            Spending this month
          </Text>
          <Card variant="elevated" className="rounded-2xl bg-white dark:bg-[#1A1A20]">
            <Card.Content className="gap-4 p-5">
              {categories.map((cat) => {
                const pct = Math.min(100, (cat.spent / cat.budget) * 100);
                const over = cat.spent > cat.budget;
                return (
                  <View
                    key={cat.id}
                    className="gap-2"
                    accessible
                    accessibilityRole="text"
                    accessibilityLabel={`${cat.name}: ${currency}${cat.spent} of ${currency}${cat.budget} budget${over ? ", over budget" : ""}`}
                  >
                    <View className="flex-row items-center gap-3">
                      <View
                        className={`h-9 w-9 items-center justify-center rounded-2xl ${
                          cat.tileBg ?? "bg-primary/15"
                        }`}
                        accessible={false}
                      >
                        <Icon
                          name={cat.icon ?? "credit-card"}
                          size="sm"
                          color={cat.tint ?? "primary"}
                        />
                      </View>
                      <Text variant="small" className="flex-1">
                        {cat.name}
                      </Text>
                      <Text
                        variant="muted"
                        className={`tabular-nums ${over ? "font-semibold text-destructive" : ""}`}
                      >
                        {currency}
                        {cat.spent.toLocaleString("en-US")} / {currency}
                        {cat.budget.toLocaleString("en-US")}
                      </Text>
                    </View>
                    <Progress
                      value={pct}
                      indicatorClassName={over ? "bg-destructive" : undefined}
                    />
                  </View>
                );
              })}
            </Card.Content>
          </Card>
        </Mount>

        {/* Recent transactions */}
        <Mount delay={350} className="gap-2">
          <View className="flex-row items-center justify-between">
            <Text variant="large" accessibilityRole="header">
              Recent
            </Text>
            <Pressable
              onPress={() => {
                haptics.light();
                onSeeAll?.();
              }}
              accessibilityRole="button"
              accessibilityLabel="See all transactions"
              hitSlop={12}
              className="min-h-11 justify-center px-2"
            >
              <Text variant="small" className="text-[#65A30D]">
                See all
              </Text>
            </Pressable>
          </View>
          <Card variant="elevated" className="rounded-2xl bg-white dark:bg-[#1A1A20]">
            <Card.Content className="p-2">
              {transactions.map((tx, i) => (
                <React.Fragment key={tx.id}>
                  {i > 0 ? (
                    <View className="px-3">
                      <Separator className="ml-[56px]" />
                    </View>
                  ) : null}
                  <TransactionRow
                    tx={tx}
                    currency={currency}
                    onPress={onTransactionPress}
                  />
                </React.Fragment>
              ))}
            </Card.Content>
          </Card>
        </Mount>
      </ScrollView>
    </SafeAreaView>
  );
}
```

Screen: https://lumioui.dev/screens/finance-dashboard
Pixel 10 · Android
9:41
Live preview — the real screen via Expo Web · open full ↗