chore: Add instruction for LLMs to use antd theme tokens (#34800)

(cherry picked from commit c7779578f9)
This commit is contained in:
Kamil Gabryjelski
2025-08-25 14:03:47 +02:00
committed by Joe Li
parent ea5ebd2ec9
commit dfd36f5a54

View File

@@ -9,7 +9,9 @@ Apache Superset is a data visualization platform with Flask/Python backend and R
### Frontend Modernization
- **NO `any` types** - Use proper TypeScript types
- **NO JavaScript files** - Convert to TypeScript (.ts/.tsx)
- **Use @superset-ui/core** - Don't import Ant Design directly
- **Use @superset-ui/core** - Don't import Ant Design directly, prefer Ant Design component wrappers from @superset-ui/core/components
- **Use antd theming tokens** - Prefer antd tokens over legacy theming tokens
- **Avoid custom css and styles** - Follow antd best practices and avoid styling and custom CSS whenever possible
### Testing Strategy Migration
- **Prefer unit tests** over integration tests