Skip to content

pantoken-root / renderers/shadcn/src / toShadcnCss

Fonction: toShadcnCss() ​

toShadcnCss(options?): string

Expérimental

Générer le pont de variables CSS shadcn → Instructure.

Paramètres ​

options? ​

ToShadcnCssOptions = {}

ToShadcnCssOptions.

Renvoie ​

string

La chaîne CSS du pont.

Exemple ​

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.