Mordoc

Table of Contents

Style the on-page heading links shown in the TOC column of an article.

1 MIN READ

Table of Contents renders inside Content's TOC column (see Content Layout): the list of on-page headings a reader can jump to.

Open the override file

Text
config/styles/toc.css

Tokens

TokenWhat it controls
--toc-link-hover-fgText color of a heading link on hover.
--toc-link-active-fgText color of the heading link matching the reader's current scroll position.
--toc-link-active-borderColor of the left border marking the active heading link.

Example toc.css

A config/styles/toc.css that sets every token on this page, for both light and dark mode:

Css
:root {
  --toc-link-hover-fg: #0f766e;
  --toc-link-active-fg: #0f766e;
  --toc-link-active-border: #0f766e;
}

.dark {
  --toc-link-hover-fg: #2dd4bf;
  --toc-link-active-fg: #2dd4bf;
  --toc-link-active-border: #2dd4bf;
}

Next step

© 2026 MordocPowered by Mordoc