From 03e1c50c8d382a456d12e7c2ece949584cc49608 Mon Sep 17 00:00:00 2001 From: tuanhqv123 Date: Sat, 17 Jan 2026 12:55:02 +0700 Subject: [PATCH] change light theme default --- app/layout.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 077172e..4c7ca67 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -18,7 +18,8 @@ const inter = Inter({ export const metadata: Metadata = { title: "Data Exchange - Unlock Your Data", - description: "Monetize your insights securely. Built on Walrus, Seal, and Nautilus for unstoppable decentralized data trading.", + description: + "Monetize your insights securely. Built on Walrus, Seal, and Nautilus for unstoppable decentralized data trading.", }; export default function RootLayout({ @@ -39,8 +40,8 @@ export default function RootLayout({ (function() { try { const stored = localStorage.getItem('theme'); - const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches; - const shouldBeDark = stored === 'dark' || (!stored && prefersDark); + // Default to light theme unless 'dark' is explicitly set + const shouldBeDark = stored === 'dark'; if (shouldBeDark) { document.documentElement.classList.add('dark'); } else {