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