Styling & Theming
The styles object
type SwapperStyles = {
themeMode?: "light" | "dark";
componentStyles?: ComponentStyles;
};Basic theme selection
const styles = { themeMode: "dark" }; // or "light" (default)With overrides
const styles = {
themeMode: "dark",
componentStyles: {
primaryColor: "#FF6B35",
backgroundColor: "#1A1A1A",
surfaceColor: "#222222",
textColor: "#E8E8E8",
primaryButtonTextColor: "#FFFFFF",
width: "100%",
},
};componentStyles properties
Property
Purpose
Applying styles
Under the hood: CSS variables
Modal chrome vs. widget theme
Last updated