diff options
author | 2025-05-28 19:44:26 +0530 | |
---|---|---|
committer | 2025-05-28 19:44:26 +0530 | |
commit | 5e3b37288d96277a6eacb7d6464760b63f72874a (patch) | |
tree | a511f27f5bc9bc69e6ce30dbea16d7994494c837 /frontend/src/components/theme-provider.tsx | |
parent | 7b85f1e2c3717ddd9eee0e668e3b4d48139e2407 (diff) | |
download | blcklst-5e3b37288d96277a6eacb7d6464760b63f72874a.tar.gz blcklst-5e3b37288d96277a6eacb7d6464760b63f72874a.tar.bz2 blcklst-5e3b37288d96277a6eacb7d6464760b63f72874a.zip |
feat: improved UI and added dynamic theme toggle
- improved the nav bar components
- added the theme toggle button to toggle theme
- fixed the button background for the nav bar
- fixed the theme color issue to the ThemeToggle funtion
- added more vibrant colors
- fixed the theme logo render
Diffstat (limited to 'frontend/src/components/theme-provider.tsx')
-rw-r--r-- | frontend/src/components/theme-provider.tsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/frontend/src/components/theme-provider.tsx b/frontend/src/components/theme-provider.tsx new file mode 100644 index 0000000..220a1f8 --- /dev/null +++ b/frontend/src/components/theme-provider.tsx @@ -0,0 +1,9 @@ +"use client" + +import * as React from "react" +import { ThemeProvider as NextThemesProvider } from "next-themes" +import { type ThemeProviderProps } from "next-themes/dist/types" + +export function ThemeProvider({ children, ...props }: ThemeProviderProps) { + return <NextThemesProvider {...props}>{children}</NextThemesProvider> +}
\ No newline at end of file |