From dbe65f5dee2683383ce6639d1510ee3e22be7345 Mon Sep 17 00:00:00 2001 From: Alex Lau Date: Sat, 25 May 2024 20:35:12 +0800 Subject: [PATCH] Add transition from dark to light mode --- src/components/Layout/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index 112132b..95c023d 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -32,8 +32,8 @@ export default function Layout() { return ( -
isMenuOpen && setIsMenuOpen(false)} className="h-max md:px-[10%] lg:px-[15%] bg-stone-300 dark:bg-slate-800 text-red-300 dark:text-green-300 overflow-hidden font-mono"> -
+
isMenuOpen && setIsMenuOpen(false)} className="h-max md:px-[10%] lg:px-[15%] bg-stone-300 dark:bg-slate-800 text-red-300 dark:text-green-300 overflow-hidden font-mono transition-colors duration-[200ms]"> +