-
Notifications
You must be signed in to change notification settings - Fork 17k
[UI/UX] Kapa AI Assistant Widget on Documentation Site's Dark Mode Compatibility #39062
Description
Screenshot
Description
The "Ask AI" widget (powered by Kapa.ai) on superset.apache.org is a highly valuable tool, but its current interface feels rudimentary and contains several visual and accessibility hurdles. As Superset is a leading data visualization tool, its documentation assistant should reflect that same outlook and high-quality user experience.
Current Issues:
- Accessibility Bug (Ghost Button): The "Send" button (up-arrow) in the input field has extremely low contrast, making it nearly invisible against the light background when there is text in the box.
- Flat Chat Hierarchy: There is no visual distinction between user messages and AI responses (e.g., no message bubbles, background color changes, or alignment differences). This makes scanning longer conversations difficult.
- Inefficient Use of Space: The suggestion buttons are oversized for the text they contain, creating awkward whitespace.
- Stylistic Inconsistency: The action buttons (Copy, New Chat, Feedback) look like default unstyled browser elements.
- Dark Mode Sync: The modal currently lacks proper synchronization with the documentation site's dark mode preference.
Proposed Solution:
Since the Kapa widget uses stable IDs (#kapa-modal-content) and is built on Mantine UI, we can implement a highly functional, sleek interface without modifying the third-party React source code.
I propose applying targeted CSS overrides within the Docusaurus custom.css and tweaking the Kapa config in docusaurus.config.js to:
- Fix the contrast of the send button.
- Introduce distinct message bubbles (user vs. AI).
- Refine button styling and typography to match the main Superset application's modern feel.
- Add a proper dark mode to the modal.
- Improve the positioning of the buttons on the modal.
I have experience with frontend development and modern CSS/UI design. I would love to take ownership/collaboration of this issue and submit a fix with the necessary configuration updates and CSS overrides to resolve these pain points.
I would appreciate collaboration from the design team to ensure the CSS overrides (colors, spacing, typography scales) perfectly match the Apache Superset style guidelines.
Labels: design:review, design:suggest