"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../index-DEZRGktf.js"),d=require("lucide-react");require("react-router-dom");require("react");require("react-dom");const o=()=>{const{primaryPreset:s}=r.useTheme(),a=["bg-brand","text-brand","border-brand","bg-primary","text-primary","border-primary","bg-secondary","text-secondary","border-secondary","bg-accent","text-accent","border-accent","bg-foreground","text-foreground","border-foreground","bg-muted","text-muted","border-muted","bg-border","border-border","bg-success","text-success","bg-warning","text-warning","bg-error","text-error","bg-info","text-info","bg-body","bg-dark","text-dark","bg-light","text-light","text-foreground/60","bg-brand/50","border-brand/30"];return e.jsxs(e.Fragment,{children:[e.jsx(r.HeroCard,{title:"Color Customization",description:"Dynamic brand colors using CSS custom properties and seamless Tailwind CSS utility integration.",icon:e.jsx("div",{className:"w-20 h-20 sm:w-24 sm:h-24 md:w-32 md:h-32 bg-linear-to-br from-green-500 via-emerald-500 to-teal-500 rounded-full flex items-center justify-center shadow-lg",children:e.jsx(d.Brush,{className:"w-10 h-10 sm:w-12 sm:h-12 md:w-16 md:h-16 text-white filter drop-shadow-lg"})})}),e.jsxs("section",{className:"space-y-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(r.Typography,{tag:"h2",className:"mb-2",children:"Dynamic Brand Colors"}),e.jsx(r.Typography,{tag:"p",className:"text-gray-500 dark:text-gray-400 max-w-2xl mx-auto",children:"Real-time theme updates via CSS custom properties"})]}),e.jsx(r.CardContainer,{children:e.jsx(r.CardTitle,{title:"Active CSS Variable",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs(r.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400",children:["Brand colors are dynamically applied using CSS custom properties, allowing real-time theme updates without rebuilding. Colors are defined in"," ",e.jsx("code",{className:"px-1 py-0.5 border border-border rounded text-xs",children:"ui/tucu-ui/src/themes/config/index.ts"})]}),e.jsx("div",{className:"p-3 flex justify-center items-center bg-gray-200 dark:bg-gray-800 rounded-lg w-full",children:e.jsxs(r.Typography,{tag:"code",className:"w-full text-sm text-gray-600 dark:text-gray-400",children:["--color-semantic-bg-primary:"," ",s?.value||"#0052ff"]})}),e.jsx(r.Alert,{variant:"info",children:e.jsxs(r.Typography,{tag:"p",className:"text-xs",children:[e.jsx("strong",{children:"Color Presets:"})," Spectrum colors use the"," ",e.jsx("code",{className:"px-1 py-0.5 border border-border rounded text-xs",children:"-50"})," ","value from Tucu UI Design Tokens. Default colors use semantic mappings (e.g., blue-60 for primary)."]})})]})})})]}),e.jsxs("section",{className:"space-y-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(r.Typography,{tag:"h2",className:"mb-2",children:"Tailwind Integration"}),e.jsx(r.Typography,{tag:"p",className:"text-gray-500 dark:text-gray-400 max-w-2xl mx-auto",children:"Available utility classes that consume theme colors"})]}),e.jsx(r.CardContainer,{children:e.jsx(r.CardTitle,{title:"Utility Classes",children:e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2",children:a.map((t,i)=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:`w-3 h-3 rounded border border-border ${t.includes("bg-")?t:"bg-brand"}`}),e.jsxs(r.Typography,{tag:"code",className:"text-xs text-gray-600 dark:text-gray-400",children:[".",t]})]},i))}),e.jsx(r.Typography,{tag:"p",className:"text-xs text-gray-500 dark:text-gray-400 mt-2",children:"All colors support opacity modifiers (/10, /20, /30, /50, /80, etc.)"})]})})})]})]})};exports.default=o;
