Files
shadcn-ui/apps/v4/registry/registry-themes.ts
shadcn 64f8baf9aa feat(shadcn): allow empty files items (#8110)
* feat(shadcn): allow no files items

* feat(v4): add themes

* chore: changeset

* fix
2025-09-01 20:00:02 +04:00

15 lines
401 B
TypeScript

import { type Registry } from "shadcn/schema"
import { baseColorsV4 } from "@/registry/registry-base-colors"
// Create a theme for each color in the base colors.
export const themes: Registry["items"] = Object.keys(baseColorsV4).map(
(color) => {
return {
name: `theme-${color}`,
type: "registry:theme",
cssVars: baseColorsV4[color as keyof typeof baseColorsV4],
}
}
)