From f9dc06394c05a3b88c0333573f2fdb9062e253aa Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Fri, 3 Apr 2026 14:52:28 -0700 Subject: [PATCH] fix(rcart): force Transak dark mode with colorMode param Text inputs were rendering in light mode making text invisible against the dark background. Added colorMode: 'DARK' to both Transak widget endpoints. Co-Authored-By: Claude Opus 4.6 --- modules/rcart/mod.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/rcart/mod.ts b/modules/rcart/mod.ts index 34d46fe..08bc880 100644 --- a/modules/rcart/mod.ts +++ b/modules/rcart/mod.ts @@ -1781,6 +1781,7 @@ routes.post("/api/payments/:id/transak-session", async (c) => { partnerOrderId: `pay-${paymentId}`, email, themeColor: '6366f1', + colorMode: 'DARK', hideMenu: 'true', }; @@ -1858,6 +1859,7 @@ routes.post("/api/payments/:id/card-session", async (c) => { partnerOrderId: `pay-${paymentId}`, email, themeColor: '6366f1', + colorMode: 'DARK', hideMenu: 'true', }; // Derive fiat amount: use explicit fiatAmount, or infer from crypto amount for stablecoins