Package APIs

@master/css-svelte

Svelte and SvelteKit integration for Master CSS

Public entrypoints

Integrate Master CSS with Svelte builds and SvelteKit server responses. Build and request handling use separate entrypoints.

Declarations show the public surface of each import path. Referenced type names may be local to the package; import only names listed as exports here. Private implementation is omitted, while constructor restrictions remain visible.

@master/css-svelte/vite

Svelte-aware Vite plugin and options.

createMasterCSSVitePlugin

TypeScript
declare function createMasterCSSVitePlugin(  options?: MasterCSSVitePluginOptions): BasePlugin[];

default

Default export of createMasterCSSVitePlugin.

TypeScript
export { createMasterCSSVitePlugin as default };

@master/css-svelte/hooks.server

Named SvelteKit request handler.

handle

TypeScript
declare const handle: import("@sveltejs/kit").Handle;

Using this contract

Register the Vite plugin in build configuration and the named handle export in the SvelteKit server hook. See Svelte installation for the complete wiring.


© 2026 Aoyue Design LLC.MIT License
Trademark Policy