From 34c9a6b350c72563ef7546bc5834c8347b60ce01 Mon Sep 17 00:00:00 2001 From: MyPrototypeWhat Date: Fri, 21 Nov 2025 11:42:07 +0800 Subject: [PATCH] docs: update CLAUDE.md to reflect UI component migration to Tailwind CSS and Shadcn UI - Revised guidelines to specify the use of Tailwind CSS and Shadcn UI components from `@packages/ui` for new UI development. - Updated project documentation to clarify the prohibition of `antd` and `styled-components` in favor of the new UI libraries. --- CLAUDE.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 1ff53e2fe3..e16bb9b7b6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -7,7 +7,7 @@ This file provides guidance to AI coding assistants when working with code in th - **Keep it clear**: Write code that is easy to read, maintain, and explain. - **Match the house style**: Reuse existing patterns, naming, and conventions. - **Search smart**: Prefer `ast-grep` for semantic queries; fall back to `rg`/`grep` when needed. -- **Build with HeroUI**: Use HeroUI for every new UI component; never add `antd` or `styled-components`. +- **Build with Tailwind CSS & Shadcn UI**: Use components from `@packages/ui` (Shadcn UI + Tailwind CSS) for every new UI component; never add `antd` or `styled-components`. - **Log centrally**: Route all logging through `loggerService` with the right context—no `console.log`. - **Research via subagent**: Lean on `subagent` for external docs, APIs, news, and references. - **Always propose before executing**: Before making any changes, clearly explain your planned approach and wait for explicit user approval to ensure alignment and prevent unwanted modifications. @@ -90,9 +90,9 @@ This file provides guidance to AI coding assistants when working with code in th ### UI Design -The project is in the process of migrating from antd & styled-components to HeroUI. Please use HeroUI to build UI components. The use of antd and styled-components is prohibited. +The project is in the process of migrating from antd & styled-components to Tailwind CSS and Shadcn UI. Please use components from `@packages/ui` to build UI components. The use of antd and styled-components is prohibited. -HeroUI Docs: https://www.heroui.com/docs/guide/introduction +UI Library: `@packages/ui` ### Database Architecture