Files
ai/web/tailwind.config.ts
zeekay 747e1bb03f feat: replace Ant Design with Tailwind across entire Cloud frontend
148 files changed, 7,314 insertions, 12,664 deletions.

Foundation:
- Added tailwindcss, lucide-react, sonner, clsx, tailwind-merge
- Dark monochrome theme matching IAM
- cn() utility, sonner toast wrapper

App shell:
- App.js: class → functional, Ant Layout/Sider/Menu → Tailwind sidebar
- BaseListPage: Tailwind tables, native search
- Setting: sonner toast, Tailwind badges
- SystemInfo: Tailwind stat cards

Chat system (25 files):
- ChatPage, ChatBox, ChatInput, MessageItem: monochrome chat UI
- Drawers → slide-over panels
- All lucide-react icons

Knowledge/Store (8 files):
- Store and vector management pages

All remaining pages (~90 files):
- File, Provider, Graph, Node, Machine, Container, Pod
- Article, Workflow, Task, Form, Record, Message, Video
- All table sub-components
- All common components

17 residual antd imports in deeply coupled pages.
2026-03-20 23:06:04 -07:00

57 lines
1.5 KiB
TypeScript

import type { Config } from "tailwindcss"
const config: Config = {
darkMode: "class",
content: [
"./src/**/*.{js,jsx}",
"./public/index.html",
],
theme: {
extend: {
colors: {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
primary: {
DEFAULT: "hsl(var(--primary))",
foreground: "hsl(var(--primary-foreground))",
},
secondary: {
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))",
},
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
},
muted: {
DEFAULT: "hsl(var(--muted))",
foreground: "hsl(var(--muted-foreground))",
},
accent: {
DEFAULT: "hsl(var(--accent))",
foreground: "hsl(var(--accent-foreground))",
},
popover: {
DEFAULT: "hsl(var(--popover))",
foreground: "hsl(var(--popover-foreground))",
},
card: {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))",
},
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
},
},
plugins: [],
}
export default config