postcss-theme-fold
Version:
[![NPM Version][npm-img]][npm-url] [![github (ci)][github-ci]][github-ci]
37 lines (36 loc) • 988 B
TypeScript
import { Declaration } from 'postcss';
declare type ThemeFoldOptions = {
/**
* List of themes with path to css files.
*/
themes: string[][];
/**
* Global helper-selectors.
*/
globalSelectors?: string[];
/**
* Method of theme folding, by default choice mode in relation from themes size.
*
* single-theme — don't accumulate cascade with theme selectors.
* multi-themes — accumulate cascade with theme selectors.
*/
mode?: 'single-theme' | 'multi-themes';
/**
* Predicate for processing each nodes.
*/
shouldProcessVariable?: (declaration: Declaration) => boolean;
/**
* Disable warnings
*/
disableWarnings?: boolean;
/**
* Show original variables as comment
*/
debug?: boolean;
/**
* Preserve original declaration
*/
preserve?: string[] | boolean;
};
declare const _default: import("postcss").Plugin<ThemeFoldOptions>;
export default _default;