Quick Start
Installation
Install the Layerswap Widget along with the Starknet provider.Initial Configuration
Set up the providers and widget in your main component:Wallet Management
The Widget’s wallet management is modular, allowing to extend or override it based on your needs. If you want to control wallet states internally, refer to the guide on Dynamic Labs SDK implementation.Customization
Interactive Playground
The Layerswap Widget is fully customizable, letting you adjust its appearance and behavior to match your application. You can play around with colors, layout, border radius, and more in our interactive Playground:Try the Customization Playground
Experiment with all customization options in real-time. Test colors, layouts, styles, and configurations with live preview before implementing in your application.
Theme Configuration
You can customize the widget’s appearance to match your application’s branding: Custom Theme Apply a custom theme configuration:Customized theme example
Primary color palette for buttons, links, and key UI elements. Colors are specified as RGB values (e.g., ‘243, 243, 243’).
Secondary color palette for backgrounds, cards, and supporting UI elements.
Tertiary color for subtle UI elements and borders (RGB format).
Text color for buttons (RGB format).
Custom CSS styles for card background.
Header visibility controls:
hideMenu: Hide the menu buttonhideTabs: Hide navigation tabshideWallets: Hide wallet connection display
All colors use RGB format without the
rgb() wrapper (e.g., ‘243, 243, 243’ instead of ‘rgb(243, 243, 243)’). The widget internally applies the appropriate formatting.