2018-02-07 14:53:22 +00:00
|
|
|
[[_theme_selector]]
|
|
|
|
=== Theme Selector
|
2018-02-07 14:41:56 +00:00
|
|
|
|
|
|
|
By default the theme configured for the realm is used, with the exception of clients being able to override the login
|
|
|
|
theme. This behavior can be changed through the Theme Selector SPI.
|
|
|
|
|
|
|
|
This could be used to select different themes for desktop and mobile devices by looking at the user agent
|
|
|
|
header, for example.
|
|
|
|
|
|
|
|
To create a custom theme selector you need to implement `ThemeSelectorProviderFactory` and `ThemeSelectorProvider`.
|
|
|
|
|
|
|
|
Follow the steps in <<_providers,Service Provider Interfaces>> for more details on how to create and deploy a custom
|
|
|
|
provider.
|