Skip to content

pantoken / renderers/bootstrap/src / toBootstrapCss

Functie: toBootstrapCss()

toBootstrapCss(options?): string

Experimenteel

Genereer de Bootstrap → Instructure CSS-variabelebrug.

Parameters

options?

ToBootstrapCssOptions = {}

ToBootstrapCssOptions.

Retourneert

string

De CSS-tekenreeks voor de brug.

Voorbeelden

Standaard :root-brug

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

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

Beperk tot Bootstrap's theme-attribuut

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

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