Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Nov 26, 2025

Short description of the changes made

Adds color-scheme: light dark; to the html element to signal to browsers that the site natively supports both light and dark color schemes.

What was the motivation & context behind this PR?

Users reported that Comet browser's built-in dark mode injection causes stale theme values, specifically affecting .prose text color. Comet injects stylesheets to add dark mode for sites that don't natively support it, but our class-based theming system (.dark/.light classes) wasn't being recognized.

The color-scheme CSS property tells browsers "this site already handles dark mode" which should prevent Comet from trying to force its own dark mode overrides.

How has this PR been tested?

  • Lint checks pass locally
  • Note: This change has not been tested directly with Comet browser - manual verification with Comet is recommended

Human review checklist

  • Verify no visual regressions in native form controls, scrollbars, or other browser-rendered UI elements (these can be affected by color-scheme)
  • Test with Comet browser to confirm this resolves the stale theme issue
  • Consider if any docs sites that only support light mode might be affected

Link to Devin run: https://app.devin.ai/sessions/d197d679750a472d88233ca0803ea5e8
Requested by: stephen@buildwithfern.com

Co-Authored-By: stephen@buildwithfern.com <stephen@buildwithfern.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@vercel
Copy link
Contributor

vercel bot commented Nov 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
dev.ferndocs.com Ready Ready Preview Nov 26, 2025 8:43pm
fern-dashboard Ready Ready Preview Nov 26, 2025 8:43pm
fern-dashboard-dev Ready Ready Preview Nov 26, 2025 8:43pm
prod-assets.ferndocs.com Ready Ready Preview Nov 26, 2025 8:43pm
prod.ferndocs.com Ready Ready Preview Nov 26, 2025 8:43pm
1 Skipped Deployment
Project Deployment Preview Updated (UTC)
fern-platform Ignored Ignored Nov 26, 2025 8:43pm

@github-actions
Copy link
Contributor

🌱 Smoke Test Preview

Testing branch changes with smoke test content:

🕷️ Smoke Test Crawler Results

Pages crawled: 33
Successful: 33 ✅
With errors: 0

🎉 All pages loaded successfully with no errors!

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.

1 participant