Skip to content

pantoken-root / renderers/bootstrap/src / toBootstrapCss

Funktion: toBootstrapCss() ​

toBootstrapCss(options?): string

Experimentell

Generera Bootstrap → Instructure CSS-variabelbrygga.

Parametrar ​

options? ​

ToBootstrapCssOptions = {}

ToBootstrapCssOptions.

Returnerar ​

string

Den bryggande CSS-strängen.

Exempel ​

Standard :root-brygga

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

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

Begränsa till Bootstraps theme-attribut

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

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