Skip to content

pantoken / renderers/bootstrap/src / toBootstrapCss

Fonksiyon: toBootstrapCss()

toBootstrapCss(options?): string

Deneysel

Bootstrap → Instructure CSS-değişken köprüsünü yayınla.

Parametreler

options?

ToBootstrapCssOptions = {}

ToBootstrapCssOptions.

Döndürür

string

Köprüleyici CSS dizesi.

Örnekler

Varsayılan :root köprüsü

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

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

Bootstrap'in tema özniteliğine sınırla

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

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