@@ -247,7 +247,7 @@ export function createMobileThemeVariables(
247247 colors : ThemeColors ,
248248 appearance : MobileThemeAppearance ,
249249 groupedCardColor = colors . surface ,
250- useAccentForActions = false ,
250+ prominentAction : readonly [ string , string ] = [ colors . text , colors . canvas ] ,
251251) {
252252 const c = nativeColors ( colors ) ;
253253 const groupedCard = themeColorToNativeColor ( groupedCardColor ) ;
@@ -300,10 +300,8 @@ export function createMobileThemeVariables(
300300 "--color-inline-skill-border" : withAlpha ( c . accent , 0.42 ) ,
301301 "--color-inline-skill-foreground" : c . accentSurfaceForeground ,
302302 "--color-primary" : c . messageAction ,
303- "--color-prominent-action" : useAccentForActions ? c . messageAction : c . text ,
304- "--color-prominent-action-foreground" : useAccentForActions
305- ? c . messageActionForeground
306- : c . canvas ,
303+ "--color-prominent-action" : themeColorToNativeColor ( prominentAction [ 0 ] ) ,
304+ "--color-prominent-action-foreground" : themeColorToNativeColor ( prominentAction [ 1 ] ) ,
307305 "--color-primary-foreground" : c . messageActionForeground ,
308306 "--color-primary-text" : themeColorWithContrast ( c . messageAction , textSurfaces ) ,
309307 "--color-primary-shadow" : "#000000" ,
@@ -420,7 +418,11 @@ export function getMobileThemeVariables(
420418 mobileColors ,
421419 appearance ,
422420 groupedCard ,
423- themeId !== DEFAULT_MOBILE_THEME_ID && themeId !== "t3-chat" ,
421+ themeId === "t3-chat" && appearance === "dark"
422+ ? [ colors . messageActionForeground , colors . messageAction ]
423+ : themeId !== DEFAULT_MOBILE_THEME_ID && themeId !== "t3-chat"
424+ ? [ colors . messageAction , colors . messageActionForeground ]
425+ : undefined ,
424426 ) ;
425427
426428 // The complete base record guarantees that optional overrides cannot leave a token undefined.
0 commit comments