You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: Theme hydration mismatch on html element #104
Next.js hydration mismatch error occurring on the <html> element due to next-themes applying className="light" and style={{color-scheme:"light"}} attributes client-side that don't exist in the server-rendered HTML.
Current State
Server: <html lang={locale}> (no theme attributes)
Client: <html lang={locale} className="light" style={{color-scheme:"light"}}> (modified by next-themes)
This triggers a React hydration warning in the console.
Activity
larryro commentedon Jan 8, 2026
Implementation Plan
Step 1: Update root layout
Modify
services/platform/app/(app)/layout.tsxline 67:Files to Modify
services/platform/app/(app)/layout.tsxsuppressHydrationWarningto<html>elementWhy This Works
suppressHydrationWarningtells React to skip hydration mismatch warnings for that specific element. This is necessary because:localStorageor system preference)Risk Assessment
Testing Strategy
🤖 Generated with Claude Code
larryro commentedon Jan 8, 2026