UNPKG

@moontra/moonui-cli

Version:

CLI tool for MoonUI component library

33 lines (29 loc) 729 B
import { Plugin } from 'postcss'; export interface MoonUIThemePluginOptions { /** * Project root directory path * @default process.cwd() */ projectRoot?: string; /** * Whether to log verbose output * @default true */ verbose?: boolean; } /** * PostCSS plugin for MoonUI theme injection * Automatically generates and injects theme CSS based on moonui.config.js * * @example * // postcss.config.js * module.exports = { * plugins: [ * require('@moontra/cli/postcss/moonui-theme-plugin')(), * require('tailwindcss'), * require('autoprefixer'), * ], * }; */ declare const moonuiThemePlugin: (options?: MoonUIThemePluginOptions) => Plugin; export default moonuiThemePlugin;