From dfd36f5a54ad3c3f92483d6448ebfc800708edea Mon Sep 17 00:00:00 2001 From: Kamil Gabryjelski Date: Mon, 25 Aug 2025 14:03:47 +0200 Subject: [PATCH] chore: Add instruction for LLMs to use antd theme tokens (#34800) (cherry picked from commit c7779578f91ae99c922c292d567637d557878c57) --- LLMS.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LLMS.md b/LLMS.md index 22d58e691b0..e2b9e72a707 100644 --- a/LLMS.md +++ b/LLMS.md @@ -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