GitHub user dosubot[bot] added a comment to the discussion: Styling Secondary 
Buttons using Ant Design Tokens

<!-- Answer -->
Per-component Ant Design token overrides (like components.Button or 
components.Tag) are not supported in the current master branch—only global 
tokens under the token key are recognized and applied. This means you can't 
directly style secondary buttons or tags via tokens; they still inherit from 
global values like colorPrimary and colorBgContainer, and some may use 
hardcoded or legacy styles that ignore token changes 
[details](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/packages/superset-ui-core/src/theme/Theme.tsx).

The best workaround is to use targeted CSS overrides or Emotion/styled 
components for more granular control [Emotion styling 
guidelines](https://github.com/apache/superset/wiki/Emotion-Styling-Guidelines-and-Best-Practices).
 Full support for per-component theming via tokens is planned for Superset 6.0 
and later, as part of the ongoing Ant Design 5 upgrade, but this is not yet 
available in master [theming 
roadmap](https://github.com/apache/superset/issues/34503).

If you need help with CSS selectors or Emotion usage for specific button or tag 
styles, let me know!


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/2e3da651-d6d1-4c66-b379-fb997a2d6bb0?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/2e3da651-d6d1-4c66-b379-fb997a2d6bb0?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/2e3da651-d6d1-4c66-b379-fb997a2d6bb0?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/2e3da651-d6d1-4c66-b379-fb997a2d6bb0?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/2e3da651-d6d1-4c66-b379-fb997a2d6bb0?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/2e3da651-d6d1-4c66-b379-fb997a2d6bb0?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/2e3da651-d6d1-4c66-b379-fb997a2d6bb0?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34574)

GitHub link: 
https://github.com/apache/superset/discussions/34574#discussioncomment-14018396

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to