Appearance
Esta página aún no está disponible en tu idioma.
interface AppearanceProperties
Section titled “Properties”theme"inherit" | "tryyoursize"Opcional"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; }Opcionalfonts{ cssSrc: string }[]OpcionalGoogle 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');¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.