mytril
Version:
Mytril Svelte library component for rapidly building modern websites based on Svelte and Sveltekit
24 lines (23 loc) • 970 B
TypeScript
import type { MytrilConfig } from '../../types/mytril.js';
/**
* Asynchronously processes and updates CSS files based on the provided configuration.
*
* @param {MytrilConfig} [config] - Optional configuration object for customizing the CSS output.
*
* The function performs the following tasks:
* 1. Loads CSS files.
* 2. Reads the base CSS file and updates it with theme and variable configurations if applicable.
* 3. Writes the updated base CSS file back to the filesystem.
* 4. Generates and writes component-specific CSS based on the configuration.
* 5. Generates and writes utility-specific CSS based on the configuration.
*
* @returns {Promise<void>} A promise that resolves when all file operations are complete.
*/
export declare const mytrilCSS: (config: MytrilConfig) => Promise<void>;
export declare const loadCssFile: () => Promise<{
base: string;
components: string;
variables: string;
utilities: string;
code: string;
}>;