The specification is the product.
Start here
Philosophy, research, what already exists, and the standards behind the rules.
- ManifestoFinancial software has the highest stakes for design and the lowest average quality. Teams optimize for correctness, a table satisfies correctness, and the rest gets bolted on: a chart library, a card, a modal. It works. It feels like nothing.
- MoodboardTen references we read closely, and for each one the specific decisions we took from it and the ones we refused. A board that only says "I like this" gets you pastiche. Naming the one decision you're taking and the one you're rejecting gets you a system.
- Prior artDoes something like this already exist? Finance templates do. We haven't found a finance primitive system, meaning installable money, statement and ledger components you compose into your own product.
- Product teardownsThe moodboard sets the visual register. This page goes product by product through the finance software category and says what we take and what we refuse.
- Standards and sourcesMost of what Lopifi implements came from somewhere else. This page lists the standards behind the rules, what we take from each, and which claims are our opinion.
- RoadmapThe order of Lopifi's milestones, from tokens and the money primitive through statements, the close, AR, AP and consolidation. Each milestone proves something the next one depends on.
Guides
How to do the specific things — formatting money, aligning a column, building a ledger table.
- Getting startedGo from an empty shadcn project to a correctly formatted figure on screen. Install the theme first. Every component compiles against its tokens and type scale, and without them a component renders at the wrong sizes with no error.
- How to format money in ReactCurrency formatting looks solved until you hit your first JPY amount, your first negative, and your first value you don't have. Here's the whole method, in the order the bugs show up.
- Negative numbers in a financial tableUse parentheses instead of a minus sign, the real minus where a sign belongs, and a column that stays aligned when the sign changes. Almost nobody implements the third rule.
- How to align numbers in a tableRight-aligned is not aligned. Tabular figures, case-shifted parentheses, decimal alignment, a reserved sign column and rules that carry the arithmetic.
- How to build a general ledger table in ReactThe data grid is the easy part. A ledger table needs two amount columns, a visible balance check, and entries you can reverse but never edit.
- Choosing a React component library for finance softwareThere are good dashboard kits, data grids and fintech templates. Very few of them know what a currency is. Here's an honest comparison, including when you shouldn't use this one.
Foundations
Grid, shape, color, elevation, type, numerics.
- Grid & layoutEvery Lopifi component is designed in four layers, in order: base grid, safe space, structure, type. Type comes last. That order keeps the system coherent when someone new adds a component.
- Shape & radius24px radius, 24px inset. That pairing defines the system's shape. Every other radius derives from it.
- ColorGrayscale first. Color goes only where it carries meaning, and in a financial interface almost nothing does. The palette is one neutral ramp, one accent and a semantic value pair. A design that needs a sixth hue needs a rethink.
- Elevation, borders & shadowsLopifi's most opinionated decision: At rest, a surface is defined by a hairline. A shadow means the thing is actually floating.
- TypographyTwo families, and at most three sizes and three weights per component. The limit forces hierarchy to come from contrast instead of variety.
- NumericsThese are the rules that make Lopifi a finance system instead of a dashboard kit. The rest of the library enforces them on the consumer's behalf.
- Icons & microcopyWhich icons Lopifi uses and how they size, color and change, plus the words a finance UI uses for buttons, errors, empty states and confirmations.
- Imagery, isometric & visual hierarchyLopifi has almost no imagery inside its data surfaces. Where it does — empty states, onboarding, concepts, brand marks — isometric explains a mechanism.
Domain
How accounting actually works. The layer that makes this accounting software.
- The accounting modelEvery Lopifi component sits on one data model, and if the model is wrong no amount of design saves the product. This page defines it, from the journal line up to basis and materiality.
- Periods & the closeThe month-end close in accounting software: fiscal calendars, period states, cutoff, reconciliation vs tie-out, adjusting entries and restatement.
- Statement semanticsThe P&L, balance sheet and cash flow statement are three views of one set of facts, and they tie to each other. This page covers how each one is structured and what the statement components enforce as a result.
- Schedules, accruals & roll-forwardsEvery balance sheet account needs a schedule behind it, and the schedule has to tie to the GL. Most accounting products ship a ledger and statements and leave the schedules in spreadsheets. That handoff is where closes break.
- Order to cash (AR)The receivables stack from quote to revenue: quote → order → fulfillment → invoice → collection → cash application → revenue.
- Procure to pay (AP)The payables stack from requisition to reconciliation: requisition → PO → receipt → bill → approval → payment → reconciliation.
- Cash & treasuryCash is the only balance sheet account where an independent third party, the bank, says what the balance should be. That makes it the easiest account to verify and the one where a break hurts most.
- Controls & auditAccounting software is a system of controls, and most of them are enforced in the UI: segregation of duties, approvals bound to a version, an append-only audit trail, and evidence attached wherever an auditor will ask for it.
- Multi-entity & FXConsolidation and currency are where finance UIs produce wrong numbers without anyone noticing. Both ask you to add up figures that look like they add up and don't: two entities that trade with each other, or euros and dollars in one column.
- Metric definitionsEvery metric in this system ships with its formula, period, inputs and source. A KPI without a definition is a number people argue about in meetings.
- LexiconOne word per concept, used the same way in code, UI copy, and docs. Call one thing by two names and the accountants using your product notice first, then stop trusting the numbers.
- Ledger APIs: Xero, QuickBooks Online, NetSuiteXero, QuickBooks Online and NetSuite each have their own idea of what an invoice is. This page compares them object by object, so a component built against one still works on the other two.
- US GAAP, and where these rules come fromThis system states a lot of accounting rules. Revenue is earned on delivery. Depreciation allocates cost rather than measuring value. A statement of cash flows has three sections and reconciles to the change in cash. A posted entry is reversed, never edited.
Catalog
All 195 components, specified before they are written.
- Component catalog195 components across 14 families, covering accounting and finance UI from money primitives to the close, controls, consolidation, tax and compliance. Not every one is built yet; each component page says whether it's implemented or spec only.
- PrimitivesBuild these first. Everything above them inherits their mistakes. Specs for 16 React components: Money, Delta, Figure, Percent and 12 more.
- CardsAll cards: 24px radius, 24px inset, --surface on --canvas, 1px --border, no resting shadow. Specs for 11 React components: BalanceCard, KpiCard, AccountCard, PaymentMethodCard and 7 more.
- PaymentsPayments — specs for 14 React components: AmountInput, CurrencySelect, PayeeSelect, PaymentForm and 10 more.
- Swaps & FXThe rule for this family: A rate is a perishable fact. It never appears without a timestamp, and it is never transacted on without a lock. Specs for 9 React components: SwapWidget, RateLine, RateLock, ConversionBreakdown and 5 more.
- Ledger & tablesThe table is the product. It gets the same design attention as the hero card. Specs for 17 React components: TransactionTable, TransactionRow, TransactionCard, TransactionDetail and 13 more.
- StatementsNo component library ships a <BalanceSheet />. That's the biggest gap in the market, and the reason Lopifi exists. Specs for 16 React components: StatementTable, StatementRow, ProfitAndLoss, BalanceSheet and 12 more.
- Dashboard & chartsWe wrap a charting engine (Recharts, or visx where we need more control) instead of building one. What we add is everything a chart library doesn't know about money. Specs for 11 React components: DashboardShell, KpiRow, MoneyChart, MoneyBarChart and 7 more.
- System & statesEmpty, error, loading, stale and confirm states. They decide whether a product feels finished. Specs for 9 React components: EmptyState, ErrorState, Skeleton, StaleIndicator and 5 more.
- Accounting core (GL)The general ledger layer. Specs for 18 React components: JournalEntry, JournalEntryForm, JournalEntryTable, AccountPicker and 14 more.
- Receivables (AR)Receivables (AR) — specs for 13 React components: InvoiceForm, InvoiceDetail, InvoiceRegister, CashApplication and 9 more.
- Payables (AP)Payables (AP) — specs for 16 React components: BillForm, BillDetail, BillRegister, DuplicateBillAlert and 12 more.
- Close, controls & consolidationConceptually they belong to this family. Specs for 24 React components: PeriodStatus, CutoffWarning, CloseStatus, AuditTrail and 20 more.
- Metrics & analysisMetrics & analysis — specs for 13 React components: MetricDefinition, NonGaapReconciliation, MrrBridge, BudgetVsActual and 9 more.
- Tax & complianceControlTestResult sits beside them and speaks their idiom. Every component in this family takes an explicit asOf. "Today" is never the client clock, so a server render, a printed copy and a screenshot agree on what is late. Shared types live in src/ledger/lib/compliance.types.ts; the tax-ID checks l
Motion
The decision framework, the tokens, the per-component specs.
- Motion principlesLopifi's motion rules come from Emil Kowalski's animation framework and the performance rules in ui-skills, plus two laws of our own about money.
- Motion tokensEvery animation in Lopifi uses a token. An ad-hoc duration or inline cubic-bézier fails review; see quality bar.
- Motion catalogEvery animation in Lopifi, with exact values. Each entry gives its frequency tier (which decides whether it may animate at all) and its purpose (one of the five).
Craft
Anatomy, accessibility, responsive behavior, the ship gate.
- Component anatomyEvery Lopifi component ships with this spec, filled in, in this order. The order matters. You can't pick a font size on line 1, because layer 4 doesn't exist yet.
- AccessibilityThe priority ladder from ui-skills/fixing-accessibility, plus the finance rules generic guidance misses. In a financial product, an accessibility failure is often a correctness failure. A screen reader that drops the sign from (1,234.00) is reading a different number.
- Quality barThe ship gate for a Lopifi component: baseline UI, motion, accessibility, accounting correctness, edge cases and field performance, every box checked.
- Responsive & inputA financial interface carries more content than almost any other product: twelve columns, four periods, nested hierarchy. It still has to work on a phone held one-handed on a train and on a 13" laptop with a trackpad.
Architecture
Registry, distribution, repo conventions.
- Registry & distributionLopifi distributes through the shadcn registry protocol. Components are copied into the consumer's repo, and from then on the consumer owns the code.
- Repo & conventionsHow the Lopifi repo is laid out, how files and tokens are named, the shape every component follows, and the tests, commands and contribution rules a change has to pass.
- Cross-references & the shape of the siteThe Lopifi site has six views (the docs, the glossary, the component catalog, the toolbelt, the API object model and the live showcase), and all six are generated from the same files in docs/ and src/.
Brand
The mark, the wordmark, color, voice and motion.
Tools
The toolbelt spec — one definition, two surfaces.