SharePoint Document Issues

How to Change SharePoint Document Link Color to White with JSON

Steve KSteve K Nov 2, 2026 868 views

Question details

The user wants to change the text color of a document hyperlink to white in a SharePoint library using JSON row-formatting.

How to Make SharePoint Document Links White Using JSON
Product
Microsoft SharePoint
Device & OS
not provided
Scenario
Applying dark or black background row formatting to a document library in SharePoint to customize the view.
Observed behavior
The hyperlink text color of the document name does not change to white, making it very difficult to read against the newly applied black background.
Before you start

Ensure you have the necessary site permissions to edit the view and apply custom JSON formatting in your SharePoint document library.

Solution 1Recommended

Use Alternative Column Formatting or Lighter Backgrounds

Since SharePoint row formatting does not natively support overriding the default document hyperlink color, adjusting your design approach or column targeting is the most effective workaround.

SharePoint's default document name column often ignores row-level font color overrides to preserve default accessibility and link behaviors. Because JSON formatting cannot currently force the anchor tag color of the default Name column to white on a black row, modifying your design is recommended.

1
Access view formatting

Navigate to your SharePoint document library, click on the view dropdown menu in the top right corner, and select 'Format current view'.

2
Adjust the background color

Select 'Advanced mode' to edit the JSON code. Modify your JSON payload to use a lighter background color (such as a pale gray) so the default blue or black hyperlink text remains legible.

3
Format specific columns instead

Alternatively, abandon the row-level black background. Apply JSON formatting specifically to non-link columns by clicking the column header, selecting 'Column settings', and choosing 'Format this column'.

Use Alternative Column Formatting or Lighter Backgrounds
Community Support: If a strict black background is a mandatory business requirement, consider posting a feature request in the Microsoft Q&A forum for expert guidance on modern SharePoint limitations.
Free Microsoft Office alternative

Manage Your Documents Seamlessly with WPS Office

While SharePoint handles complex enterprise site customizations, WPS Office provides a lightweight, highly compatible, and free alternative for creating, editing, and managing your everyday documents with built-in cloud synchronization.

  1. 1. Download WPS Office: Visit the official WPS website and click the free download button for your operating system.
  2. 2. Install the Application: Run the downloaded installer file and follow the brief on-screen instructions to complete the setup.
  3. 3. Open and Manage Documents: Launch WPS Office to securely create, edit, and organize your files without worrying about complex formatting constraints.
Highly compatible with Microsoft Office formats including Word, Excel, and PowerPoint.Free and lightweight, avoiding complex JSON formatting for simple document sharing.Familiar user interface with zero learning curve for rapid productivity.Built-in cloud storage for seamless document collaboration across devices.
microsoft office alternative - wps office

Frequently Asked Questions

Can I use custom CSS to force the hyperlink color to white in modern SharePoint?

Modern SharePoint strongly discourages the use of custom CSS injections to maintain responsiveness and accessibility. While JSON formatting allows styling, it does not currently provide a supported parameter to override the default link color of the core 'Name' column.

Why does my JSON row formatting ignore text color changes for links?

SharePoint applies specific default classes to interactive elements like hyperlinks. Row-level JSON formatting applies styles to the parent container row, but the anchor tags inside that row inherit Microsoft's default link colors, which override the row's general text color settings.

How do I format a specific column instead of the entire row in SharePoint?

Click the downward arrow next to the specific column header you want to customize, select 'Column settings', and then choose 'Format this column'. This allows you to apply unique JSON styling to that exact field without affecting the rest of the row or the main document link.