Skip to content

pantoken-root / renderers/foundation/src / toFoundationCss

Function: toFoundationCss() ​

toFoundationCss(options?): string

Experimental

Emit the thin runtime CSS overlay: theme Foundation's compiled classes with var(--instui-*).

Parameters ​

options? ​

ToFoundationCssOptions = {}

ToFoundationCssOptions.

Returns ​

string

The overlay CSS string.

Example ​

Scope the overlay to a container

ts
toFoundationCss({ scope: ".instui" });