Home / Function/ cssValueSchema() — ui Function Reference

cssValueSchema() — ui Function Reference

Architecture documentation for the cssValueSchema() function in schema.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  2fb495c8_202e_70db_7788_f55e982fe7c5["cssValueSchema()"]
  d622c874_d9cc_69e4_4150_aadbf45b3cda["schema.ts"]
  2fb495c8_202e_70db_7788_f55e982fe7c5 -->|defined in| d622c874_d9cc_69e4_4150_aadbf45b3cda
  style 2fb495c8_202e_70db_7788_f55e982fe7c5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/shadcn/src/registry/schema.ts lines 125–130

const cssValueSchema: z.ZodType<any> = z.lazy(() =>
  z.union([
    z.string(),
    z.array(z.union([z.string(), z.record(z.string(), z.string())])),
    z.record(z.string(), cssValueSchema),
  ])

Subdomains

Frequently Asked Questions

What does cssValueSchema() do?
cssValueSchema() is a function in the ui codebase, defined in packages/shadcn/src/registry/schema.ts.
Where is cssValueSchema() defined?
cssValueSchema() is defined in packages/shadcn/src/registry/schema.ts at line 125.

Analyze Your Own Codebase

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

Try Supermodel Free