1. Documentation
  2. Themes
  3. Grain
ReadmeGitHub
  • Introduction
  • Quickstart
  • Text
  • Code
  • Lists
  • Tables
  • Accordion
  • Badge
  • Button
  • Callout
  • Code Block
  • Code Block Group
  • Code Snippet
  • Columns
  • Custom components
  • GitHub
  • Hover Card
  • Mermaid
  • Properties
  • Related Topics
  • Tabs
  • Tree
  • Images
  • Video
  • Files
  • Grain
  • Shade
  • Moss
  • Configuration
  • Content
  • Navigation
  • Site Identity
  • Appearance
  • Header and Footer
  • Fonts
  • Icons
  • Integrations
  • Search
  • OpenAPI
  • AI Chat
  • React Router
  • Astro
  • Next.js
  • Cloudflare
  • Vercel
  • robots.txt
  • sitemap.xml
  • JSON-LD
  • rss.xml
  • llms.txt
  • llms-full.txt
  • .md endpoints

Grain

A clear, product-focused documentation theme inspired by Better Auth.

Loading documentation…

Files< PreviousShadeNext >

Powered by heyo

On this page

Documentation previewsConfigure Grain

Grain is a focused documentation shell with a structured sidebar, breadcrumbs in the header, and a quiet reading column. Its visual direction is inspired by Better Auth: restrained borders, a compact header, and an interface that keeps product documentation in the foreground.

Documentation previews

Grain theme rendering of the Introduction pageGrain theme rendering of the Introduction page

Configure Grain

Choose Grain in heyo-docs.config.ts and set the initial color mode. system follows the visitor's operating-system preference; light and dark select a fixed initial palette. A visitor can still switch modes from the interface.

heyo-docs.config.ts
export default heyoDocs({  content: "content",  theme: "grain",  mode: "system",});

The official React Router, Next.js, and Astro integrations generate and load Grain's stylesheet from the selected theme automatically. To customize colors, radius, or typography, see Overriding styles.

Grain keeps navigation, search, and group tabs in the sidebar. On desktop the header shows the current breadcrumb, while the article remains the primary reading surface. Override semantic CSS variables to adapt color, radius, or typography without changing the page structure.