Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/server/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/coderz-space/coderz.space

go 1.24.3
go 1.25.0

require (
github.com/go-playground/validator/v10 v10.30.1
Expand Down
10 changes: 4 additions & 6 deletions apps/web/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ export default function RootLayout({
return (
<html lang="en" className="h-full antialiased" suppressHydrationWarning>
<head>
<script
dangerouslySetInnerHTML={{
__html:
"(function(){try{var t=localStorage.getItem('coderz_theme');var d=t?t==='dark':window.matchMedia('(prefers-color-scheme: dark)').matches;if(d)document.documentElement.classList.add('dark');}catch(e){}})();",
}}
/>
{/* Blocking script: sets dark class before first paint to avoid flash */}
<script suppressHydrationWarning>
{`(function(){try{var t=localStorage.getItem('coderz_theme');var d=t?t==='dark':window.matchMedia('(prefers-color-scheme: dark)').matches;if(d)document.documentElement.classList.add('dark');}catch(e){}})();`}
</script>
</head>
<body className="flex min-h-full flex-col bg-white text-gray-900 transition-colors dark:bg-gray-950 dark:text-gray-100">
<ThemeToggle />
Expand Down
Loading