Appearance
Like the web SDK’s (and Stripe’s) Appearance API. Unset values inherit the app’s.
Properties
Section titled “Properties”themeAppearanceThemeRequiredcolorPrimaryColor?RequiredButtons, the tape line, the "connected" dot.
colorBackgroundColor?RequiredcolorTextColor?RequiredfontFamilyString?RequiredA CSS font-family for the window (e.g. "Inter, sans-serif").
borderRadiusdouble?RequiredCorner radius in logical pixels (0–32).
fontsList<String>RequiredGoogle Fonts stylesheet URLs for the window.
Example
Section titled “Example”final tys = await TryYourSize.create('pk_test_…', appearance: const Appearance(borderRadius: 10), locale: 'es');let tys = try TryYourSize(publishableKey: "pk_test_…", configuration: .init( appearance: Appearance(borderRadius: 10), locale: "es"))val tys = TryYourSize(context, "pk_test_…", TryYourSize.Configuration( appearance = Appearance(borderRadius = 10f), locale = "es",))await configure("pk_test_…", { appearance: { variables: { borderRadius: 10 } }, locale: "es" });Was this page helpful?
Thank you. We read every answer.