You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
867 B
25 lines
867 B
import { AstroIntegration } from 'astro';
|
|
import { VitePluginConfig } from '@unocss/vite';
|
|
import { UserConfigDefaults } from '@unocss/core';
|
|
|
|
interface AstroIntegrationConfig<Theme extends {} = {}> extends VitePluginConfig<Theme> {
|
|
/**
|
|
* Include reset styles
|
|
* When passing `true`, `@unocss/reset/tailwind.css` will be used
|
|
* @default false
|
|
*/
|
|
injectReset?: string | boolean;
|
|
/**
|
|
* Inject UnoCSS entry import for every astro page
|
|
* @default true
|
|
*/
|
|
injectEntry?: boolean | string;
|
|
/**
|
|
* Inject extra imports for every astro page
|
|
* @default []
|
|
*/
|
|
injectExtra?: string[];
|
|
}
|
|
declare function UnoCSSAstroIntegration<Theme extends {}>(options?: AstroIntegrationConfig<Theme>, defaults?: UserConfigDefaults): AstroIntegration;
|
|
|
|
export { AstroIntegrationConfig, UnoCSSAstroIntegration as default };
|
|
|