Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Brand the portals

Apply your own CSS to the OpenIAM login, Webconsole, and SelfService portals.

Goal: your logo, colors, and styling on the login page and portals — built with a method that works, not by trial and error. Time: 60–90 minutes for a first working brand. Prerequisites: a running stack with Webconsole access. Basic CSS familiarity helps; the method below supplies the OpenIAM-specific knowledge.

How OpenIAM branding actually works (read this first)

Three facts explain every branding success and failure:

  1. It's an override, not an edit. OpenIAM's static UI app serves assets from two places, custom folder first: anything you put under /data/openiam/conf/ui/static/custom/ overrides the packaged asset at the same relative path — CSS, images, fonts, JavaScript alike. You never modify shipped files.

  2. Your stylesheet loads last. A UI theme's Stylesheet URL is appended after all default CSS on every page, so your rules win whenever they match at equal or higher specificity.

  3. Static assets are cached for 5 days. The single most common "my CSS doesn't work" is cache. Always verify with Ctrl+F5 or an incognito window. (Upgrades cache-bust automatically via a version query string like custom.css?2026.7.1.)

Two things are not done with CSS: footer/copyright text (Administration → System Configuration → UI tab → Footer) and application tile icons in the Launchpad (set per application on its Authentication Provider's Application Icon field).

1

Get the pipeline working before you style anything

Prove the override chain with a deliberately ugly smoke test.

sudo mkdir -p /data/openiam/conf/ui/static/custom/bootstrap-ui/css
sudo mkdir -p /data/openiam/conf/ui/static/custom/images
cat <<'EOF' | sudo tee /data/openiam/conf/ui/static/custom/bootstrap-ui/css/custom.css
/* smoke test — remove after step 1 */
body { background: #ff00ff !important; }
EOF
sudo chown -R openiam:openiam /data/openiam
sudo systemctl restart openiam-ui-static

The file must be named custom.css. Then wire it up in the Webconsole:

  1. Administration → UI Themes → edit the existing theme (or create one) → set Stylesheet URL to /openiam-ui-static/bootstrap-ui/css/custom.css → Save.

    The Webconsole Administration menu open, with UI Themes highlighted among its entries

    The same screen carries the image uploads. Sizes are recommendations, not limits — but matching them avoids the browser rescaling your logo:

    Upload
    Recommended size
    Where it appears

    Login and self-registration logo

    270 × 100

    The sign-in and self-registration pages

    Application logo

    110 × 40

    The top-left of the Webconsole and SelfService

    Favicon

    16 × 16

    The browser tab

    Upload only the largest favicon you have. OpenIAM replicates it to every size the browsers ask for, so there is no need to prepare a set.

  2. Access Control → Content Providers → your content provider (from Verify health and log in) → select the theme in UI Theme → Save. All URL patterns inherit it unless a pattern sets its own theme — which is also how you can brand /selfservice/* differently from /webconsole/* later.

    The content provider form with the UI Theme field set to the theme created in the previous step
  3. Hard-reload the login page (Ctrl+F5).

If the page is now violently magenta, your pipeline works — everything from here is just CSS. Remove the smoke-test rule.

2

Learn the selectors from the page itself, not from guesswork

The reliable method for building working rules:

  1. Open the page you want to change (start with the login page) in Chrome/Edge/Firefox.

  2. Press F12, use the element picker (Ctrl+Shift+C), and click the element — logo, button, background.

  3. Read the class/ID in the inspector (e.g. the login logo is <a class="logo llogo"> inside <div id="llogo">).

  4. Edit the style live in DevTools until it looks right — this is your zero-latency preview, with no cache in the way.

  5. Copy the finished rule into custom.css, restart openiam-ui-static, hard-reload, confirm.

Iterate in DevTools, persist in custom.css. Never iterate by editing the file — the restart-and-cache loop will eat your afternoon.

3

Start from a working template

This template covers the elements every branding project touches. Selectors are from the shipped pages; adjust values, verify each in DevTools per step 2.

Two ways to change a logo — pick one and stay consistent. Drop same-named files under custom/images/, using the override mechanism above, or point the CSS at new filenames. Recent versions also let you upload logos directly on the UI Theme edit form, which is the fastest path if a logo is all you need.

Reach for !important last. When a rule does not apply, DevTools shows which default rule outranks it, and matching that selector is the durable fix.

4

Test like it will be used

CSS that fixes one page can break another, because the portals share stylesheets. After each meaningful change, check all of: the login page (logged out), password-change screen, Webconsole landing, SelfService landing, and one framed page — in a fresh incognito window. Downloadable worked examples for the login, change-password, and SelfService request pages ship with the developer guide's branding chapter — use them as references for page-specific selectors.

If it failed

Symptom
Likely cause

Nothing changes at all

Cache (hard-reload/incognito); theme not assigned to the content provider you're actually browsing through; stylesheet URL typo — open /openiam-ui-static/bootstrap-ui/css/custom.css directly in the browser: you should see your file

Direct URL shows 404

Wrong path or filename (must be custom.css), or ownership — re-run the chown and restart openiam-ui-static

Rule visible in the file but not applied

Outranked by a default rule — inspect the element in DevTools, check the crossed-out rule, and use a more specific selector

Logo shows as broken/blank

Image path wrong (must be web-accessible under /openiam-ui-static/), or width/height don't match the image

Works in Webconsole, broken in SelfService

Shared selector with different markup — scope the rule (e.g. under #login or a page-specific ancestor) and re-test both

You know this worked when…

The Webconsole header after a theme is applied: the OpenIAM logo replaced by a customer logo, and the navigation bar carrying the theme colors instead of the OpenIAM default

Last updated

Was this helpful?