style(ui组件): 更新UI组件颜色方案为深色主题

refactor(card): 调整卡片背景色和边框颜色
refactor(badge): 修改徽章颜色变体
refactor(button): 更新按钮颜色样式
refactor(input): 调整输入框颜色方案
refactor(textarea): 修改文本区域颜色样式
refactor(header): 更新导航栏颜色
refactor(hero-section): 调整英雄区域颜色和渐变
This commit is contained in:
张翔
2026-02-23 09:18:41 +08:00
parent 9e7fb20d2a
commit 5ec2ad0043
168 changed files with 823 additions and 822 deletions
+6 -6
View File
@@ -5,21 +5,21 @@ import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
const badgeVariants = cva(
"inline-flex items-center justify-center rounded-full border px-3 py-1 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-[#005EB8] focus-visible:ring-2 focus-visible:ring-[#005EB8]/50 transition-all duration-300 overflow-hidden",
"inline-flex items-center justify-center rounded-full border px-3 py-1 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-[#1C1C1C] focus-visible:ring-2 focus-visible:ring-[#1C1C1C]/50 transition-all duration-300 overflow-hidden",
{
variants: {
variant: {
default: "bg-[#C41E3A] text-white border-transparent shadow-sm",
secondary:
"bg-[#005EB8] text-white border-transparent shadow-sm",
"bg-[#1C1C1C] text-white border-transparent shadow-sm",
destructive:
"bg-[#DC2626] text-white border-transparent hover:bg-[#B91C1C]",
"bg-[#C41E3A] text-white border-transparent hover:bg-[#A01830]",
outline:
"border-[#005EB8] text-[#005EB8] bg-transparent hover:bg-[#E8F4FD]",
ghost: "text-[#718096] hover:text-[#005EB8] hover:bg-[#F5F7FA]",
"border-[#1C1C1C] text-[#1C1C1C] bg-transparent hover:bg-[#F5F5F5]",
ghost: "text-[#5C5C5C] hover:text-[#1C1C1C] hover:bg-[#F5F5F5]",
success: "bg-[#16A34A] text-white border-transparent hover:bg-[#15803D]",
warning: "bg-[#D97706] text-white border-transparent hover:bg-[#B45309]",
info: "bg-[#0284C7] text-white border-transparent hover:bg-[#0369A1]",
info: "bg-[#5C5C5C] text-white border-transparent hover:bg-[#3D3D3D]",
},
},
defaultVariants: {