Skip to content

pantoken-root / renderers/shadcn/src / toShadcnCss

Funksjon: toShadcnCss() ​

toShadcnCss(options?): string

Eksperimentell

Generer broen fra shadcn til Instructure for CSS-variabler.

Parametere ​

options? ​

ToShadcnCssOptions = {}

ToShadcnCssOptions.

Returnerer ​

string

Den brobyggende CSS-strengen.

Eksempel ​

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.