One of the most common complaints I have heard about Entra External ID compared to Azure AD B2C is the limited customization of the sign-in pages. With B2C custom policies you could do pretty much anything with your own HTML templates. With External ID, you have had company branding: a background, a logo, some text, and custom CSS if you were brave enough.

That is changing. On December 7th, 2026 (next week), a bunch of new customization options are scheduled to become available in public preview:

  • A modern sign-in experience built on Fluent Design System
  • Basic styling with brand colours
  • Advanced styling with design tokens
  • Custom HTML with custom JavaScript

In this article, let’s look at what each of these gives you, what the limits are, and which one I would pick for different situations.

Note that this is all preview functionality and things may change before GA.

The options as a ladder

I find it easiest to think of the options as a ladder. Each step gives you more control, but also more things you are responsible for.

  1. Company branding (what we have today)
  2. Modern Fluent Design System experience with branding themes
  3. Basic or Advanced styling
  4. Custom HTML + JavaScript
  5. Native authentication

On every step except the last one, Microsoft still renders the actual authentication controls (inputs, buttons, MFA challenges). With native authentication, your app draws every screen by itself, and only talks to the API.

What we have today

Currently you can customize the Microsoft-hosted pages with company branding:

  • Background image and colour
  • Favicon and banner logo
  • Header and footer layout
  • Custom CSS
  • Text and language customizations

Custom CSS has been the escape hatch for anything else. The problem with it is that you end up depending on whatever class names the page happens to have. And as we’ll see, the new experience does not honour custom CSS at all.

The modern Fluent experience

The new modern authentication experience is the basis for the other options that we will cover. It is a refresh of the sign-in pages using Microsoft’s Fluent design language. Things like:

  • Floating labels on inputs
  • Show/hide password
  • Auto-progressing code-entry boxes for one-time codes
  • Easier switching between sign-in methods
  • Clearer error messages
  • Responsive layouts

You also get light and dark modes. The theme mode can be Light only, Dark only, or Both (adaptive), which follows the user’s device setting. Since dark mode exists now, you can also upload dark-mode versions of the header image, background image and banner logo.

There are some new content properties as well:

PropertyUseRecommended length
Display message box (short)Always-visible guidance below the sign-in box150 characters
Display message box (long)Expandable guidance, e.g. account recovery1024 characters
Support textShown via Help or certain errors300 characters

All of these support Markdown. You can also configure the visibility, text and URL of the “Create account” link.

One important thing: these properties are set in branding themes that you assign to applications. They are not available in tenant-wide company branding. Also, the admin center language settings don’t support the new properties yet, so per-locale values have to go through the Graph theme localization API.

Basic styling

Basic styling is the “I just want my brand colour on the buttons” option. You set a brand colour for light mode and one for dark mode. The admin center then generates a palette of 16 shades for each, numbered 10 to 160.

Different controls use different shades. For example, in light mode the primary button background uses shade 80 normally, 70 on hover and 40 when pressed. Links, input focus underlines, code-entry boxes, checkboxes and the loading spinner use the ramp as well.

What the ramp does not change: body text, page and sign-in box backgrounds, logos, error colours and secondary buttons. If you need those, you need Advanced styling.

Advanced styling

Advanced styling uses design tokens. If you have worked with Fluent UI, these will look familiar. You edit a JSON document (in the admin center or through Graph) that has a lightTheme and a darkTheme property, each containing design token overrides.

There are shared Fluent token categories:

  • themeColorRamp and themeColorOverrides
  • colorStyles
  • typographyStyles
  • spacingStyles
  • borderStyles
  • shadowStyles
  • animationStyles

And component-specific ones like headerStyles, footerStyles, signInContainerStyles, inputStyles, primaryButtonStyles, secondaryButtonStyles, tileStyles and so on.

A small example that rounds the corners and sets the sign-in box background:

{
  "lightTheme": {
    "borderStyles": { "borderRadiusMedium": "8px" },
    "primaryButtonStyles": { "borderRadius": "20px" },
    "colorStyles": { "colorNeutralBackground1": "#FFFFFF" }
  },
  "darkTheme": {
    "borderStyles": { "borderRadiusMedium": "8px" },
    "primaryButtonStyles": { "borderRadius": "20px" },
    "colorStyles": { "colorNeutralBackground1": "#1F1F1F" }
  }
}

A few gotchas I found while reading through the docs:

  • Only include what you want to change. Anything you leave out keeps the Fluent default. If you paste in the full template with every default value, they all become explicit overrides and you won’t get future default improvements.
  • Light and dark themes don’t inherit from each other. If you want rounded buttons in both, you set it in both.
  • Graph needs the full ramp. The admin center generates the ramp from one colour, but if you set themeColorRamp programmatically, you have to provide all 16 stops.
  • Custom fonts are a two-step thing. You register the font file in fontFaceStyles, then select it with fontFamilyBase in typographyStyles. Registering alone doesn’t select it, and a family name alone doesn’t load anything. Custom fonts also need an HTTPS-hosted font on a custom domain.

And to be clear, this is not arbitrary CSS. You can only style what the tokens expose. The point is to allow Microsoft to evolve the UI without risk of breaking your custom CSS. Since there is no page layout versions like in Azure AD B2C, it would be a risk.

Custom HTML and JavaScript

This is the one I’m most interested in. Custom HTML lets you build your own page around the sign-in box: header, navigation, imagery, help content, footer, whatever you need.

Two hard requirements: you need a custom domain for your authentication experience, and if you use JavaScript, you need to host it yourself at a public HTTPS location your organization controls.

Illustrative mockup of a custom HTML sign-in page with the page shell, the sisuBox and its three content areas marked (AI-generated)

The above is my own mockup of a fictional brand, not a product screenshot.

