Home / Function/ getTailwindConfigFile() — ui Function Reference

getTailwindConfigFile() — ui Function Reference

Architecture documentation for the getTailwindConfigFile() function in get-project-info.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  6b65da51_80a7_9ade_e0bf_3c89e034c6d4["getTailwindConfigFile()"]
  6a5c3afa_2e3e_bbfc_2351_1976d5a184fe["get-project-info.ts"]
  6b65da51_80a7_9ade_e0bf_3c89e034c6d4 -->|defined in| 6a5c3afa_2e3e_bbfc_2351_1976d5a184fe
  90d4c1a4_553f_c7f8_7665_87d6136bf243["getProjectInfo()"]
  90d4c1a4_553f_c7f8_7665_87d6136bf243 -->|calls| 6b65da51_80a7_9ade_e0bf_3c89e034c6d4
  style 6b65da51_80a7_9ade_e0bf_3c89e034c6d4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/shadcn/src/utils/get-project-info.ts lines 273–285

export async function getTailwindConfigFile(cwd: string) {
  const files = await fg.glob("tailwind.config.*", {
    cwd,
    deep: 3,
    ignore: PROJECT_SHARED_IGNORE,
  })

  if (!files.length) {
    return null
  }

  return files[0]
}

Subdomains

Called By

Frequently Asked Questions

What does getTailwindConfigFile() do?
getTailwindConfigFile() is a function in the ui codebase, defined in packages/shadcn/src/utils/get-project-info.ts.
Where is getTailwindConfigFile() defined?
getTailwindConfigFile() is defined in packages/shadcn/src/utils/get-project-info.ts at line 273.
What calls getTailwindConfigFile()?
getTailwindConfigFile() is called by 1 function(s): getProjectInfo.

Analyze Your Own Codebase

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

Try Supermodel Free