Documentation Index
Fetch the complete documentation index at: https://docs.calmtreasury.xyz/llms.txt
Use this file to discover all available pages before exploring further.
<CalmProvider>
Provides the client, runs session bootstrap, polls state, exposes everything
to children via useCalm().
Props
Returns the current Privy identity token. The SDK calls this on session
bootstrap. With Privy, pass
usePrivy().getIdentityToken.Override the API root. Useful for testing against a local API.
Optional prefills for the register form. Useful when the partner already
has the user’s email (from Privy) or wants to lock the country.
<DepositFlow>
Renders the step appropriate to the current state. Self-contained — no
wiring required beyond mounting it inside a CalmProvider.
Props
Fires once when the virtual account is created and the instructions step is
showing. Use it to navigate away or hide other UI.
Appended after
calm-root. Use it to scope CSS-variable overrides.Styling
CSS is injected once on first mount, scoped to.calm-*. Override via CSS
variables on any parent:
| Variable | Default (light) | Default (dark) |
|---|---|---|
--calm-bg | #ffffff | #0f0f10 |
--calm-fg | #0a0a0a | #fafafa |
--calm-muted | #6b7280 | #9ca3af |
--calm-border | #e5e7eb | #262626 |
--calm-accent | #111827 | #fafafa |
--calm-accent-fg | #ffffff | #0a0a0a |
--calm-radius | 12px | 12px |
--calm-font | system | system |
prefers-color-scheme: dark is respected automatically.