UNPKG

@xyflow/svelte

Version:

Svelte Flow - A highly customizable Svelte library for building node-based editors, workflow systems, diagrams and more.

12 lines (11 loc) 250 B
import { useStore } from './useStore'; /** * Hook for receiving the current color mode class 'dark' or 'light'. * */ export function useColorMode() { const { colorMode } = $derived(useStore()); return { current: colorMode }; }