Customizing theme using query parameters
Use Transak’s theme-related query parameters in widgetParams to customize button colors, color mode, and the full widget theme.
Pass these parameters in the Create Widget URL API request body when generating a widgetUrl.
apiKey and referrerDomain are mandatory in widgetParams for all examples on this page.
Primary Button Colors
Use these parameters to customize the primary button background and text color.
Sample Result
Primary CTA button restyled to match brand mustard and dark grey text using primaryButtonFillColor and primaryButtonTextColor.

Sample Request
Color Mode
Use colorMode to switch the widget between light and dark themes.
Sample Result

Sample Request
Complete Theme Customization
Use the following parameters together to fully align the widget with your brand.
Brand and Text Colors
Surface and Background Colors
Status Colors
Putting It All Together
Below is an example combining color mode, primary button styling, and full theme customization into a single widget URL flow.
Sample Result

Sample Request