diff --git a/remotion-composer/src/Explainer.tsx b/remotion-composer/src/Explainer.tsx index 91b0da67..644eb1c4 100644 --- a/remotion-composer/src/Explainer.tsx +++ b/remotion-composer/src/Explainer.tsx @@ -220,6 +220,7 @@ interface Cut { heroSubtitle?: string; // Styling overrides backgroundColor?: string; + cardBackgroundColor?: string; // Inner card surface (comparison); defaults to theme.surfaceColor backgroundImage?: string; // AI-generated or stock image rendered behind the component backgroundVideo?: string; // Video clip rendered behind the component (takes priority over backgroundImage) backgroundVideoStart?: number; // Seek position in seconds for background video (default 0) @@ -602,6 +603,7 @@ const SceneRenderer: React.FC<{ cut: Cut; theme: ThemeConfig }> = ({ cut, theme leftLabel={cut.leftLabel} rightLabel={cut.rightLabel} leftValue={cut.leftValue} rightValue={cut.rightValue} title={cut.title} backgroundColor={bgColor} textColor={textColor} + cardBackgroundColor={cut.cardBackgroundColor || theme.surfaceColor} /> ); } @@ -640,6 +642,7 @@ const SceneRenderer: React.FC<{ cut: Cut; theme: ThemeConfig }> = ({ cut, theme data={cut.chartData} title={cut.title} colors={cut.chartColors || theme.chartColors} animationStyle={(cut.chartAnimation as any) || "grow-up"} showGrid={cut.showGrid} showValues={cut.showValues} backgroundColor={bgColor} + textColor={textColor} /> ); } @@ -650,6 +653,7 @@ const SceneRenderer: React.FC<{ cut: Cut; theme: ThemeConfig }> = ({ cut, theme animationStyle={(cut.chartAnimation as any) || "draw"} showGrid={cut.showGrid} showMarkers={cut.showMarkers} showLegend={cut.showLegend} xLabel={cut.xLabel} yLabel={cut.yLabel} backgroundColor={bgColor} + textColor={textColor} /> ); } @@ -660,6 +664,7 @@ const SceneRenderer: React.FC<{ cut: Cut; theme: ThemeConfig }> = ({ cut, theme animationStyle={(cut.chartAnimation as any) || "expand"} donut={cut.donut} centerLabel={cut.centerLabel} centerValue={cut.centerValue} showLegend={cut.showLegend} backgroundColor={bgColor} + textColor={textColor} /> ); } @@ -669,6 +674,7 @@ const SceneRenderer: React.FC<{ cut: Cut; theme: ThemeConfig }> = ({ cut, theme metrics={cut.chartData} title={cut.title} columns={cut.columns} colors={cut.chartColors || theme.chartColors} animationStyle={(cut.chartAnimation as any) || "count-up"} backgroundColor={bgColor} + textColor={textColor} /> ); }