k bar integration do not switch colors on theme change in antd
I have been using the Refine with antd integration, recently added the Kbar integration into it but it seems it doesn't work
6 Replies
Hi @AK. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I apologize, but the knowledge sources provided do not contain specific information about Kbar integration with Refine and Ant Design, or its behavior with theme changes. The available information is primarily about general theming in Refine with Ant Design, but does not address Kbar specifically.
However, based on the general theming information for Refine with Ant Design, here are a few suggestions that might help:
1. Make sure you're using the latest version of Refine and Ant Design, as theming support has improved over time.
2. Ensure that you're wrapping your app with the
ConfigProvider
from Ant Design and using the RefineThemes
or a custom theme. For example:
3. If you're implementing a dark mode switch, make sure you're updating the theme algorithm correctly:
4. For components that need to consume the current theme context, you might need to wrap them with the App
component from Ant Design:
If these suggestions don't resolve the issue with Kbar, you might need to check the Kbar documentation or seek further assistance from the Refine community or support channels, as the provided knowledge sources don't contain specific information about Kbar integration.
Refine Ant Design Theming Documentation
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@1298702566271484007> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
conscious-sapphireOP•4w ago
@contributor
afraid-scarlet•4w ago
Hello @AK where did you add your kbar in refine project? can you provide more detailed question or else a reproducible project in stackblitz will be very helpful.
fascinating-indigo•4w ago
Hello @AK, unfortunately "kbar" has own styles and doesn't respect any UI libraries theme
you can see here:
https://github.com/refinedev/refine/blob/main/packages/kbar/src/components/renderResults/index.tsx
We will think what we can do about that but our hands full right now with Refine AI development.
We are open to all contributors 🙌
GitHub
refine/packages/kbar/src/components/renderResults/index.tsx at main...
A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility. - refinedev/refine
conscious-sapphireOP•3w ago
will check it out