# Style your client canvas

Set your firm's colors in the main app. The same theme appears in client sign-in and the embedded questionnaire.

## Choose colors and styling

Open [Firm workspace](https://platform.estatecanvas.ca/firm), select your firm, then open **Website & branding → Canvas theme**.

Start with **Evergreen**, **Ocean**, **Plum**, or **Midnight**, or choose your own:

- **Primary color:** buttons, progress, and accents. Button text switches between light and dark for readability.
- **Background color:** the canvas and sign-in page background.
- **Card color:** form cards, input surfaces, and the sign-in card.
- **Text color:** primary text, with related secondary and border colors derived automatically.
- **Heading font:** classic serif or modern sans serif.
- **Corners:** square, soft, or rounded.

Use the color picker or enter a six-digit hex value such as `#245b94`. A readability hint appears when text and background colors have low contrast. Firm name, welcome heading, and introduction remain editable above the theme controls.

## Preview, then save

The **Live preview** changes immediately as you edit. Switch between **Intake** and **Client sign-in** to see how the settings work together. The sign-in preview is an appearance sample; real email verification still happens through Clerk's secure sign-in window.

Select **Save settings** to apply the theme. Unsaved edits only affect your preview. Your public embed key and website snippet stay the same.

## How live updates work

The public embed key resolves the saved firm appearance from the EstateCanvas service when the widget loads. Visible client windows check for changes every five seconds, and when the tab regains focus. Hidden or background tabs may update later because browsers pause timers.

Only presentation data is refreshed. A theme change does not replace answers, change the client's pinned form version, restart sign-in, or switch workspaces. The next new client window loads the saved theme immediately.

Both light and dark presets work without changing the visitor's browser or operating-system preference. Themes are per firm flow; editing one firm's appearance does not change another firm's canvas or the shared staff workspace login.

## Public appearance endpoint

The widget uses this read-only endpoint with its public key:

```text
GET https://embed.estatecanvas.ca/api/v1/embed/flows/YOUR_PUBLIC_EMBED_KEY/appearance
```

The response contains the canonical flow slug, public firm name and welcome copy, primary color, and theme. It does not contain client data, notification email addresses, or secrets. The endpoint supports `ETag` and `If-None-Match` so unchanged themes return `304`.

The widget handles these requests internally; you do not need to add an API call to your WordPress or Hugo site. Unknown keys and unpublished flows are unavailable. Changing [allowed domains](/domains/) remains a separate setting controlling where the iframe can load.
