apps/login/THEME_CUSTOMIZATION.md
This guide helps you customize the appearance of your ZITADEL login application for a personalized user experience.
.env.theme.example to your .env.local fileNEXT_PUBLIC_THEME_ROUNDNESS)Controls how rounded the UI elements appear:
edgy - Sharp, rectangular corners (modern tech, corporate)mid - Medium rounded corners (balanced, professional)full - Fully rounded corners (friendly, approachable)NEXT_PUBLIC_THEME_LAYOUT)Controls the overall page structure:
side-by-side - Brand section on left, form on right (desktop view)top-to-bottom - Brand section on top, form below (mobile-first)NEXT_PUBLIC_THEME_SPACING)Controls spacing and padding throughout the interface:
regular - Standard spacing with comfortable padding (p-6, space-y-6)compact - Tighter spacing for information-dense layouts (p-4, space-y-4)NEXT_PUBLIC_THEME_APPEARANCE)Complete design philosophies:
flat - Minimal flat design with cards matching background color, subtle borders, and normal typographymaterial - Material Design inspired with elevated cards, proper contrast, and medium typographyNEXT_PUBLIC_THEME_BACKGROUND_IMAGE)Add a custom background image:
/images/my-background.jpg (place in public/images/)https://example.com/background.jpgNEXT_PUBLIC_THEME_ROUNDNESS=full
NEXT_PUBLIC_THEME_LAYOUT=side-by-side
NEXT_PUBLIC_THEME_SPACING=regular
NEXT_PUBLIC_THEME_APPEARANCE=material
NEXT_PUBLIC_THEME_BACKGROUND_IMAGE=/images/tech-gradient.jpg
NEXT_PUBLIC_THEME_ROUNDNESS=edgy
NEXT_PUBLIC_THEME_LAYOUT=top-to-bottom
NEXT_PUBLIC_THEME_SPACING=regular
NEXT_PUBLIC_THEME_APPEARANCE=material
NEXT_PUBLIC_THEME_ROUNDNESS=mid
NEXT_PUBLIC_THEME_LAYOUT=side-by-side
NEXT_PUBLIC_THEME_SPACING=compact
NEXT_PUBLIC_THEME_APPEARANCE=flat
NEXT_PUBLIC_THEME_ROUNDNESS=full
NEXT_PUBLIC_THEME_LAYOUT=top-to-bottom
NEXT_PUBLIC_THEME_SPACING=regular
NEXT_PUBLIC_THEME_APPEARANCE=material
NEXT_PUBLIC_THEME_BACKGROUND_IMAGE=/images/creative-workspace.jpg
NEXT_PUBLIC_THEME_ROUNDNESS=mid
NEXT_PUBLIC_THEME_LAYOUT=side-by-side
NEXT_PUBLIC_THEME_SPACING=compact
NEXT_PUBLIC_THEME_APPEARANCE=flat
NEXT_PUBLIC_THEME_ROUNDNESS=mid
NEXT_PUBLIC_THEME_LAYOUT=side-by-side
NEXT_PUBLIC_THEME_SPACING=regular
NEXT_PUBLIC_THEME_APPEARANCE=material
For more detailed customization beyond these presets, you can:
src/styles/ directorysrc/lib/theme.tsAPPEARANCE_STYLES or SPACING_STYLES objectsNEXT_PUBLIC_ prefix for all theme variables (NEXT_PUBLIC_THEME_ROUNDNESS, NEXT_PUBLIC_THEME_SPACING, NEXT_PUBLIC_THEME_APPEARANCE, etc.).env.local file is in the root of the login app directorytop-to-bottom layout is generally more mobile-friendlyFor additional customization needs or questions, please refer to the ZITADEL documentation or community forums.