Skip to content

[UI/UX] Kapa AI Assistant Widget on Documentation Site's Dark Mode Compatibility #39062

@MouhibKhammassi

Description

@MouhibKhammassi

Screenshot

Image Image

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:

  1. Fix the contrast of the send button.
  2. Introduce distinct message bubbles (user vs. AI).
  3. Refine button styling and typography to match the main Superset application's modern feel.
  4. Add a proper dark mode to the modal.
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    design:accessibilityRelated to accessibility standardsdocNamespace | Anything related to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions