Files
shadcn-ui/apps/v4/registry/themes.ts
shadcn 84bd724d97 feat: refactor registry (#8598)
* feat: refactor registry

* fix: remove components

* refactor: getActiveStyle

* fix: prettier in build-registry

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* fix

* Update apps/v4/scripts/build-registry.mts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix

* Update apps/v4/scripts/build-registry.mts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update apps/v4/components/block-viewer.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-29 15:07:56 +04:00

15 lines
392 B
TypeScript

import { type Registry } from "shadcn/schema"
import { baseColorsV4 } from "@/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],
}
}
)