Skip to content

pantoken-root / renderers/bootstrap/src / toBootstrapCss

Fungsi: toBootstrapCss() ​

toBootstrapCss(options?): string

Eksperimental

Terbitkan jembatan variabel-CSS Bootstrap → Instructure.

Parameter ​

options? ​

ToBootstrapCssOptions = {}

ToBootstrapCssOptions.

Mengembalikan ​

string

String CSS penghubung.

Contoh ​

Jembatan :root bawaan

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

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

Batasi pada atribut tema Bootstrap

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

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