Layout options
Configure the theme by passing an options object to starlightFluent() in your Starlight configuration. Each comparison below shows the same site built with the indicated value. Other settings remain at their defaults unless noted.
For the complete option structure, defaults, and feature toggles, see Customization: Theme options.
All options are optional. Layout defaults are toc: { desktop: 'splitted', mobile: 'splitted', position: 'right' }, sidebar: 'normal', corners: 'squared', shadows: 'content-only', and panels: 'islands'. Theme features are enabled by default.
See Preset combinations for complete configuration examples.
Desktop table of contents
Section titled “Desktop table of contents”toc.desktop controls whether the desktop table of contents is separated from or joined to the content panel. This setting applies from 72rem.
starlightFluent({ layout: { toc: { desktop: 'merged' } } })splitted (default)
merged
Mobile table of contents
Section titled “Mobile table of contents”toc.mobile controls whether the mobile table of contents is separated from or joined to the content panel below 72rem.
starlightFluent({ layout: { toc: { mobile: 'merged' } } })Table of contents position
Section titled “Table of contents position”toc.position places the desktop table of contents on the right or left side of the main content.
starlightFluent({ layout: { toc: { position: 'left' } } })right (default)
left
Sidebar
Section titled “Sidebar”sidebar selects the standard or subdued sidebar appearance. These screenshots use shadows: 'all' to make the difference easier to see.
starlightFluent({ layout: { sidebar: 'subtle' } })normal (default)
subtle
Corners
Section titled “Corners”corners selects the base radii or larger rounded radii for the layout and components.
starlightFluent({ layout: { corners: 'rounded' } })squared (default)
rounded
Shadows
Section titled “Shadows”shadows controls layout and Starlight shadow presets. content-only disables the layout-panel shadow; all leaves it enabled; none sets the medium and large Starlight shadow variables to none. Dialog glow uses the separate --fluent-glow token.
starlightFluent({ layout: { shadows: 'all' } })content-only (default)
all
none
Panel style
Section titled “Panel style”panels selects between separated island-like panels and a continuous standard layout. islands is the default and uses the configured panel spacing, corners, and shadows. standard removes panel gaps and layout shadows, squares the panel corners, and adds dividers between the sidebar, header, and table of contents.
starlightFluent({ layout: { panels: 'standard' } })See Customization for CSS custom properties and additional theme settings.










