Skip to content

Customizing or creating a theme

Pre-built themes uses these custom properties:

NameCSS ruleDescription
--confirm-toast-bgbackground-colorBackground color of the confirm toast.
--confirm-toast-box-shadowbox-shadowBox shadow of the confirm toast.
--confirm-toast-text-colorcolorColor of the message text in the confirm toast.
--confirm-toast-btn-close-colorcolorColor of the button-close in the confirm toast.
--confirm-toast-btn-yes-bgbackground-colorBackground color of the button-yes in the confirm toast.
--confirm-toast-btn-yes-colorcolorColor of the button-yes text in the confirm toast.
--confirm-toast-btn-no-bgbackground-colorBackground color of the button-no in the confirm toast.
--confirm-toast-btn-no-colorcolorColor of the button-no text in the confirm toast.
--confirm-toast-btn-hoverfilterFilter value for each button’s hover effect in the confirm toast.
--confirm-toast-btn-yes-focusoutlineOutline value for the focus effect in the button-yes.
--confirm-toast-btn-no-focusoutlineOutline value for the focus effect in the button-no.
--confirm-toast-btn-close-focusoutlineOutline value for the focus effect in the button-close.
--confirm-toast-btn-no-disabledfilterFilter value for the disabled style in the button-no.
--confirm-toast-btn-yes-disabledfilterFilter value for the disabled style in the button-yes.

If we want to create or update a theme, there are some custom properties that we can override. For this purpose, we need to pass a class to the className property to override those custom properties.

For theme creation, refer to this example. For theme customization, see this example.