| Mode | Left sidebar | Right aside | Editorial grid | Use case |
default | Yes | Yes | Yes | Standard docs pages |
compact | Yes | No | Yes (2-column) | Focused docs with a narrow frame |
center | No | Yes | Yes (2-column) | Focused content without nav |
custom | No | No | No | Landing pages, custom layouts |
wide and frame are accepted for Mintlify compatibility and alias to default.compact to keep the left navigation while removing the optional right aside. The content column keeps its normal reading width, so the full page frame becomes narrower and the header aligns with the content on the right. Compact also sets --sidebar-font-size to 12px (the default is 13px, 14px at xl). Override that token on :root if you want a different size.1234--- $schema: https://holocron.so/frontmatter.json mode: "compact" ---
docs.json to make it the default for the full site. Compact mode removes the right aside, so Holocron defaults assistant.display to floating. Ask AI stays available as a bottom pill. Set display to sidebar if you do not want the pill.12345{ "layout": { "mode": "compact" } }
mode: "default" on a specific page to restore the full three-column layout.11200px max width - 230px right aside - 60px column gap = 910px
layout.maxWidth or layout.columnGap update the compact frame automatically.mode: "custom" to strip the editorial layout entirely. Only the navbar, tab bar, footer, and mobile navigation are rendered. The content area is a plain container where you control everything with your own HTML and Tailwind classes.1234--- $schema: https://holocron.so/frontmatter.json mode: "custom" ---
maxWidthmaxWidth frontmatter field to constrain the content container width in pixels. The navbar stays full-width; only the content area is narrowed and centered.12345--- $schema: https://holocron.so/frontmatter.json mode: "custom" maxWidth: 700 ---
1234567891011121314151617181920--- mode: "custom" maxWidth: 800 --- <div className="flex flex-col items-center py-24 gap-6 text-center"> <h1 className="text-5xl font-bold tracking-tight"> Your Product Name </h1> <p className="text-lg text-muted-foreground max-w-xl"> A short description of what your product does and why it matters. </p> <a href="./quickstart" className="no-underline rounded-lg bg-primary px-5 py-2.5 text-sm font-medium text-primary-foreground"> Get Started </a> </div>
--grid-max-widthstyle.css file (see Custom CSS):1234/* style.css */ :root { --grid-max-width: 2600px; }
12345678910111213Default (1200px max) ┌────────────────────────────────────────────────────────────────────────────┐ │ ┌───────┐ ┌──────────────┐ ┌───────┐ │ │ │ nav │ │ content │ │ aside │ │ │ └───────┘ └──────────────┘ └───────┘ │ └────────────────────────────────────────────────────────────────────────────┘ Full-width (2600px max) ┌──────────────────────────────────────────────────────────────────────────────────────────┐ │ ┌───────┐ ┌──────────────┐ ┌───────┐ │ │ │ nav │ │ content │ │ aside │ │ │ └───────┘ └──────────────┘ └───────┘ │ └──────────────────────────────────────────────────────────────────────────────────────────┘
| Variable | Default | Description |
--grid-max-width | 1200px | Overall page cap |
--grid-nav-width | 230px | Left sidebar (table of contents) |
--grid-sidebar-width | 230px | Right sidebar (aside content) |
--grid-gap | 60px | Gap between columns |
1content = min(720px, max-width - nav - sidebar - 2 × gap)
--grid-max-width does not make the content column infinitely wide. It grows until it hits the 720px cap, then the extra space becomes gap.<Aside> shares its vertical space with the section it belongs to (the content between two headings). The section row expands to fit whichever is taller: the main content or the aside. If the aside callout is taller than the section text, you will see extra whitespace below the main content.100vw:1234/* style.css */ :root { --grid-max-width: 100vw; }