exoDocs

Guides

Sign in with Exo Imprint

The standard sign-in button for apps on Exo, and the Imprint card it opens.

Every app on Exo signs people in the same way: a Sign in with Exo Imprint button on the app's own page, which opens the Imprint card on Exo. The card takes on your app's look, so it feels like part of your app, and ends with a fixed Exo Imprint footer that shows where the person will return. Decision record: ADR 0025.

Place the button

The button is a plain link to your app's own sign-in start route (for example /auth/start?redirect_url=…). That route redirects to Exo's /id/authorize. Nothing else changes in your Imprint integration.

  • In the Exo repo (React): ExoImprintButton from src/components/ExoImprintButton.

    <ExoImprintButton href="/auth/start?redirect_url=%2F" size="md" appearance="light" />
  • Any other app (Vite, Next, plain HTML): copy exo-imprint-button.css and the markup in exo-imprint-button.html from packages/exo-app-sdk/imprint-button/.

    <a class="exo-imprint-button" data-size="md" data-theme="dark" href="/auth/start">…</a>

Sizes

SizeHeightUse
sm36pxDense headers and toolbars only (below the 44px touch target)
md44pxDefault
lg52pxHero and empty states

Add block (data-block in HTML) to fill the width of a form or a phone layout.

Light and dark

Pick the appearance that contrasts with the surface the button sits on: light (paper button, ink edge) on dark or tinted surfaces and on white, dark (ink button, light edge) on dark app chrome. The Exo seal is the same in both.

Your look on the card

Exo keeps each app's card theme in its registry (convex/lib/exoIdApps.ts):

  • display name, logo (served from Exo at /imprint/apps/<app>.svg), accent color, light or dark, and an optional corner radius of 0, 4, 8 or 12 px;
  • the accent must pass WCAG AA (3:1 against the card, 4.5:1 under text) or the card uses Exo's accent;
  • no custom CSS, HTML or fonts. Type uses the Structured Liquidity scale.

Ask the Exo project to add or change your theme.

The quiet line at the bottom of the card (the small Exo Imprint mark and the domain the person will return to, as in Exo Imprint · returns you to cosmograph.space) looks the same on every app and reads none of your theme. That sameness is the point: if any app could restyle it, a look-alike page could copy it. Together with the address bar, which always shows Exo, it is how people learn the card is real.

Do

  • Link the button to your own start route; let Exo's card do the rest.
  • Use the label as is: "Sign in with Exo Imprint".
  • Choose size, light or dark, and width to fit your layout.
  • Keep your own authorization (roles, allowlists) in your app; Imprint proves who someone is.

Don't

  • Don't collect emails, phone numbers, codes or passwords on your own page for Exo sign-in.
  • Don't put /id/authorize in an iframe or a webview you control; it refuses to be framed (an enforced frame-ancestors 'none' and X-Frame-Options: DENY).
  • Don't recolor, relabel, crop or animate the button or the seal.
  • Don't draw anything that imitates the Imprint footer.

Source: content/docs/guides/imprint-button.mdx

On this page