Package APIs

@master/create-css

Add Master CSS to an existing project.

Public entrypoints

Plan and apply Master CSS setup for an existing project. The plan describes dependency changes, file edits, commands and warnings before application.

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/create-css

Setup planning, application and their options and result types.

Exports · 12

applyMasterCSSSetupPlan

TypeScript
export declare function applyMasterCSSSetupPlan(  plan: MasterCSSSetupPlan,  options?: MasterCSSSetupOptions): void;

MasterCSSSetupCommand

TypeScript
export interface MasterCSSSetupCommand {    executable: string;    args: readonly string[];    reason: string;}

MasterCSSSetupDependency

TypeScript
export interface MasterCSSSetupDependency {    name: string;    version: string;    dev: boolean;}

MasterCSSSetupFileAction

TypeScript
export type MasterCSSSetupFileAction = 'create' | 'update' | 'skip';

MasterCSSSetupFileChange

TypeScript
export interface MasterCSSSetupFileChange {    path: string;    action: MasterCSSSetupFileAction;    content?: string;    reason: string;    precondition: MasterCSSSetupFilePrecondition;}

MasterCSSSetupFilePrecondition

TypeScript
export interface MasterCSSSetupFilePrecondition {    exists: boolean;    digest: string | null;}

MasterCSSSetupFramework

TypeScript
export type MasterCSSSetupFramework = 'none' | 'vite' | 'react' | 'react-router' | 'tanstack-start' | 'vue' | 'nextjs' | 'svelte' | 'nuxt' | 'astro' | 'webpack' | 'rspack' | 'rsbuild' | 'laravel' | 'lit' | 'angular';

MasterCSSSetupFrameworkOption

TypeScript
export type MasterCSSSetupFrameworkOption = MasterCSSSetupFramework | 'auto';

MasterCSSSetupOptions

TypeScript
export interface MasterCSSSetupOptions {    root?: string;    framework?: MasterCSSSetupFrameworkOption;    eslint?: boolean;    mcp?: boolean;    ai?: boolean;    minimal?: boolean;    install?: MasterCSSSetupPackageManager | false;    yes?: boolean;    packageTag?: string;    mode?: MasterCSSRenderingMode;}

MasterCSSSetupPackageManager

TypeScript
export type MasterCSSSetupPackageManager = 'npm' | 'pnpm' | 'yarn' | 'bun';

MasterCSSSetupPlan

TypeScript
export interface MasterCSSSetupPlan {    version: 1;    root: string;    framework: MasterCSSSetupFramework;    packageManager: MasterCSSSetupPackageManager;    packageJSONPrecondition: MasterCSSSetupFilePrecondition;    dependencies: readonly MasterCSSSetupDependency[];    files: readonly MasterCSSSetupFileChange[];    commands: readonly MasterCSSSetupCommand[];    warnings: readonly string[];    mode?: MasterCSSRenderingMode;    summary: {        dependencies: number;        filesToCreate: number;        filesToUpdate: number;        commands: number;        warnings: number;    };}

planMasterCSSSetup

TypeScript
export declare function planMasterCSSSetup(  options?: MasterCSSSetupOptions): MasterCSSSetupPlan;

Using this contract

Call planMasterCSSSetup() to inspect the proposed changes. applyMasterCSSSetupPlan() checks recorded file preconditions before writing; create a new plan if those files change. Setup can modify project files and install dependencies. See Installation for the interactive workflow.


© 2026 Aoyue Design LLC.MIT License
Trademark Policy