Skip to content

pantoken-root / renderers/bootstrap/src / toBootstrapCss

Swyddogaeth: toBootstrapCss() ​

toBootstrapCss(options?): string

Arbrofol

Allbwn y bont newidynnau CSS Bootstrap → Instructure.

Paramedrau ​

options? ​

ToBootstrapCssOptions = {}

ToBootstrapCssOptions.

Yn dychwelyd ​

string

Y llinyn CSS sy'n creu'r bont.

Enghreifftiau ​

Bont :root ddiofyn

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

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

Cyfyngu i briodoledd thema Bootstrap

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

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