Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

314 B
Raw Blame
"use client";

import { useTheme } from "next-themes";

export function useColorMode() {
  const { resolvedTheme, setTheme } = useTheme();
  const colorMode = resolvedTheme === "dark" ? "dark" : "light";

  return {
    colorMode,
    isDarkTheme: colorMode === "dark",
    setColorMode: setTheme,
  } as const;
}