Files
zeekay 05fc512820 feat: sync upstream shadcn/ui — [email protected], v4 app, font system, chart improvements
Upstream sync from shadcn-ui/ui (1686 commits since last merge base).

Key changes:
- packages/shadcn upgraded to 4.1.0 (CLI font transformers, scaffold from github, chart colors)
- apps/v4 replaces apps/www as the primary docs/registry app
- Font system: 25+ heading font registries, font markers utility, @supports override
- Chart improvements: recharts v3 compat, radial chart fixes
- templates/ updated with monorepo variants (astro, vite, react-router, start)
- skills/shadcn AI skill definitions added
- deprecated/ removed (auth, auth-firebase, cli, www)

Preserved Hanzo-only paths: app/, pkg/, demo/, docs/, template/next/
2026-03-24 19:04:31 -07:00

58 lines
1.3 KiB
TypeScript

import { registryItemSchema, type Registry } from "shadcn/schema"
import { z } from "zod"
import { fonts } from "@/registry/fonts"
import { blocks } from "./blocks/_registry"
import { components } from "./components/_registry"
import { examples } from "./examples/_registry"
import { hooks } from "./hooks/_registry"
import { internal } from "./internal/_registry"
import { lib } from "./lib/_registry"
import { ui } from "./ui/_registry"
// Shared between index and style.
const BASE_STYLE = {
type: "registry:style",
dependencies: ["class-variance-authority", "lucide-react", "@base-ui/react"],
devDependencies: ["tw-animate-css", "shadcn"],
registryDependencies: ["utils"],
css: {
'@import "tw-animate-css"': {},
'@import "shadcn/tailwind.css"': {},
"@layer base": {
"*": {
"@apply border-border outline-ring/50": {},
},
body: {
"@apply bg-background text-foreground": {},
},
},
},
cssVars: {},
files: [],
}
export const registry = {
name: "shadcn/ui",
homepage: "https://ui.shadcn.com",
items: z.array(registryItemSchema).parse([
{
name: "index",
...BASE_STYLE,
},
{
name: "style",
...BASE_STYLE,
},
...ui,
...examples,
...lib,
...components,
...blocks,
...hooks,
...internal,
...fonts,
]),
} satisfies Registry