import type { GlobalTheme } from '../global'; const getAlertTheme = (theme: GlobalTheme) => { const colors = { backgrounds: { success: theme.colors.successSurface, warning: theme.colors.warningSurface, error: theme.colors.errorSurface, info: theme.colors.infoSurface, notification: theme.colors.defaultGlobalSurface, }, texts: { success: theme.colors.onSuccessSurface, warning: theme.colors.onWarningSurface, error: theme.colors.onErrorSurface, info: theme.colors.onInfoSurface, notification: theme.colors.onDefaultGlobalSurface, }, divider: theme.colors.secondaryOutline, }; const sizes = { height: theme.sizes.xxxlarge, }; const space = { contentPaddingHorizontal: theme.space.smallMedium, textPaddingHorizontal: theme.space.smallMedium, iconLeftPadding: theme.space.smallMedium, ctaPadding: theme.space.smallMedium, }; const radii = { default: theme.radii.xlarge, }; const borderWidths = { base: theme.borderWidths.base, }; const shadows = { wrapper: theme.shadows.default, }; return { colors, radii, sizes, space, borderWidths, shadows }; }; export default getAlertTheme;