Home / Function/ getBaseColor() — ui Function Reference

getBaseColor() — ui Function Reference

Architecture documentation for the getBaseColor() function in config.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  306b8517_45f5_2636_ac4a_5e91422b2bd6["getBaseColor()"]
  ad762621_6a27_5b76_c744_8ca39930b352["config.ts"]
  306b8517_45f5_2636_ac4a_5e91422b2bd6 -->|defined in| ad762621_6a27_5b76_c744_8ca39930b352
  f01c7cbd_535b_d368_94f9_81a40fde13ec["buildRegistryTheme()"]
  f01c7cbd_535b_d368_94f9_81a40fde13ec -->|calls| 306b8517_45f5_2636_ac4a_5e91422b2bd6
  style 306b8517_45f5_2636_ac4a_5e91422b2bd6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/config.ts lines 321–323

export function getBaseColor(name: BaseColorName) {
  return BASE_COLORS.find((color) => color.name === name)
}

Subdomains

Frequently Asked Questions

What does getBaseColor() do?
getBaseColor() is a function in the ui codebase, defined in apps/v4/registry/config.ts.
Where is getBaseColor() defined?
getBaseColor() is defined in apps/v4/registry/config.ts at line 321.
What calls getBaseColor()?
getBaseColor() is called by 1 function(s): buildRegistryTheme.

Analyze Your Own Codebase

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

Try Supermodel Free