import { t as AntdPluginOptions } from "./types-BfCK_iPw.js"; //#region src/v4.d.ts /** * 生成 Tailwind CSS v4 主题 CSS 内容(经典入口)。 * * Tailwind v4 使用 @theme 指令定义主题变量,变量命名约定: * - --color-*: 颜色工具类 (bg-*, text-*, border-*) * - --padding-*: padding 工具类 (p-*, px-*, py-*) * - --margin-*: margin 工具类 (m-*, mx-*, my-*) * - --radius-*: 圆角工具类 (rounded-*) * - --text-*: 字体大小工具类 (text-sm, text-lg) * - --shadow-*: 阴影工具类 (shadow-*) */ declare function generateThemeCSS(options?: AntdPluginOptions): string; /** 预构建的经典主题 CSS(默认配置) */ declare const defaultThemeCSS: string; interface AntdV4CompatOptions { /** * antdv-next CSS 变量前缀,与 ConfigProvider 的 prefixCls 对应。 * @default 'ant' * @example antPrefix: 'my-app' -> var(--my-app-color-primary) */ antPrefix?: string; /** * Tailwind v4 theme token 的命名空间前缀。 * 输出的变量形如 `--color-{tokenPrefix}-primary`,对应工具类 `bg-{tokenPrefix}-primary`。 * 传空字符串可关闭 namespace(不推荐,会回到旧的命名冲突状态)。 * @default 'ant' */ tokenPrefix?: string; /** * 是否额外输出带前缀的 `@utility` 工具类,例如 `a-bg-primary`。 * 这些 utility 不依赖 @theme namespace,直接指向 antdv 变量,可作为短写法。 * @default true */ allowPrefixedUtilities?: boolean; /** * 前缀 utility 使用的前缀。 * @default 'a' * @example prefix: 'antd' -> @utility antd-bg-primary { ... } */ prefix?: string; } /** * 生成 Tailwind CSS v4 兼容主题 CSS 内容(推荐用于新项目)。 * * 默认输出: * - `@theme inline` 中所有 token 都加 `ant-` namespace,例如 `--color-ant-primary` * - 对应 Tailwind v4 工具类:`bg-ant-primary`、`text-ant-lg`、`p-ant-lg`、`rounded-ant-lg`、`shadow-ant-card` * - 额外发出 `@utility a-bg-primary { ... }` 一类前缀简写(可通过 allowPrefixedUtilities 关闭) * * @example * ```css * @import "tailwindcss"; * @import "@antdv-next/tailwind/compat.css"; * ``` * * @example * ```ts * import { generateCompatThemeCSS } from '@antdv-next/tailwind/v4' * * const css = generateCompatThemeCSS({ * tokenPrefix: 'antd', * prefix: 'antd', * }) * ``` */ declare function generateCompatThemeCSS(options?: AntdV4CompatOptions): string; /** 预构建的兼容主题 CSS(默认配置) */ declare const defaultCompatThemeCSS: string; //#endregion export { AntdV4CompatOptions, defaultCompatThemeCSS, defaultThemeCSS, generateCompatThemeCSS, generateThemeCSS };