UNPKG

mytril

Version:

Mytril Svelte library component for rapidly building modern websites based on Svelte and Sveltekit

12 lines (11 loc) 575 B
/** * Parses the given CSS string and extracts content marked with specific breakpoints. * It then generates media queries based on the provided breakpoints and appends them to the cleaned CSS. * * @param breakpoints - An object where keys are breakpoint names and values are the corresponding pixel values. * @param css - The CSS string to be parsed and processed. * @returns The cleaned CSS string with appended media queries based on the breakpoints. */ export declare const cssParser: (breakpoints: { [key: string]: number | string; }, css: string) => string;