Skip to content

Commit 3d55da0

Browse files
committed
fix: Fix tailwind FOUC
1 parent 897151f commit 3d55da0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/tailwind/app/layout.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ export const metadata: Metadata = {
1414
/** Root layout */
1515
export default function RootLayout({ children }: { children: React.ReactNode }) {
1616
return (
17-
<html lang="en">
17+
<ServerTarget tag="html" lang="en">
1818
<body className={inter.className}>
1919
<Core t="background .3s" />
20-
<ServerTarget />
2120
{children}
2221
</body>
23-
</html>
22+
</ServerTarget>
2423
);
2524
}

0 commit comments

Comments
 (0)