Skip to content

pantoken-root / renderers/bootstrap/src / toBootstrapCss

Funksjon: toBootstrapCss() ​

toBootstrapCss(options?): string

Eksperimentell

Generer Bootstrap → Instructure CSS-variabelbro.

Parametere ​

options? ​

ToBootstrapCssOptions = {}

ToBootstrapCssOptions.

Returnerer ​

string

Den brobyggende CSS-strengen.

Eksempler ​

Standard :root-bro

ts
import { toBootstrapCss } from "@pantoken/bootstrap";

const css = toBootstrapCss();
// ":root { --bs-primary: var(--instui-color-background-brand); … }"

Begrens til Bootstraps theme-attributt

ts
import { toBootstrapCss } from "@pantoken/bootstrap";

const css = toBootstrapCss({ selector: "[data-bs-theme]" });