@johnmusans/arcadia-ui-style-engine
Version:
Shared style system logic and types for Arcadia UI components
22 lines (18 loc) • 520 B
text/typescript
import type { RegistryItem } from "shadcn/registry";
import type { Style } from "../../types";
export function generateRegistryTheme(options: {
styleName: string;
baseUrl: string;
style: Style;
}): RegistryItem {
const { styleName, style } = options;
return {
$schema: "https://ui.shadcn.com/schema/registry-item.json",
name: "theme",
extends: "none",
type: "registry:theme",
title: `${styleName} theme`,
description: `Color theme for ${styleName} style`,
...style.theme,
};
}