shadcnUI로 다크모드 구현하기
·
기록
0. shadcn-ui로 다크모드shadcnui로 다크모드를 쉽게 개발 가능합니다.'use client'import * as React from 'react'import { ThemeProvider as NextThemesProvider } from 'next-themes'export function ThemeProvider({ children, ...props}: React.ComponentProps) { return {children}}export default async function RootLayout({ children,}: Readonly) { const currentUser = await getCurrentUser() return ( ..