---
title: Themes
summary: A theme is the look of a realm's sign-in pages, emails and account pages.
section: concepts
order: 6
---
# Themes

A theme is the look of a realm's sign-in pages, emails and account pages.

People sign in on pages that Tessera serves, so the theme is how those pages look like your product. Changing it never changes the layout, the wording that keeps people safe, or what the page says about who is asking and where you will be sent. Those security cues stay the same under every theme.

## What a theme holds

- A **skin**, which is a ready-made look from the Kurth Labs Design design system. The published skins are `default`, `control`, `pewter`, `foundry` and `inscribed`.
- A **color scheme**: `dark`, `light` or `system`, which follows the person's device.
- A **density**: `compact` or `comfortable`.
- A **layout**: `card` (a centred card, the default), `split` (a brand panel beside the form) or `fullbleed`.
- **Token overrides**, which change named colors and a few shapes of the skin.
- A **brand**: the product name, logos, a favicon, images and up to 16 fonts you upload.
- Optional **custom CSS**, **page title pattern** and **page text** for some pages. Custom CSS can style every element of every hosted page, up to 64 KiB, and may use your own uploaded images. It cannot load anything from another address.

## Where it applies

A theme applies to hosted pages (sign-in, code entry, invite, consent, sign-out and errors), to the emails Tessera sends for the realm, and to the account app. Themes can be set on three levels, and the most specific wins for each setting:

```text
client  >  access app  >  realm
```

A person who signs in to one app sees that app's look, and still signs in once for all the apps on the same realm host. The brand comes from the app being signed in to, never from a URL parameter.

## Checks

Tessera checks every theme before it is saved. Color tokens take only hex colors, fonts must be files you upload, and every pair of text and background colors is tested against the WCAG contrast minimums. A theme that fails is refused, so a page cannot become unreadable.

The lines a person uses to decide whether to go on, such as who is asking, where you will be sent, warnings, the device code and the decision buttons, are protected. CSS that hides one is refused, and a guard sheet that loads after yours keeps them visible and readable whatever your CSS says.

## Start from your site and preview

You do not have to build a theme by hand.

- **Match my site.** Give Tessera the address of your website (`https`, public). It reads the logo, colours, fonts and light or dark scheme, and proposes the closest skin with token overrides, the logo, favicon and any fonts the site serves itself. It fixes colours that fail the contrast check and tells you what it changed. The proposal is not saved until you apply it. Use `tessera theme import-brand <url>` or the admin API.
- **Live preview.** Render the real sign-in, code, consent, device and error pages with a theme you have not saved. You get links that stay valid for 15 minutes and that you can share, plus the contrast checks. Use `tessera theme preview` or the admin API.

See [themes](/docs/customize/themes.md#match-my-site) for the steps.

## Set one up

See [themes](/docs/customize/themes.md).
