Appearance
Colours (ARGB ints), font and corner radius for the button and the window. With INHERIT (default) they follow your app theme, dark included.
Properties
Section titled “Properties”themeThemeOptional= Theme.INHERITcolorPrimaryInt?Optional= nullARGB colour ints (android.graphics.Color / Compose toArgb()). Buttons, the tape line, the "connected" dot.
colorBackgroundInt?Optional= nullcolorTextInt?Optional= nullfontFamilyString?Optional= nullA CSS font-family for the window (e.g. "Inter, Roboto, sans-serif"). The native button uses the Compose text style where it is placed.
borderRadiusFloat?Optional= nullCorner radius in dp (0–32) for cards, inputs and buttons.
fontsList<String>Optional= emptyList()Stylesheets with @font-face rules for the window (Google Fonts only).
Example
Section titled “Example”val tys = TryYourSize(context, "pk_test_…", TryYourSize.Configuration( appearance = Appearance(borderRadius = 10f), locale = "es",))let tys = try TryYourSize(publishableKey: "pk_test_…", configuration: .init( appearance: Appearance(borderRadius: 10), locale: "es"))await configure("pk_test_…", { appearance: { variables: { borderRadius: 10 } }, 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.