AnsaTheme

fun AnsaTheme(colors: BrandColors = BrandColors(), typography: <Error class: unknown class> = TypeSystem(), content: () -> Unit)

Ansa Theming.

Ansa Theming refers to the customization of the Ansa UI SDK to better reflect your product’s brand.

AnsaUI components such as dev.ansa.sdk.ui.components.PrimaryButtonLarge and dev.ansa.sdk.ui.components.ActionView use values provided here when retrieving default values.

All values may be set by providing this component with the dev.ansa.sdk.ui.internal.theme.colors.BrandColors, and dev.ansa.sdk.ui.theme.typography.AnsaTypography attributes. Use this to configure the overall theme of elements within this AnsaTheme.

Any values that are not set will inherit the current value from the theme, falling back to the defaults if there is no parent AnsaTheme. This allows using a AnsaTheme at the top of your application, and then separate AnsaTheme(s) for different screens / parts of your UI, overriding only the parts of the theme definition that need to change.

Parameters

colors

A complete definition of the Brand Color theme for this hierarchy

typography

A set of text styles to be used as this hierarchy's typography system