From ccfaaeefaaf0d0b14147e471c698f843ade7ecb7 Mon Sep 17 00:00:00 2001 From: Henri Remonen Date: Thu, 1 Feb 2024 17:34:28 +0200 Subject: [PATCH] style: Update darkmode buttons --- src/components/theme/DarkModeToggle.tsx | 37 +++++++++++++++++-------- tailwind.config.ts | 7 ++++- 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/src/components/theme/DarkModeToggle.tsx b/src/components/theme/DarkModeToggle.tsx index 502da6d..4ee2677 100644 --- a/src/components/theme/DarkModeToggle.tsx +++ b/src/components/theme/DarkModeToggle.tsx @@ -3,26 +3,39 @@ import React from 'react' import { useTheme } from 'next-themes' -import { RiMoonLine, RiSunLine } from 'react-icons/ri' - const DarkModeToggle = () => { const { theme, setTheme } = useTheme() - - const Icon = - theme === 'light' ? ( -