Package-level declarations

Types

Link copied to clipboard
data class PrimaryButtonColors(val background: Color, val onBackground: Color, val border: Color, val successBackground: Color, val onSuccessBackground: Color)
Link copied to clipboard
data class PrimaryButtonShape(val cornerRadius: Float, val borderStrokeWidth: Float)
Link copied to clipboard
data class PrimaryButtonStyle(val colorsLight: PrimaryButtonColors, val colorsDark: PrimaryButtonColors, val shape: PrimaryButtonShape, val typography: PrimaryButtonTypography)
Link copied to clipboard
data class PrimaryButtonTypography(@FontRes val fontFamily: Int?, val fontSize: TextUnit)
Link copied to clipboard
data class StripeColors(val component: Color, val componentBorder: Color, val componentDivider: Color, val onComponent: Color, val subtitle: Color, val textCursor: Color, val placeholderText: Color, val appBarIcon: Color, val materialColors: Colors)
Link copied to clipboard
data class StripeComposeShapes(val borderStrokeWidth: Dp, val borderStrokeWidthSelected: Dp, val material: Shapes)
Link copied to clipboard
data class StripeShapes(val cornerRadius: Float, val borderStrokeWidth: Float, val borderStrokeWidthSelected: Float)
Link copied to clipboard
Link copied to clipboard
data class StripeTypography(val fontWeightNormal: Int, val fontWeightMedium: Int, val fontWeightBold: Int, val fontSizeMultiplier: Float, val xxSmallFontSize: TextUnit, val xSmallFontSize: TextUnit, val smallFontSize: TextUnit, val mediumFontSize: TextUnit, val largeFontSize: TextUnit, val xLargeFontSize: TextUnit, @FontRes val fontFamily: Int?, val body1FontFamily: FontFamily? = null, val body2FontFamily: FontFamily? = null, val h4FontFamily: FontFamily? = null, val h5FontFamily: FontFamily? = null, val h6FontFamily: FontFamily? = null, val subtitle1FontFamily: FontFamily? = null, val captionFontFamily: FontFamily? = null)

Properties

Functions

Link copied to clipboard
Link copied to clipboard
fun createTextSpanFromTextStyle(text: String?, context: Context, fontSizeDp: Dp, color: Color, @FontRes fontFamily: Int?): SpannableString
Link copied to clipboard
Link copied to clipboard

Base Theme for Payments Composables that are not merchant configurable. Use this theme if you do not want merchant configurations to change your UI

Link copied to clipboard
Link copied to clipboard
fun StripeTheme(colors: StripeColors = StripeTheme.getColors(isSystemInDarkTheme()), shapes: StripeShapes = StripeTheme.shapesMutable, typography: StripeTypography = StripeTheme.typographyMutable, content: @Composable () -> Unit)

Base Theme for Stripe Composables. CAUTION: This theme is mutable by merchant configurations. You shouldn't be passing colors, shapes, typography to this theme outside of tests.