Mixins / foldkit-mixins/foundations
loadFoundations
function · packages/mixins/src/foundations.ts:45
function loadFoundations(options: {
readonly module: string
readonly export?: string | undefined
readonly root?: string | undefined
}): Promise<string>Compiles the stylesheet a module exports: what the page's first paint is styled with before any script runs. The module is evaluated, so it must be pure (building a string, like the CMS example's sheet).