UI Customizations
Customize the appearance of the authentication screens to match your design
Embedding OwnID Screens in a Custom Container
By default, OwnID screens open in a drawer, providing a seamless and non-intrusive login experience. However, if you prefer to embed the OwnID flow within a specific HTML wrapper element, you can use the container
parameter.
The container
parameter allows you to define where the OwnID interface should be rendered by specifying a CSS selector, such as a class or an ID.
CSS Custom Properties
OwnID provides a set of CSS custom properties (variables) that allow you to customize the appearance of the authentication screens to match your application’s design. These variables control various aspects of the drawer’s style, including colors, text, and input fields.
Customization Example
To customize the OwnID drawer, you can override these CSS custom properties in your stylesheet. Here’s an example of how to change the primary color, hover color, and disabled color of the drawer: