Setting Up Enhanced Branding
Ce contenu n’est pas encore disponible dans votre langue.
This tutorial will guide you through setting up enhanced branding features in Skycloak, from basic customization to advanced theme uploads.
Prerequisites
Section titled “Prerequisites”- Active Skycloak workspace
- Running Keycloak cluster
- Admin or owner role in workspace
- Business+ plan for custom theme uploads
Step 1: Access Branding Settings
Section titled “Step 1: Access Branding Settings”-
Navigate to Your Cluster
- Log in to Skycloak dashboard
- Select your workspace
- Click on your cluster name
-
Open Branding Tab
- Click the “Branding” tab
- You’ll see the current branding configuration
Step 2: Basic Visual Customization
Section titled “Step 2: Basic Visual Customization”Company Information
Section titled “Company Information”-
Add Company Details
Company Name: Your Company Inc.This appears in the login page header
-
Upload Logo
- Click “Upload Logo” or provide URL
- Recommended: 200x50px PNG with transparent background
- Maximum file size: 500KB
-
Set Favicon
- Upload 32x32px icon
- Appears in browser tabs
Color Scheme
Section titled “Color Scheme”-
Primary Color
- Click color picker or enter hex code
- Example:
#1976d2 - Used for buttons and links
-
Background Color
- Default:
#f5f5f5 - Light colors recommended for readability
- Default:
Text Customization
Section titled “Text Customization”-
Page Title
Welcome to Your CompanyMain heading on login page
-
Subtitle
Sign in to access your accountSupporting text below title
Step 3: Configure Links
Section titled “Step 3: Configure Links”-
Terms of Service URL
https://yourcompany.com/terms -
Privacy Policy URL
https://yourcompany.com/privacy
These appear as footer links on all auth pages.
Step 4: Login Options
Section titled “Step 4: Login Options”Configure authentication behavior:
-
Enable User Registration
- Toggle ON to allow self-registration
- Toggle OFF for invite-only access
-
Enable Password Reset
- Toggle ON to show “Forgot Password?” link
- Toggle OFF to disable self-service reset
-
Show Remember Me
- Toggle ON to display checkbox
- Toggle OFF for higher security
Step 5: Preview Your Changes
Section titled “Step 5: Preview Your Changes”Use the multi-page preview feature:
-
Select Page Type
- Login
- Registration
- Password Reset
- OTP Configuration
- OTP Login
- Update Password
-
Review Each Page
- Check visual consistency
- Verify text is readable
- Test on different screen sizes
-
Test Interactions
- Click links to verify they work
- Check form validation messages
- Ensure all elements are visible
Step 6: Apply Changes
Section titled “Step 6: Apply Changes”-
Save Configuration
- Click “Apply Branding”
- Confirm the update
-
Monitor Progress
- Status shows “Updating…”
- Apply is nearly instant; the page will show “Active” once saved
- If you don’t see the new look on your login page right away, that’s edge caching — give it up to ~5 minutes to clear, or hard-refresh (Cmd/Ctrl+Shift+R)
-
Verify Live Changes
- Open your Keycloak URL
- Navigate to
/realms/{realm}/account - Confirm branding is applied
Step 7: Custom Theme Upload (Business+)
Section titled “Step 7: Custom Theme Upload (Business+)”Prepare Your Theme
Section titled “Prepare Your Theme”-
Create Theme Structure
my-theme/ ├── login/ │ ├── resources/ │ │ ├── css/ │ │ │ └── login.css │ │ ├── img/ │ │ │ ├── logo.png │ │ │ └── favicon.ico │ │ └── js/ │ │ └── custom.js │ ├── messages/ │ │ └── messages_en.properties │ ├── login.ftl │ ├── register.ftl │ └── theme.properties └── theme.properties -
Theme Configuration
# theme.properties parent=keycloak import=common/keycloak styles=css/login.css scripts=js/custom.js -
Package Theme
zip -r my-custom-theme.zip my-theme/
Upload Theme
Section titled “Upload Theme”-
Navigate to Custom Theme Upload
- Open your cluster’s Branding page
- Expand the “Custom Theme” section
For managing multiple themes across realms, see the Theme Library, which supports uploading several themes and assigning them per realm.
-
Upload Theme Package
- Click “Upload Custom Theme”
- Select your ZIP file
- Enter theme name
- Click “Upload”
-
Validate Upload
- System validates theme structure
- Check for any errors
- Theme appears in list when successful
Apply Custom Theme
Section titled “Apply Custom Theme”-
Return to Cluster Branding
- Navigate back to your cluster
- Open Branding tab
-
Select Custom Theme
- Click “Use Custom Theme”
- Select from uploaded themes
- Preview the theme
-
Apply Theme
- Click “Apply Custom Theme”
- Monitor update progress
- Verify when complete
Step 8: Remove Powered By Badge (Launch+)
Section titled “Step 8: Remove Powered By Badge (Launch+)”For Launch and Enterprise plans:
-
Toggle Setting
- Find “Show Powered by Skycloak”
- Toggle OFF
-
Apply Changes
- Save configuration
- Badge removed from all pages
Troubleshooting
Section titled “Troubleshooting”Theme Not Updating
Section titled “Theme Not Updating”Problem: Changes don’t appear after applying
Solutions:
- The apply itself is nearly instant; if the change isn’t visible, it’s almost always edge caching — give it up to ~5 minutes
- If still missing after 5 minutes, hard-refresh (Cmd/Ctrl+Shift+R)
- Check cluster status is “Available”
- Try in incognito/private browsing to rule out a stale browser session
Custom Theme Errors
Section titled “Custom Theme Errors”Problem: Theme upload fails
Solutions:
- Verify ZIP structure matches requirements
- Check file size under 50MB
- Ensure login/ directory exists
- Validate FTL template syntax
Preview Not Loading
Section titled “Preview Not Loading”Problem: Preview shows error or blank
Solutions:
- Check all URLs use HTTPS
- Verify color codes are valid hex
- Ensure logos are accessible
- Refresh the page
Colors Not Applying
Section titled “Colors Not Applying”Problem: Colors remain default
Solutions:
- Use full hex codes (#RRGGBB)
- Avoid CSS color names
- Check for typos in values
- Test with standard colors first
Best Practices
Section titled “Best Practices”Design Guidelines
Section titled “Design Guidelines”-
Accessibility
- Maintain WCAG AA contrast ratios
- Test with color blindness simulators
- Ensure text remains readable
-
Performance
- Optimize images before upload
- Use web-friendly formats (PNG, SVG)
- Keep custom CSS minimal
-
Consistency
- Match your main website branding
- Use same fonts and colors
- Maintain visual hierarchy
Testing Checklist
Section titled “Testing Checklist”Before going live:
- Test on mobile devices
- Verify all links work
- Check form validation
- Test error states
- Verify email templates
- Test with real users
- Document customizations
Security Considerations
Section titled “Security Considerations”-
URLs and Assets
- Use HTTPS for all resources
- Host assets on secure CDN
- Validate all external resources
-
Custom Themes
- Avoid inline JavaScript
- Sanitize user inputs
- Follow Keycloak security guidelines
Advanced Configurations
Section titled “Advanced Configurations”Multi-Realm Branding
Section titled “Multi-Realm Branding”Apply different branding per realm:
-
Create Realm-Specific Config
- Each realm can have unique branding
- Useful for multi-tenant scenarios
-
Manage per Realm in the Dashboard
- Switch between realms in the cluster’s Branding page
- Edit each realm’s theme assignments and colors independently
A/B Testing Themes
Section titled “A/B Testing Themes”Test different branding variations:
-
Upload Multiple Themes
- Create variations of your theme
- Upload each as separate package
-
Switch Between Themes
- Apply different themes to test
- Monitor user engagement
- Choose best performing option