mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-09 06:55:07 +00:00
* 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>
15 lines
392 B
TypeScript
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],
|
|
}
|
|
}
|
|
)
|