UNPKG

unocss-applet

Version:

<p align="center"> <img src="https://github.com/unocss-applet/unocss-applet/raw/main/public/logo.svg" style="width:100px;" /> <h1 align="center">UnoCSS Applet</h1> <p align="center">Using <a href="https://github.com/unocss/unocss">UnoCSS</a> in applet(for

34 lines (31 loc) 935 B
import { UserConfig } from 'unocss'; export * from '@unocss-applet/preset-applet'; export * from '@unocss-applet/preset-rem-rpx'; export * from '@unocss-applet/transformer-attributify'; interface AppletConfig { /** * Platform * @default 'uniapp' */ platform?: 'uniapp' | 'taro'; /** * Unsupported characters in applet, will be added to the default value * @default * ``` * ['.', ':', '%', '!', '#', '(', ')', '[', '/', ']', ',', '$', '{', '}', '@', '+', '^', '&', '<', '>', '\'', '\\', '"', '?', '*'] * ``` */ unsupportedChars?: string[]; /** * Space Between and Divide Width Elements * @default * ``` * ['view', 'button', 'text', 'image'] * ``` */ betweenElements?: string[]; } type UserAppletConfig<Theme extends object = object> = UserConfig<Theme> & { applet?: AppletConfig; }; export type { AppletConfig, UserAppletConfig };