Skip to content

@checkout-kit/ui / appearanceToStyle

Variable: appearanceToStyle ​

ts
const appearanceToStyle: (appearance) => CSSProperties;
tsx
<CheckoutRoot theme="auto" style={appearanceToStyle({ accent: '#0a7', radius: 8 })}>

density is an attribute rather than a property - appearanceToAttributes returns it, and <CheckoutRoot density=...> takes it directly.

Parameters ​

ParameterType
appearanceCheckoutAppearance

Returns ​

CSSProperties

Apache-2.0 · Headless engine, provider adapters and runnable examples.