Appearance
interface AppearanceProperties
Section titled “Properties”theme"inherit" | "tryyoursize"Optional"inherit" (default): your app's own colours and font. "tryyoursize": the light beige brand.
variables{ /** Hex: "#rrggbb" or "#rrggbbaa". */ colorPrimary?: string; colorBackground?: string; colorText?: string; /** A CSS font-family for the window. */ fontFamily?: string; /** Corner radius, 0–32. */ borderRadius?: number; }Optionalfonts{ cssSrc: string }[]OptionalGoogle Fonts stylesheets for the window.
Example
Section titled “Example”await configure("pk_test_…", { appearance: { variables: { 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",))final tys = await TryYourSize.create('pk_test_…', appearance: const Appearance(borderRadius: 10), locale: 'es');Was this page helpful?
Thank you. We read every answer.