Home / Function/ useColors() — ui Function Reference

useColors() — ui Function Reference

Architecture documentation for the useColors() function in use-colors.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  7d1f5568_d876_ba0f_c1b7_0daa7c68c1a9["useColors()"]
  0afe41ac_4a55_c782_f9c9_dd70a39388de["use-colors.ts"]
  7d1f5568_d876_ba0f_c1b7_0daa7c68c1a9 -->|defined in| 0afe41ac_4a55_c782_f9c9_dd70a39388de
  style 7d1f5568_d876_ba0f_c1b7_0daa7c68c1a9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/hooks/use-colors.ts lines 15–24

export function useColors() {
  const [colors, setColors] = useAtom(colorsAtom)
  const mounted = useMounted()

  return {
    isLoading: !mounted,
    format: colors.format,
    setFormat: (format: ColorFormat) => setColors({ format }),
  }
}

Subdomains

Frequently Asked Questions

What does useColors() do?
useColors() is a function in the ui codebase, defined in deprecated/www/hooks/use-colors.ts.
Where is useColors() defined?
useColors() is defined in deprecated/www/hooks/use-colors.ts at line 15.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free