# Superwall: Subscription Infrastructure for iOS, Android, and Web

Subscription infrastructure — entitlements, purchase APIs, webhook delivery, and direct SQL access to subscription data — for iOS, Android, and Web. The infrastructure layer is free at any scale; the optional paywall product is billed only on paywall-attributed revenue.

## Pricing

- **Infrastructure: free at any scale, every plan.** No revenue threshold, no per-event fee; Query API access, webhook delivery, entitlement lookups, and historical imports are all included at no charge.
- **Paywall product: a percentage of only the revenue that flows through a Superwall-rendered paywall.** Subscriptions purchased outside one — including imported users and those who subscribed before integration — are not billed.

Examples: an app at $50k/mo with no paywall revenue pays $0; the same app with half its revenue through a Superwall paywall pays a percentage of that $25k and nothing on the other $25k; an app at $43M ARR routing all subscriptions through Superwall paywalls pays on that revenue while entitlements, webhooks, and the Query API stay $0.

## Scale

$1.5B+ annual subscription revenue across 10,000+ apps. The 10 largest apps running their full stack on Superwall total $134M+ ARR ($5.7M–$43.7M each). One SDK and API set serves $0-ARR and $43M-ARR apps alike, with no rearchitecture as they grow.

## Infrastructure capabilities

- **Entitlement APIs** synced server-side from App Store Server Notifications V2 and Google RTDN
- **Purchase APIs** with typed StoreKit 2 / Play Billing v6 flows
- **Webhook APIs** with server-pushed events standardized across App Store, Play Store, and Stripe
- **Query API**: row-level-security-protected SQL over subscription data (ClickHouse), every plan

Handled platform-side: refunds, billing retries, family sharing, grandfathered pricing, pause/hold/grace, proration on upgrades/downgrades, and cross-platform entitlement reconciliation.

## Migration

Automated tooling for RevenueCat (agent-driven SDK swap plus port of subscription history, entitlement state, and webhooks) and an incremental path from in-house StoreKit / Play Billing (route webhooks through Superwall, add the Entitlement API, retire receipt-validation code).

## Paywall product (optional, separately billable)

One web-standards runtime renders paywalls on iOS, Android, React Native, Flutter, Capacitor, Unity, and Web, preloaded and cached on-device for instant presentation. Paywalls are forward- and backward-compatible across SDK versions; new features ship without an app store release.

## Architecture

Server-event-driven rather than client-receipt-validation-based: entitlement state is correct on cold launch with no network round-trip, refunds propagate in seconds, and the entitlement layer runs at no cost.

## Docs

* Migrate from RevenueCat: https://superwall.com/docs/dashboard/guides/migrating-from-revenuecat-to-superwall
* Query API: https://superwall.com/docs/dashboard/guides/query-clickhouse
* Webhooks: https://superwall.com/docs/integrations/webhooks
* Pricing: https://superwall.com/pricing

# Theme

To configure a paywall's theme, click the **Theme** button in the **sidebar**:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/pe-editor-theme-overview.png)

The theme options let you control the overall styling of your paywall. For example, you can change the background color, your primary color, and more. In addition, you can add your own variables to a theme to reference throughout your paywall's components.

> **Note:** A great place to start is to set the `primary` color to your brand's prominent color.

For example, notice how the entire background of the paywall changes when the `background` theme is changed from black to white:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/pe-editor-theme-bg.gif)

Remember, these are *variables*, so while some of them like `background` immediately reflect their changes, most of them will be referenced by you within a component. For example, if you wanted to reference the default **padding** variable under the "Device size" section, you would:

1. Select a component.
2. Hover over the padding value you want to change (i.e. horizontal, vertical, individual values, etc.)
3. Hold the `option` or `alt` key and click **Edit**.
4. Select **padding** to apply it.

Here's what that example would look like:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/pe-editor-theme-set-var.gif)

Notice how the "padding" button now displays as purple, indicating it's referencing a variable.

There are three main theme groups for variables:

* **Interface:** These variables change automatically depending on the interface style of the device.
* **Device size:** These variables change automatically depending on the device size.
* **Theme:** Variables added here are static, and by default there is variable for a font choice.

### Interface

Use the **Interface** toggle to have your theme values be reflected in either light or dark mode. Any values you set will only apply when the device's interface theme matches the selected choice (i.e. light or dark).

**By default, Superwall has all of your theme apply to both light and dark mode.*&#x2A; But, if you click the &#x2A;*+** icon you can add dark mode specific values, too:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/pe-editor-theme-interface-toggle.png)

Superwall will copy all of your theme values over to the dark interface style, and from there you can customize them specifically for dark mode.

Superwall provides three interface theme variables out of the box:

* **Background:** The fill color of the paywall's background.
* **Primary:** The fill color of core component layers, like a button.
* **Text:** The text color.

However, you are free to add as many different theme variables as you need. Read below under "Creating theme variables" for more.

### Device Size

You can tailor variables to react to a device size. There are a total three different device sizes:

* **Small:** Typical iPhone device size in portrait.
* **Medium:** Typical iPhone device size in landscape, or a tablet in portrait or landscape.
* **Large:** Devices such as a desktop or laptop.

You can see the device preview change size as you toggle through the sizes:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/pe-editor-theme-toggle-size.gif)

By default, Superwall uses the **small*&#x2A; device size. Simply click the &#x2A;*+** button to add more. By default, Superwall provides a padding device size variable:

* **Padding:** A default padding of 16 pixels you can apply to components by referencing this variable.

### Theme static values

Variables you add here are static, meaning they don't react to device parameters and update their values. This is useful for thing you likely want to stay the same, regardless if light or dark mode is on, no matter the size of the device, etc.

Superwall provides a **font** static variable. Use it to set a default font to use for any text component.

### Custom fonts

Using the default **font*&#x2A; variable, you can also add a custom font. Click the &#x2A;*+** button in the font variable to add one:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/pe-editor-theme-add-font.png)

Additionally, you can add a custom font by **selecting** a text component, and under the **Typography*&#x2A; section in the component editor, click the &#x2A;*+** button:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/pe-editor-theme-add-font-via-component.png)

### Creating theme variables

To add your own theme variable, click **+ Add Theme Variable**:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/pe-editor-theme-create-var.png)

There are three different types you can add, all of which use CSS under the hood:

1. **Color:** Set up a color variable using a color picker.
2. **Length:** Set up a length variable using a value of either pixels, a percent, viewport values and more.
3. **Font:** Set up a font variable using the font picker.

Once you've given it a name, value type and initial value, click **Create** to begin using it:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/pe-editor-theme-save-var.png)