From 2668affe888ff7fc69634a7a66a088f6bee5dab5 Mon Sep 17 00:00:00 2001 From: zzlgreat Date: Sun, 23 Nov 2025 00:03:52 +0800 Subject: [PATCH] update pay function --- src/styles/heroui.css | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/src/styles/heroui.css b/src/styles/heroui.css index bec5365f..57613f95 100644 --- a/src/styles/heroui.css +++ b/src/styles/heroui.css @@ -1,31 +1,24 @@ -/* HeroUI v3 样式导入 */ -/* 文档: https://v3.heroui.com/docs/quick-start */ - -/* - * Tailwind CSS v4 配置 - * 在 v4 中,配置通过 CSS 完成 +/** + * HeroUI v3 + Tailwind CSS v4 样式配置 + * 文档: https://v3.heroui.com/docs/quick-start */ + +/* 1. 导入 Tailwind CSS v4(必须在最前面) */ @import "tailwindcss"; -@theme { - /* Tailwind v4 主题配置 */ -} - -/* - * @source 指令告诉 Tailwind v4 扫描哪些文件中的类名 - * 路径是相对于此 CSS 文件的位置(src/styles/) - */ -@source "../views/AgentChat/**/*.js"; -@source "../providers/AppProviders.js"; - +/* 2. 导入 HeroUI v3 样式 */ @import "@heroui/styles"; -/* - * AgentChat 页面的自定义样式 - * 这些样式仅在使用 HeroUI 组件的页面生效 +/** + * Tailwind v4 内容扫描配置 + * 使用 @source 指令显式指定要扫描的文件路径 + * 路径相对于 CSS 文件所在位置(src/styles/) */ +@source "../**/*.{js,jsx,ts,tsx}"; -/* 确保深色模式正常工作 */ +/** + * 自定义样式 + */ .dark { color-scheme: dark; }