Skip to main content
Morapay UI components are designed to inherit your font stack while owning severity colors, spacing, and motion.

CSS custom properties for @morapay/react

MorapayErrorView will read these before applying built-in defaults.

Tailwind className slots

Severity colors come from Morapay tokens unless you override via className on the outer wrapper.

Vanilla toast styling today

MorapayUi.toast() injects self-contained styles (no Tailwind required). Customize behavior via options:
Positions: top-right (default), top-center, bottom-right, bottom-center.

Checkout widget theming

Pass theme params when opening the hybrid modal:
Preview/staging mode (openPreviewModal) supports design iteration without live charges. See the SDK sample app.

What not to style

The inner checkout canvas iframe (checkout.morapay.io) controls PCI-sensitive fields. Style the outer native shell and error components; do not attempt to inject CSS into the secure canvas.

Next step

Error handling. displayMessage vs message and uiHint severity levels.