Skip to content

pantoken / renderers/shadcn/src / toShadcnCss

函数: toShadcnCss()

toShadcnCss(options?): string

实验性

生成 shadcn → Instructure 的 CSS 变量桥接。

参数

options?

ToShadcnCssOptions = {}

ToShadcnCssOptions.

返回值

string

桥接用的 CSS 字符串。

示例

ts
import { toShadcnCss } from "@pantoken/shadcn";

const css = toShadcnCss();
// ":root { --primary: var(--instui-color-background-brand); … }"
// Emit alongside @pantoken/css, which defines the --instui-* properties.