Grid System
Grid structures for web, docs, print, dashboard, and presentation contexts.
Ontopix maintains distinct grid definitions per context. Each context has its own reading rhythm and measure, so one-grid-fits-all produces layouts that feel awkward in at least one place. Pick the context first, then the span.
Web
Responsive web grid system
| Property | Value | Tailwind |
|---|---|---|
| Columns | 12 | grid-cols-12 |
| Gutter | 24px | gap-6 |
| Margin | 24px | px-6 |
Column Spans
| Span | Columns | Tailwind |
|---|---|---|
| Full | 12/12 | col-span-12 |
| Half | 6/12 | col-span-6 |
| Third | 4/12 | col-span-4 |
| Quarter | 3/12 | col-span-3 |
| Two Thirds | 8/12 | col-span-8 |
| Three Quarters | 9/12 | col-span-9 |
Common Patterns
<!-- Content + sidebar -->
<div class="grid grid-cols-12 gap-6">
<main class="col-span-12 lg:col-span-8">Content</main>
<aside class="col-span-12 lg:col-span-4">Sidebar</aside>
</div>
<!-- Three columns -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<div>Card 1</div><div>Card 2</div><div>Card 3</div>
</div>
Docs
Documentation and content grid
| Property | Value |
|---|---|
| Content max-width | 768px |
| Sidebar width | 280px |
| TOC width | 240px |
Docs prefer a narrow measure for legibility. Prose sections should cap around the docs.max_width token even inside wider page layouts.
Print layout specifications
Paper Sizes
| Size | Width × Height (mm) |
|---|---|
| LETTER | 8.5in × 11in |
| A4 | 210mm × 297mm |
| A5 | 148mm × 210mm |
Margins
- Standard: {'top': '1in', 'bottom': '1in', 'left': '1in', 'right': '1in'}
- Narrow: {'top': '0.75in', 'bottom': '0.75in', 'left': '0.75in', 'right': '0.75in'}
- Wide: {'top': '1in', 'bottom': '1in', 'left': '1.5in', 'right': '1.5in'}
Bleed: 0.125in · Safe zone: 0.25in
Dashboard
Dashboard and application grid
| Region | Size |
|---|---|
| Sidebar width | {'collapsed': 64, 'expanded': 256, 'max': 320} |
| Header height | 64 |
| Card grid | auto-fill columns, gap 24 |
Dashboards follow a persistent left-sidebar, top-header frame. Inner content uses the same 12-column web grid inside the main region.
Presentation
Slide and presentation layouts
| Aspect ratio | Use |
|---|---|
| standard | 16:9 |
| classic | 4:3 |
| wide | 21:9 |
16:9 Slide
- Width: 1920
- Height: 1080
- Safe area: {'top': 80, 'bottom': 80, 'left': 120, 'right': 120}
Zones
| Zone | Purpose |
|---|---|
| Title | — |
| Content | — |
| Footer | — |
Breakpoints
| Name | Min width | Tailwind | Container max |
|---|---|---|---|
sm | 640px | sm: | 640px |
md | 768px | md: | 768px |
lg | 1024px | lg: | 1024px |
xl | 1280px | xl: | 1280px |
2xl | 1536px | 2xl: | 1536px |
Start mobile-first. Design for the smallest breakpoint first, then expand with sm:, md:, lg: prefixes.