---
title: "Table of contents styles"
url: https://www.marlasowards.com/samples/contributor-guide/admin/includes/49-toc-styles
description: "The classes that style items in a docs site's table of contents, such as headings and dividing lines."
author: Writing sample by Marla Sowards
---

> For an index of every page on this site, see [llms.txt](https://www.marlasowards.com/llms.txt).

> **Note:** I built this project for an enterprise SaaS company. However, what I've shared is genericized to mask proprietary information, including names of companies, products, features, and UI controls. Product images are mockups generated by Claude.

# Table of contents styles

| Class              | Details                                                                                                |
| ------------------ | ------------------------------------------------------------------------------------------------------ |
| toc-heading        | Not a link; hover color does not change                                                                |
| toc-heading-active | Is a link; hover color changes                                                                         |
| line-above         |                                                                                                        |
| line-below         |                                                                                                        |
| margin-below-toc   | Adds a margin between the table of contents and bottom of the page to improve visibility of final item |

For example:

```yaml
- name: Name
  class: toc-heading line-above
```
