Skip to content

pantoken-root / renderers/shadcn/src / toShadcnCss

ฟังก์ชัน: toShadcnCss() ​

toShadcnCss(options?): string

ทดลอง

สร้างสะพานเชื่อม shadcn → Instructure สำหรับ CSS-variable.

พารามิเตอร์ ​

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.