The theme

A theme is how the pages the gateway serves look: the sign-in flow, the tenant picker, the password and account pages, the unavailable and not-found pages, the mails it sends, and the user button and portal bar it injects into the applications behind it.

It is made the way Material Theme Builder makes one, and it is the same theme: six source colours, a contrast level and a "color match", from which every Material 3 role is generated, in light and in dark. A role is a named use of a colour, such as primary (the main button) or on-surface (text on the page); you never pick roles one by one, the editor derives them all from your colours. Three typefaces and one switch for the decorative effects complete it.

It is edited under Application > Built-in pages, on the Theme tab, with the real pages previewed beside it.

The theme editor: the source colours, the contrast and the typography on the left, the two previews on the right

The name, the logo and the background picture are not part of a theme: they are the branding, which stays the same whatever theme is active. The arrangement of the page is the layout. To see what the three together can produce, see six brands, the same pages.

Make your own theme

  1. Open Application, Built-in pages, Theme tab.
  2. With the arrows of the carousel between the two previews, select the built-in theme closest to yours. Built-in themes are read-only (a lock beside the name): open the More menu beside the name and choose Duplicate.
  3. Rename the copy with the pencil, and set its primary colour under Core colours. Leave the others derived unless your brand has them.
  4. Check both previews, dark and light, and walk through the pages with the page picker above them: the sign-in page, the mails, the portal bar.
  5. Click Save, at the bottom of the card.
  6. Click the pill in the middle of the carousel to activate it. Selecting a theme does not serve it: until the pill is clicked, its tooltip says Not active. Click to activate.

Six source colours

Only the primary is required. The others are derived from it until you set one; the editor tags them derived and shows the value they are derived as, and a button puts a colour you set back to derived.

Source What it paints on the pages
primary the brand and the action: the main button, focus, links, the logo's halo
secondary what is chosen or browsed: the selected option, the active language and scheme, the current tab of the portal bar
tertiary state and information: the signed-in and current badges, satisfied password rules, explanations, codes to copy
error refusals and invalid fields
neutral the page, the card and the text
neutral variant secondary text, hints, outlines

Both schemes are generated

On save, the gateway generates the 49 roles of Material 3, for the light scheme and for the dark one, from the source colours. It does it with the same algorithm as Material Theme Builder (material-color-utilities), so the same six colours give the same schemes there and here, role for role. The two schemes are generated together and therefore never disagree; the editor lists every role, dark and light side by side, under Generated roles, read-only.

Which schemes the pages offer is decided under the theme's name, by the Schemes offered checkboxes: untick Dark or Light and the pages stop proposing it. One of the two always stays. See light, dark, or the visitor's choice.

Glow

One checkbox drives the decorative effects of the built-in pages: the ambient halo behind the page, the glows on the logo, the buttons and the status line, and the gradient on the application's name. Untick Glow for a flat design. In the API it is the theme's flat field.

A gradient name is a matter of taste, and of legibility: on a light background, a pale primary makes a pale name. Flat paints it in one solid colour.

Typography

Three typefaces, each one of the families the gateway ships, or none for the system's own:

Slot What it sets Families
Display the titles and the application's name Inter, Roboto, Open Sans, Montserrat, Nunito, Raleway, Noto Sans, Source Serif 4, Lora, Merriweather, Playfair Display, Noto Serif
Body the text and the buttons the same twelve
Code codes, keys, fields and labels JetBrains Mono, Roboto Mono

The files are in the binary and the gateway serves them itself: a visitor never contacts a font CDN, an installation without internet access has them, and an application's Content-Security-Policy ('self') lets them through. A browser downloads a file only for a character of its range, so a French page costs one Latin file.

The chosen family draws Latin and Cyrillic. Behind any choice, Noto draws Arabic, Hebrew, Devanagari and Thai; Chinese, Japanese and Korean use the system's fonts. A mail carries the font stack only, because most mail clients do not load web fonts.

The preview

The right of the screen shows the page in both schemes, dark and light, and follows as you pick, before anything is saved. A carousel above it walks through what a theme paints: the sign-in specimen, every built-in page, the mails and the portal bar. Hovering a source colour or a role makes what it paints blink in the preview: it is the fastest way to find out what a role name means.

Several themes, one active

Themes are colour trials; one is active, the one visitors see. The carousel between the two previews is the list of themes:

Eight built-in themes ride in the carousel, read-only, all on the same base with a different primary: Sentinel's Watch (the default), Midnight, Lavender, Orchid, Rose, Crimson, Ember and Forest. A lock replaces the rename pencil; to start from one, duplicate it.

Carrying a theme elsewhere

Export and Import are the two buttons at the bottom of the theme's card, beside Save.

Export downloads the Material Theme Builder JSON format: the source colours, the six schemes (light and dark at three contrast levels) and the tonal palettes. What only Meerkat knows travels under a key of its own, meerkat, which the builder's readers ignore: the name, the contrast, the color match, the typefaces, Glow and the offered schemes.

Import reads a builder export, from Meerkat or from the builder itself, and fills the editor without saving: you look at the result in the preview, then save. Whether Color match was on is read off the schemes the file carries. An export older than the builder's 2025 contrast rules imports by its colours, and the screen says that some roles differ from the file.

A theme is also part of a configuration export, with the rest of the installation.

The CSS properties

The pages read the theme as custom properties, emitted once per page with the light and the dark value side by side (CSS light-dark()), so the visitor's scheme picks the palette with no flash and no script:

Every value the theme emits is a colour the gateway generated: nothing typed in the editor reaches the page's style block as it was typed.

What is missing