Skip to content

Styling contract

Public IDs and classes (stable for theming):

SelectorMeaning
#toc-titleTitle element
#toc-containerRoot list
.toc-itemAny item
.toc-topitemTop-level item
.toc-sublistNested list
.toc-sublist-itemNested item
.toc-link / .toc-toplink / .toc-sublinkAnchors
.active-toc-itemActive item
.active-toc-topitem / .active-toc-sublist-itemActive variants
#toc-item-${id}Per-item wrapper id

Default styles are minimal (list reset, active color, nested indent). Override in your app CSS.

Released under the MIT License.