The sisuBox

The contract is quite simple. Your HTML must contain exactly one empty element:

<div id="sisuBox"></div>

Microsoft renders the whole authentication experience inside it. Everything else on the page is yours. Everything inside the box is Microsoft’s. So it’s basically the same as Azure AD B2C, where you would have a box with id “api”.

Diagram showing your page shell, the Microsoft-owned sisuBox, content slots, events, script host and the Entra External ID tenant (AI-generated)

The docs are very explicit about what you must not do.

  • Don’t put your own fields or buttons in the box.
  • Don’t read, click, relabel, restyle or attach handlers to Microsoft’s controls.
  • Don’t depend on the DOM structure or generated class names inside it.
  • Never collect credentials or codes.

Honestly, I’m glad they are this strict about it. A sign-in page where random scripts poke at the password field can be a security nightmare. Also, it’s just because those scripts would most likely break the moment Microsoft decides to do a small change to the DOM structure (which again, is avoided in AAD B2C with page layout versions that External ID does not have).

Side note: the “sisu” in sisuBox stands for sign-in/sign-up, not the Finnish word 😂

Content areas

There are three areas inside the box that you can work with:

AreaLocationWhat goes there
subHeadingSectionBetween the title and the descriptionYour content
formSectionAfter the fields, before the submit actionsYour content
bottomSectionAfter the actionsShows the display message box text; placement metadata only, not an injection slot

So you can inject your own guidance in the first two, but the bottom one is not for your scripts.

Events

To make the page react to what is happening in the sign-in box, there are two events, dispatched on #sisuBox (they bubble, so you can listen for them at window level too):

  • sisuBox:scenariochange: the current step changed. event.detail has schemaVersion, activeAction and optionally elements.
  • sisuBox:actionprocessing: an action started or stopped processing. event.detail has schemaVersion and a boolean actionProcessing.

The activeAction values are discover, select, challenge, verify, disambiguate, collectAttributes, enroll, activate, consent, prompt and update. This tells you what screen the user is seeing.

Here is a minimal script that updates a guidance paragraph outside the box:

(function () {
  "use strict";

  const box = document.getElementById("sisuBox");
  const guidance = document.getElementById("guidance");
  if (!box || !guidance) return;

  const defaultText = guidance.textContent;
  const tips = new Map([
    ["verify", "Enter the code we sent you. Never share it."],
    ["collectAttributes", "We need these details for your account."],
  ]);

  function apply(detail) {
    // Only handle versions we understand
    if (detail?.schemaVersion !== 1) return;
    guidance.textContent = tips.get(detail.activeAction) ?? defaultText;
  }

  // Register listeners first, then read current state for late-loading scripts
  box.addEventListener("sisuBox:scenariochange", (e) => apply(e.detail));
  if (box.sisuBoxScenarioChange) {
    apply(box.sisuBoxScenarioChange);
  }
})();

Some things to keep in mind with the events:

  • They are hints, not results. actionProcessing going to false does not mean sign-in succeeded or failed. Your app gets the result from the authentication response, like always.
  • Validate schemaVersion === 1 and ignore unknown actions or fields.
  • Don’t assume ordering or that an event fires once. Make handlers safe to run multiple times.
  • If your script loads late, register the listeners first and then read sisuBoxScenarioChange / sisuBoxActionProcessing from the element, so you don’t miss anything in between.
  • If you use elements to find a content slot, resolve it again on every scenario change. The IDs can change between views.
  • Sign-in must work without your script. If the script fails to load, users still need to be able to sign in.

You can also combine custom HTML with Advanced styling, so your page design carries into the sign-in box through the tokens. There are even specific slotSubHeadingStyles and slotFormStyles categories for the content slots.

Native authentication

If none of the above is enough and you want sign-in screens inside your app itself, there is native authentication. Your mobile, desktop or single-page app draws every screen, and Entra External ID still validates the credentials, enforces policies and issues tokens. I think this is most useful for mobile apps where it can be a little jarring to open a web browser view for login.

The catch is that your app now handles every step: MFA challenges, attribute collection, registration and so on. The Native Authentication API V1 is GA, while V2 is in preview. The new branding properties don’t apply here either, since there is no Microsoft-hosted page to brand.

I would only go this route if the UX requirements really demand it. It is a lot more work to build and maintain.

Before you enable the preview

There are some important caveats listed in the availability and scope section:

  • Enabling the preview applies the modern experience to all authentication flows in the tenant, even if you only assign the new themes to specific apps.
  • Federation flows are not supported. If your users sign in with other identity providers, test carefully.
  • Custom CSS isn’t honoured. If you rely on it today, you’ll need to rebuild that styling with design tokens or custom HTML.
  • Admin center language settings don’t support the new properties. Use Graph for per-locale values.
  • The new properties aren’t available in tenant-wide company branding, and don’t apply to native authentication.

I would definitely try this out in a separate test tenant first.

Which one should I pick?

My rule of thumb is to pick the lowest step on the ladder that meets your needs:

NeedOption
Logo, brand colour, some help textFluent experience + Basic styling
Match an existing design systemAdvanced styling
Own page layout, step-aware guidanceCustom HTML + JavaScript
Sign-in screens inside the appNative authentication
Federation is criticalStay on the current experience for now

Summary

The new customization options close a big gap between Entra External ID and Azure AD B2C. Basic styling gets your brand colour in place in minutes, Advanced styling handles design systems, and custom HTML finally lets you build a proper branded page around the sign-in box. And all of it without having to build and maintain the authentication UI yourself.

The rules for custom HTML are strict, but for good reason: Microsoft owns the sign-in box, you own everything around it. As long as you stick to the documented content areas and events, you should be fine.

Just remember that this is all preview, and enabling it affects every flow in your tenant.