Skip to content
ProHomeLab
RU

SSO

How I Built a Custom Authentik Theme for ProHomeLab

Stilicho20116 min read0 views

Also available in: RU

Part 10 of 10 in the series Authentik
  1. Authentik Overview - Architecture, Features, and Comparison with Keycloak
  2. OIDC, OAuth2, and Proxy Provider in Authentik - How to Protect Any Application
  3. Authentik - Initial Setup After Installation
  4. Setting Up Password Recovery in Authentik
  5. Setting Up User Enrollment and Invitation Processes in Authentik
  6. Setting Up Two-Factor Authentication in Authentik
  7. Cloudflare Turnstile in Authentik - Setting Up Login Form Protection
  8. Setting Up Email Notifications in Authentik
  9. Authentik - Setting Up a Reputation Policy
  10. How I Built a Custom Authentik Theme for ProHomeLab
Contents

I see the Authentik sign-in page every time I log in to one of my homelab services. I wanted it to look like it belonged to ProHomeLab. I figured I'd drop in the logo, borrow a few colors from the brand guide, and call it a day. Instead, I spent most of the time working out which bits actually needed color, and which bits Authentik would let me style without making something else look worse.

Here's where I landed. The artwork from the ProHomeLab intro sits on the left. The sign-in form gets a graphite panel on the right, with one amber button to draw your eye. The theme is on GitHub if you want to use the CSS as a starting point and swap in your own artwork.

ProHomeLab's Authentik sign-in page with the house-shaped server logo on the left and the form on the right

Just installed Authentik? Set up your account and enable two-factor authentication first. None of the changes below affect how users authenticate.

What I changed and why

The admin interface was the harder test

A sign-in form doesn't give you much to fight with. The admin interface does. Take a look at the two early versions of User Statistics below. There's a bright blue notification badge in the corner, a red active menu item, and green charts. Add a mint border to the mix and suddenly everything wants your attention.

Both screenshots show the same page. Look at the panel backgrounds, the weight of the headings, and the User interface button in the top right. It wasn't just a matter of picking a better shade of blue.

Early User Statistics design with lighter headings, a blue notification badge, and a red active menu item

Another User Statistics design with heavier headings and graphite panels

The toolbar crops show the problem up close. A mint outline looks fine on its own. Put it next to that blue badge and the button for switching views is suddenly one of the loudest things on the page.

Early admin toolbar with a blue notification badge and a mint outline around the User interface button

Early application toolbar with the button for switching back to the admin interface

Where the color stayed

I tried using mint as the main interface color, but the sign-in screen already had a glowing background and a colorful logo. I took the color back out of secondary buttons and link text. Mint stayed where it helps you find your place: field focus, link underlines, and the active menu item. Amber goes on the primary button on the sign-in page and on the notification badge in the app catalog. The ProHomeLab gradient stays thin, along the top of the form and in progress bars.

When I moved to the ProHomeLab 2.2 brand guide, I dropped Unbounded and Onest in favor of Geologica and kept JetBrains Mono for monospace text. The palette stayed the same. Here's what the app catalog looks like in the released theme.

Authentik's application dashboard with the graphite ProHomeLab theme

How to install the theme

1. Upload your artwork

On Authentik 2025.12 or later, go to Customization → Files. If you're putting the form on the right, pick a background with its main subject on the left. If you're only after the colors and fonts, keep your existing images and skip the upload.

The repository's assets folder has examples. Here's how those assets map to the brand settings, with sample upload paths for your own files.

Brand setting Example in the repository Example path for your upload
Logo assets/prohomelab-lockup-horizontal.svg branding/logo.svg
Favicon assets/prohomelab-favicon.ico branding/favicon.ico
Default flow background assets/prohomelab-auth-bg-3d-left.jpg branding/login-background.jpg

Use the file picker if you can. If you type the path yourself, use the name relative to the public media directory, with no leading slash. A file at /data/media/public/branding/logo.svg goes into Logo as branding/logo.svg. Don't paste a host filesystem path or a temporary /files/... URL into that field. Authentik generates the URL for you. See the file picker documentation for the path rules.

If old images still show up after an upgrade but new uploads fail, check the storage mount. Authentik 2025.12 and later store local uploads under /data/media. With Docker Compose, both server and worker need write access to the same ./data:/data bind mount. If you're still using ./media:/media, back up the files first and follow the storage migration instructions. The upload troubleshooting guide also covers permissions.

2. Apply the CSS to your brand

Go to System → Brands and edit the brand that handles your sign-in domain. Under Branding settings, select your logo, favicon, and default flow background. Open prohomelab-authentik.css on GitHub, click Raw, and paste the entire stylesheet into Custom CSS. If there's already CSS in that field, save a copy before you replace it.

The Brands page in Authentik 2026.8.6 with the ProHomeLab theme applied

The palette was designed for dark mode. To make that the default for this brand, open Other global settings → Attributes and add the following. If you already have a settings or theme block, merge the setting into it rather than adding a duplicate. See the theme settings documentation.

yaml
settings:
theme:
base: dark

3. Put the form on the right

Open your sign-in flow under Flows and Stages → Flows. Under Appearance settings → Layout, choose Sidebar right. This is a flow setting, not something the stylesheet does. If the flow already has its own Background, that image takes precedence over the brand's default. See how Authentik handles flow layouts and backgrounds.

Earlier Authentik flow settings with Sidebar right selected and low-contrast text in the dropdown

This screenshot is from an earlier build. The washed-out dropdown text is what happens when the built-in theme and custom CSS clash. I fixed that in the current theme.

4. Test it before closing the admin tab

Keep your admin session open and try signing in from a private window. Check the form on a desktop and a phone, tab through the controls to see whether the focus indicator is visible, and make sure the panel isn't covering the part of the background you want people to see. Once you're in, check the app catalog and the admin interface too.

If you need to roll back, restore the old CSS and put the background and flow layout settings back the way they were.

Make it your own

I'd start with your own logo and background, then pick a button color that stands out against the form. The main variables are at the top of the stylesheet, so you don't have to hunt through the selectors just to change an accent.

Variable What it controls
--phl-amber The amber accent on the primary button and notification badge
--phl-ui Focus indicators and selected interface accents
--phl-card-bg The sign-in panel's background color and opacity

The stylesheet loads Geologica and JetBrains Mono from Google Fonts. To avoid external font requests, serve the font files yourself and replace the @import rules with @font-face declarations.

Brand-level Custom CSS has been available since Authentik 2025.4.0. That doesn't mean this theme targets every release since then. I built it against 2026.8.5, and the Brands screenshot above is from 2026.8.6. The stylesheet relies on some internal PatternFly classes and variables, so after an Authentik upgrade I'd check the sign-in page, app catalog, and admin interface again.

The CSS and repository documentation are MIT-licensed. The ProHomeLab artwork is there to demonstrate the layout and is covered by a separate notice.