constants.ts — ui Source File
Architecture documentation for constants.ts, a typescript file in the ui codebase. 2 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR d744d254_6b65_468b_eaec_4ea77ab71ad7["constants.ts"] a3b2545e_3d8c_699d_ef11_6ab18db14666["schema"] d744d254_6b65_468b_eaec_4ea77ab71ad7 --> a3b2545e_3d8c_699d_ef11_6ab18db14666 6802ce19_522d_e5fb_e458_8826d9f6952e["zod"] d744d254_6b65_468b_eaec_4ea77ab71ad7 --> 6802ce19_522d_e5fb_e458_8826d9f6952e 9ef55c05_4ae8_de0d_13ee_4570ec1b1c55["namespaces.test.ts"] 9ef55c05_4ae8_de0d_13ee_4570ec1b1c55 --> d744d254_6b65_468b_eaec_4ea77ab71ad7 style d744d254_6b65_468b_eaec_4ea77ab71ad7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { registryConfigSchema } from "@/src/schema"
import { z } from "zod"
export const REGISTRY_URL =
process.env.REGISTRY_URL ?? "https://ui.shadcn.com/r"
export const FALLBACK_STYLE = "new-york-v4"
export const BASE_COLORS = [
{
name: "neutral",
label: "Neutral",
},
{
name: "gray",
label: "Gray",
},
{
name: "zinc",
label: "Zinc",
},
{
name: "stone",
label: "Stone",
},
{
name: "slate",
label: "Slate",
},
] as const
// Built-in registries that are always available and cannot be overridden
export const BUILTIN_REGISTRIES: z.infer<typeof registryConfigSchema> = {
"@shadcn": `${REGISTRY_URL}/styles/{style}/{name}.json`,
}
export const BUILTIN_MODULES = new Set([
[
// Node.js built-in modules
// From https://github.com/sindresorhus/builtin-modules.
"node:assert",
"assert",
"node:assert/strict",
"assert/strict",
"node:async_hooks",
"async_hooks",
"node:buffer",
"buffer",
"node:child_process",
"child_process",
"node:cluster",
"cluster",
"node:console",
"console",
"node:constants",
"constants",
"node:crypto",
"crypto",
"node:dgram",
"dgram",
// ... (115 more lines)
Domain
Dependencies
- schema
- zod
Imported By
Source
Frequently Asked Questions
What does constants.ts do?
constants.ts is a source file in the ui codebase, written in typescript. It belongs to the FrameworkTooling domain.
What does constants.ts depend on?
constants.ts imports 2 module(s): schema, zod.
What files import constants.ts?
constants.ts is imported by 1 file(s): namespaces.test.ts.
Where is constants.ts in the architecture?
constants.ts is located at packages/shadcn/src/registry/constants.ts (domain: FrameworkTooling, directory: packages/shadcn/src/registry).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free