x-antd

Standardize Ant Design customization with Tailwind CSS layer ordering and scoped overrides.

2|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/pure-golang/level85 --skill x-antd
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: x-antd
Source: https://github.com/pure-golang/level85/tree/main/.agents/skills/x-antd
Command: npx skills add https://github.com/pure-golang/level85 --skill x-antd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

Этот навык помогает стандартизировать и безопасно кастомизировать Ant Design в связке с Tailwind CSS, чтобы не разъезжались стили, а внутренние .ant-* переопределялись предсказуемо и без глобальных побочных эффектов.

Core Features & Use Cases

  • Layered CSS setup for AntD + Tailwind v4: задаёт правильный каркас слоёв (theme, base, antd, components, utilities) и корректные @import в нужных layer’ах.
  • Scoped overrides for AntD internals: требует использовать rootClassName/project root scope для селекторов .ant-*, чтобы кастомизация была точечной и не ломала другие места.
  • Governed theming boundaries: запрещает брендовые токены в ConfigProvider.theme и ограничивает ConfigProvider.theme.components, чтобы кастомизация оставалась управляемой и совместимой.

Quick Start

Применяй x-antd, когда подключаешь или обновляешь AntD во frontend и настраиваешь стили через frontend/src/styles.css, используя Tailwind слои и scoped rootClassName для любых внутренних .ant-* переопределений.

Frequently Asked Questions about x-antd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely override Ant Design styles with Tailwind CSS without breaking global scope?▼

To safely override Ant Design styles with Tailwind CSS, enforce scoped CSS overrides using `rootClassName` or project root scope for `.ant-*` selectors. This prevents global side effects and ensures component customizations remain predictable and isolated.

What is the correct CSS layer ordering for AntD and Tailwind CSS v4 integration?▼

The correct CSS layer ordering for AntD and Tailwind v4 defines a specific framework: `theme`, `base`, `antd`, `components`, and `utilities`. You must apply correct `@import` statements within these layers to maintain strict style boundary control and predictable cascading.

Why does Ant Design theming break when updating Tailwind CSS to v4?▼

Ant Design theming breaks during Tailwind v4 updates because incorrect layer ordering causes style conflicts. The x-antd approach fixes this by standardizing imports across defined layers and prohibiting global `.ant-*` rules, ensuring internal DOM and overlays remain compatible.

Can I use ConfigProvider theme tokens for brand customization in AntD with Tailwind?▼

ConfigProvider theme tokens for brand customization are prohibited in this setup to maintain governed theming boundaries. You should restrict `ConfigProvider.theme.components` and rely on scoped CSS overrides instead of injecting brand tokens directly into the global theme configuration.

Do I need AntD v6 and Tailwind CSS v4 to use scoped component styling?▼

Yes, you need AntD v6 and Tailwind CSS v4 to implement this scoped component styling standard. The setup requires layer-based imports and scoped `rootClassName` overrides to correctly handle internal `.ant-*` DOM elements, overlays, and theme boundaries.