nextjs - 💡(How to fix) Fix Docs: bg color and font both white [3 comments, 4 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#85431Fetched 2026-04-08 02:15:46
View on GitHub
Comments
3
Participants
4
Timeline
8
Reactions
1
Assignees
Timeline (top)
commented ×3assigned ×1closed ×1issue_type_added ×1
RAW_BUFFERClick to expand / collapse

What is the documentation issue?

dark-theme 'copy code' button (js and ts), bg color and font both white

<img width="1920" height="1080" alt="Image" src="https://github.com/user-attachments/assets/89c16c8e-e9d5-411c-82c4-bc4c23c042a1" />

hope you see there font and bg color both white and gray issues

Is there any context that might help us understand?

_

Does the docs page already exist? Please link to it.

https://github.com/vercel/next.js/issues

extent analysis

TL;DR

Adjust the CSS styles for the 'copy code' button to ensure proper contrast between background and font colors in dark theme.

Guidance

  • Verify the CSS classes applied to the 'copy code' button and its container to identify where the white background and font colors are being set.
  • Check if there are any existing CSS rules that target the dark theme specifically and adjust them to provide sufficient contrast.
  • Inspect the HTML structure of the 'copy code' button to determine if any inline styles or JavaScript-generated styles are overriding the expected CSS rules.
  • Consider adding a specific CSS rule to target the 'copy code' button in dark theme, setting the background color to a darker shade and the font color to a lighter shade.

Example

No specific code example can be provided without knowing the exact CSS and HTML structure, but a general approach might involve adding a CSS rule like .dark-theme .copy-code-button { background-color: #333; color: #fff; }.

Notes

The exact fix will depend on the specific CSS and HTML implementation of the 'copy code' button and the dark theme styling. This guidance assumes that the issue is related to CSS styling and not a more complex issue with JavaScript or theme configuration.

Recommendation

Apply a workaround by adding custom CSS to adjust the styles for the 'copy code' button in dark theme, as the root cause seems to be related to styling rather than a version or configuration issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

nextjs - 💡(How to fix) Fix Docs: bg color and font both white [3 comments, 4 participants]