Skip to content

pantoken / renderers/bootstrap/src / toBootstrapCss

함수: toBootstrapCss()

toBootstrapCss(options?): string

실험적

Bootstrap → Instructure CSS 변수 브리지를 출력합니다.

매개변수

options?

ToBootstrapCssOptions = {}

ToBootstrapCssOptions.

반환값

string

브리지용 CSS 문자열.

예제들

기본 :root 브리지

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

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

Bootstrap의 theme 속성으로 범위 지정

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

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