snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
29
apps/v4/registry/_legacy-styles.ts
Normal file
29
apps/v4/registry/_legacy-styles.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
export const legacyStyles = [
|
||||
{
|
||||
name: "new-york-v4",
|
||||
title: "New York",
|
||||
},
|
||||
{
|
||||
name: "base-nova",
|
||||
title: "Base Nova",
|
||||
},
|
||||
{
|
||||
name: "radix-nova",
|
||||
title: "Radix Nova",
|
||||
},
|
||||
{
|
||||
name: "aria-nova",
|
||||
title: "React Aria Nova",
|
||||
},
|
||||
] as const
|
||||
|
||||
export type Style = (typeof legacyStyles)[number]
|
||||
|
||||
export async function getActiveStyle() {
|
||||
// In the future, this can read from cookies, session, etc.
|
||||
return legacyStyles[0]
|
||||
}
|
||||
|
||||
export function getStyle(name: string) {
|
||||
return legacyStyles.find((style) => style.name === name)
|
||||
}
|
||||
Reference in New Issue
Block a user