diff --git a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/dialog/header.tsx b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/dialog/header.tsx index 121bca96ee2195..ca3bda4fc8d3c1 100644 --- a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/dialog/header.tsx +++ b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/dialog/header.tsx @@ -3,13 +3,19 @@ import { noop as css } from '../../../helpers/noop-template' type ErrorOverlayDialogHeaderProps = { children?: React.ReactNode + isTurbopack?: boolean } export function ErrorOverlayDialogHeader({ children, + isTurbopack, }: ErrorOverlayDialogHeaderProps) { return ( - + {children} ) @@ -48,4 +54,24 @@ export const DIALOG_HEADER_STYLES = css` top: var(--size-4); right: var(--size-4); } + + .nextjs-container-errors-header.turbopack { + background-image: linear-gradient( + 10deg, + var(--color-background-100) 60%, + var(--color-turbopack-background-red) 75%, + var(--color-turbopack-background-blue) 100% + ); + } + + @media (prefers-color-scheme: dark) { + .nextjs-container-errors-header.turbopack { + background-image: linear-gradient( + 10deg, + var(--color-background-100) 60%, + var(--color-turbopack-background-red) 75%, + var(--color-turbopack-background-blue) 100% + ); + } + } ` diff --git a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/error-overlay-layout/error-overlay-layout.tsx b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/error-overlay-layout/error-overlay-layout.tsx index 24280923aa00f6..c10971032bf5b5 100644 --- a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/error-overlay-layout/error-overlay-layout.tsx +++ b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/error-overlay-layout/error-overlay-layout.tsx @@ -79,7 +79,7 @@ export function ErrorOverlayLayout({ - +