Skip to content

composeCss

composeCss(css): string

Defined in: packages/xray/src/plate.ts:347

Compose a plate’s scoped css with the renderer-owned BASE_CSS, base first so a plate rule beats a base rule at equal specificity by source order — the standard composition for rendering a skeleton outside the Vite plugin (where virtual:xray/base.css + virtual:xray/plates/<name>.css do this through the CSS pipeline instead). css is the CALLER’s input (ADR 0026): renderPlateHtml(plate, composeCss(css)), or <Skeleton plate={plate} css={composeCss(css)}> for a runtime-captured plate. Rendering a NESTED stitch under an already-composed parent needs the raw css only (base is already on the page) — pass the string uncomposed there.

string

string