Skip to content

Commit

Permalink
chore: Disable hydration warnings on dark mode class injection
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Feb 13, 2025
1 parent 223609e commit 427e7f6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/docs/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ export const metadata = {
export default function Layout({ children }: { children: ReactNode }) {
const enableChiffreAnalytics = process.env.VERCEL_ENV === 'production'
return (
<html lang="en" className={cn(inter.className, 'antialiased')}>
<html
lang="en"
className={cn(inter.className, 'antialiased')}
// https://github.com/shadcn-ui/ui/issues/5552#issuecomment-2435024526
suppressHydrationWarning
>
<body>
<Banner
variant="rainbow"
Expand Down

0 comments on commit 427e7f6

Please sign in to comment.