다크모드 구현
Tailwind 설정 (tailwind.config.ts)
darkMode: "class", // 다크모드가 .dark 클래스의 존재 여부에 따라 활성화
theme: {
extend: {
colors: {
// 색상 스키마
},
// ...
다크모드 상태관리 (theme-context.tsx)
const ThemeContext = createContext({
isDarkMode: fals...
woodstock.hashnode.dev2 min read