Skip to content

Fix documentation tab dark mode: replace hardcoded colors with CSS variables#2

Draft
Copilot wants to merge 2 commits intodata_injestionfrom
copilot/vscode1761664225316
Draft

Fix documentation tab dark mode: replace hardcoded colors with CSS variables#2
Copilot wants to merge 2 commits intodata_injestionfrom
copilot/vscode1761664225316

Conversation

Copy link

Copilot AI commented Oct 28, 2025

The documentation tab used hardcoded light backgrounds (#f0f4ff, #f1f8f4, etc.) and dark text (#333, #666), causing text to disappear in dark mode.

Changes

  • Card backgrounds: Replaced hardcoded hex colors with var(--bg-secondary) in all 5 documentation cards
  • Text colors: Applied var(--text-primary) to headings and body text, var(--text-secondary) to metadata
  • Preserved: Colored left borders (#667eea, #4caf50, #ff9800, #2196f3) for visual hierarchy
# Before
<div style='background: #f0f4ff; border-left: 4px solid #667eea; ...'>
    <h3 style='margin-top: 0; color: #667eea;'>Perguntas Suportadas</h3>
    <ul>
        ...
    </ul>
</div>

# After
<div style='background: var(--bg-secondary); border-left: 4px solid #667eea; ...'>
    <h3 style='margin-top: 0; color: #667eea;'>Perguntas Suportadas</h3>
    <ul style='color: var(--text-primary);'>
        ...
    </ul>
</div>

Screenshots

Light Mode (unchanged behavior):
Light Mode

Dark Mode (fixed - text now visible):
Dark Mode

Files Modified

  • app.py lines 1495-1557: Documentation tab HTML

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.gradio.app
    • Triggering command: python3 app.py --port 7860 (dns block)
  • huggingface.co
    • Triggering command: python3 app.py --port 7860 (dns block)
  • us.i.posthog.com
    • Triggering command: python3 app.py --port 7860 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

precisamos ajustar a aba de documentacao, no modo escuro as letras somem pq os cards ficam claros, os cads n devem mudar de cor no modo escuro

Created from VS Code via the GitHub Pull Request extension.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…ariables

Co-authored-by: nextmarte <26266722+nextmarte@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix documentation tab colors in dark mode Fix documentation tab dark mode: replace hardcoded colors with CSS variables Oct 28, 2025
Copilot AI requested a review from nextmarte October 28, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants