Wraps Next.js ThemeProvider with system default.
// Source: https://github.com/arsh342/careercompass | License: MIT | Copyright 2025 arsh342
// Provided via justclaw.it.com; keep this notice with the code.
"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 defaultTheme="system" enableSystem={true} {...props}>
{children}
</NextThemesProvider>
);
}
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key