Skip to Content
Md2Docx logo Md2Docx

inlineSvgCssVariables()

Updated 22 Oct 2026

inlineSvgCssVariables(svg, transparent?): string

Defined in: packages/mermaid-node/src/mermaid-node.ts:105

Inlines CSS custom properties and color-mix values in beautiful-mermaid SVG so that librsvg / sharp renders them in full color rather than solid black.

Parameters

svg

string

transparent?

boolean = true

Returns

string

On this page