RunwayCard
- Status
- Implemented
- Family
- 2 of 13
- Registry
- @lopifi/runway-card
npx shadcn@latest add @lopifi/theme @lopifi/runway-cardThe component, rendering
Real data, the shipped component. Switch the theme to check the claims the spec makes below.
The four-layer spec
Months of runway, current cash, monthly burn, projected zero date. A burn line with a projection segment rendered dashed, because a projection is not a fact.
polarity="inverted" on burn. Runway under 6 months triggers --warning; under 3, --negative — and the threshold is configurable, because it's a business judgment, not a universal truth.
Lifted verbatim from Cards. The doc and this page are the same paragraphs, so they cannot disagree.
What lands in your repository
One component is never one file. Everything below is copied into your project, where you own it.
- Files
components/ledger/runway-card.tsx
- Lopifi dependencies · 10
- cardcnfiscal-periodformat-moneyiconsmoneymoney.typesprimitive-tooltipstatus-pilltooltip
- npm packages
- @base-ui-components/reactclass-variance-authorityclsxtailwind-merge
- Registry entry
- /r/runway-card.json
The whole component
No compiled bundle, no black box. This is the file the registry copies, and the file you will edit.
The accounting it encodes
Concepts this component renders. Each one is defined once, in the lexicon, and used identically in the code and the copy.
Also in Cards
- BalanceCardThe hero: one trusted number.
- KpiCardMetric + delta + optional sparkline.
- AccountCardBank account with available vs. current.
- PaymentMethodCardThe physical card object. 3D flip, pointer tilt.
- InvoiceCardInvoice summary with aging state.
- SubscriptionCardRecurring charge with next-billing.
- AnomalyCardA flagged deviation with its explanation.
- GoalCardTarget vs. actual with a progress rule.
- StatCardThe minimal label+value card.
See also
A component is specified in one place, defined in another, and running in a third. All three, from here.
- Cards — the family specThe four-layer specification this component was built against, before it was written.Doc
- Balance, KPI and account cardsThe family running, with real figures in it, in both themes and at every density.Live
- CatalogAll 179 components, specified before they are written.Doc
- RunwayRunway is a cash and runway metric, calculated as Cash ÷ net monthly burn.Term
Elsewhere in the system
Where RunwayCard sits in the rest of the system — the live section it renders in, the calculators that compute what it displays, and the ledger payloads it is fed from.
- RunwayCard, runningThe cards showcase — live, with theme, density, greyscale and reduced-motion switches.Live
- CardsAll cards: 24px radius, 24px inset, --surface on --canvas, 1px --border, no resting shadow. Specs for 10 React components: BalanceCard, KpiCard, AccountCard, PaymentMethodCard and 6 more.Doc
Components are copied into your repository and meant to be edited — rounding policy, fiscal calendar and compliance copy differ per company.
Get an email when Cards changes
Components are copied into your repo, so a fix here does not reach you on its own. One email when a component in this family needs a migration, and nothing when it does not.