Architecture & 2x Grid Specification
Mathematical layout specifications for the IBM Carbon 2x Grid, 8px mini-unit spatial system, and IBM Plex typeface scale.
The Hugo-Carbon Modular Engine implements the foundational mathematics of the IBM Design Language and the IBM Carbon Design System v11. Every margin, padding, typography scale, and layout column aligns strictly with the Carbon 2x Grid.
1. The Carbon 2x Grid (Fluid 16-Column)
The Carbon 2x Grid provides fluid structure across mobile, tablet, and desktop display environments. The grid uses a 16-column layout on desktop with an 8px mini-unit and a 4px baseline grid for vertical rhythm.
Viewport Breakpoint Scale
| Viewport Profile | Viewport Range | Grid Columns | Gutter Width | Screen Margins | Spatial Base |
|---|---|---|---|---|---|
Small (sm) | 320px – 671px | 4 | 16px (1rem) | 16px (1rem) | 4px baseline rhythm |
Medium (md) | 672px – 1055px | 8 | 32px (2rem) | 16px (1rem) | 8px component step |
Large (lg) | 1056px – 1311px | 16 | 32px (2rem) | 16px (1rem) | 8px component step |
Extra Large (xlg) | 1312px – 1583px | 16 | 32px (2rem) | 24px (1.5rem) | 8px component step |
Max Frame (max) | 1584px and above | 16 (Max 1440px) | 32px (2rem) | Auto-centered | 1440px boundary frame |
Content Envelope CSS Implementation
| |
2. The 8px Mini-Unit Spatial System
All margins, paddings, and component dimensions are integer multiples of the 8-pixel mini-unit:
| |
3. IBM Plex Typeface Scale
The Hugo-Carbon engine bundles 100% self-hosted IBM Plex fonts in WOFF2 format:
| Typeface | Weights Included | Operational Application Context |
|---|---|---|
| IBM Plex Sans | 300, 400, 600, 700 | UI shell header, navigation items, page headings, buttons, body prose |
| IBM Plex Serif | 400, 600 | Long-form editorial passages, pull quotes, academic journal essays |
| IBM Plex Mono | 400, 600 | Code blocks, technical tags, timestamps, data table metrics |
| IBM Plex Math | 400 | Mathematical formulas, Greek symbols, integral signs, matrix delimiters |
4. Content Frame Allocation Model
The layout scaffold distributes space across the 16-column grid dynamically based on active sidebars:
- Dual Sidebars Enabled (Left + Right):
- Left Navigation Sidebar: Columns 1 to 3 (
3 cols, 280px sticky). - Main Content Region: Columns 4 to 13 (
10 cols). - Right Table of Contents / Meta Sidebar: Columns 14 to 16 (
3 cols, sticky).
- Left Navigation Sidebar: Columns 1 to 3 (
- Single Left Sidebar Enabled:
- Left Sidebar: Columns 1 to 3 (
3 cols). - Main Content Region: Columns 4 to 16 (
13 cols).
- Left Sidebar: Columns 1 to 3 (
- Single Right Sidebar Enabled:
- Main Content Region: Columns 1 to 13 (
13 cols). - Right Sidebar: Columns 14 to 16 (
3 cols).
- Main Content Region: Columns 1 to 13 (
- Full Width Layout (Zero Sidebars):
- Main Content Region: Columns 1 to 16 (
16 cols— standard for 404 pages and full-width showcases).
- Main Content Region: Columns 1 to 16 (
5. Standalone Theme Package & Multi-Site Monorepo Architecture
The repository isolates the Hugo-Carbon Theme into a standalone, portable theme package located in themes/carbon/:
| |