How to Change Table of Contents Leader and Page Number Colors in Word
Question details
The user wants to customize the color of the leader dots and page numbers within a Table of Contents.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Formatting a document for final publication and needing the Table of Contents elements to match a specific color scheme, such as making the leader dots green.
- Observed behavior
- By default, leader characters and page numbers use the Default Paragraph Font and remain black or the standard text color unless a custom style or direct formatting is explicitly applied.
Ensure your document is fully edited and all headings are finalized, as applying manual formatting to the Table of Contents should be the very last step before publishing.
Apply Direct Formatting and Unlink the Table of Contents
Directly change the text color and unlink the TOC to prevent it from reverting to default styles upon updating.
Because leader dots generally inherit the Default Paragraph Font, changing the heading style doesn't always automatically change the dots. Applying direct color formatting is the quickest method. However, updating the table will erase this formatting, so you must unlink the TOC to lock in your custom colors.
Right-click anywhere inside your Table of Contents and select 'Update Field', then choose 'Update entire table' to ensure all page numbers and headings are perfectly accurate.
Highlight the specific leader dots and page numbers you wish to alter. Go to the 'Home' tab and select your desired color from the Font Color dropdown (e.g., Green).
Click and drag to select the entire Table of Contents, or click the handle at the top-left of the TOC box if available.
Press 'Ctrl+Shift+F9' on your keyboard. This converts the automated Table of Contents into standard static text, preventing Word from overwriting your custom colors.

Modify the Default TOC Styles
Change the underlying style rules for the Table of Contents so the colors apply automatically without needing to unlink the table.
Easily Customize Your Table of Contents with WPS Writer
WPS Writer offers a highly intuitive document formatting experience. You can effortlessly generate, modify, and color-coordinate your Table of Contents to match your document's unique design requirements.
- 1. Insert a Table of Contents: Open your document in WPS Writer. Go to the 'Reference' tab, click 'Table of Contents', and select a built-in style or 'Insert Table of Contents'.
- 2. Access Style Options: In the Table of Contents dialog, click on the 'Options' or 'Modify' button to adjust the formatting for specific heading levels.
- 3. Customize the Color: Change the font color to your desired choice (like green) within the style modification window.
- 4. Apply the Layout: Confirm your settings. WPS Writer will generate an updated Table of Contents reflecting your custom color choices without breaking links.

Frequently Asked Questions
Why did my TOC colors revert to black after saving or printing?
If you manually changed the text color without unlinking the table, Word automatically updates fields (like the TOC) right before printing or saving in certain configurations. This auto-update restores the default black style. To fix this, apply your colors and press Ctrl+Shift+F9 to unlink the TOC before saving.
Can I change the leader dots to dashes or solid lines?
Yes. When generating your Table of Contents, go to References > Table of Contents > Custom Table of Contents. In the dialog box, look for the 'Tab leader' dropdown menu. You can change the standard dots to dashes, a solid line, or select 'None' to remove them entirely.
How do I fix the spacing between the heading text and the page numbers?
You can adjust TOC spacing using the Ruler. Go to the View tab and check 'Ruler'. Highlight your Table of Contents, then drag the tab stop marker (usually an 'L' shaped symbol on the top ruler) or the hanging indent slider to the left or right to adjust the space.




