diff --git a/apps/desktop/src/app/chat/right-rail/artifact-renderers.tsx b/apps/desktop/src/app/chat/right-rail/artifact-renderers.tsx index 61b49809265..00ed9a58a58 100644 --- a/apps/desktop/src/app/chat/right-rail/artifact-renderers.tsx +++ b/apps/desktop/src/app/chat/right-rail/artifact-renderers.tsx @@ -97,6 +97,9 @@ export function ArtifactLivePreview({ content, kind, title }: { content: string; className="block size-full border-0 bg-white" sandbox="allow-scripts" srcDoc={composeArtifactHtml(content)} + // Deliberately raw white + forced light scheme: the frame hosts foreign + // generated HTML that assumes a light canvas, so it renders deterministically + // light in both app themes instead of inheriting theme tokens it can't see. style={{ colorScheme: 'light' }} title={title} /> diff --git a/apps/desktop/src/components/assistant-ui/artifact-card.tsx b/apps/desktop/src/components/assistant-ui/artifact-card.tsx index 7444c23c05f..56e53e03129 100644 --- a/apps/desktop/src/components/assistant-ui/artifact-card.tsx +++ b/apps/desktop/src/components/assistant-ui/artifact-card.tsx @@ -108,7 +108,7 @@ export function ArtifactCard({ code, detection, streaming = false }: ArtifactCar