| Mode | Left sidebar | Right aside | Editorial grid | Use case |
default | Yes | Yes | Yes | Standard docs pages |
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.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.123--- 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.1234--- 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; }