Skip to content

pantoken / renderers/bootstrap/src / toBootstrapCss

Funktion: toBootstrapCss()

toBootstrapCss(options?): string

Eksperimentel

Udsend Bootstrap → Instructure CSS-variabel bro.

Parametre

options?

ToBootstrapCssOptions = {}

ToBootstrapCssOptions.

Returnerer

string

CSS-strengen til broering.

Eksempler

Standard :root bro

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

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

Omfang til Bootstraps tema-attribut

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

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