Home / Function/ getColorFormat() — ui Function Reference

getColorFormat() — ui Function Reference

Architecture documentation for the getColorFormat() function in colors.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  4f3a12bb_f680_656e_b3d5_458b111ccd3d["getColorFormat()"]
  955bc1fa_55c7_f589_a22c_805b535067fd["colors.ts"]
  4f3a12bb_f680_656e_b3d5_458b111ccd3d -->|defined in| 955bc1fa_55c7_f589_a22c_805b535067fd
  style 4f3a12bb_f680_656e_b3d5_458b111ccd3d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/lib/colors.ts lines 24–32

export function getColorFormat(color: Color) {
  return {
    className: `bg-${color.name}-100`,
    hex: color.hex,
    rgb: color.rgb,
    hsl: color.hsl,
    oklch: color.oklch,
  }
}

Subdomains

Frequently Asked Questions

What does getColorFormat() do?
getColorFormat() is a function in the ui codebase, defined in deprecated/www/lib/colors.ts.
Where is getColorFormat() defined?
getColorFormat() is defined in deprecated/www/lib/colors.ts at line 24.

Analyze Your Own Codebase

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

Try Supermodel Free