How Templates Work
Templates are JSON configuration files that define:- Theme: Colors, typography, and spacing
- Layout: Single-column or two-column with optional sidebar
- Structure: Which sections appear in which areas
- Section Variants: Visual styles for each section
All templates are located in
/src/templates/ as JSON files. The system currently includes three built-in templates: Modern, Minimal, and Classic.Template JSON Structure
Here’s the complete structure of a template configuration:Theme Configuration
Thetheme object controls the visual styling of your template.
Colors
Define the color palette for your template:Primary accent color (used for headings, highlights)
Secondary accent color (used for backgrounds, subtle highlights)
Page background color
Main text color
Muted text color (used for dates, secondary information)
Border color for dividers and separators
Text color for sidebar content (only used in two-column layouts)
Typography
Control font styles and sizing:Primary font family for body text
Font family for headings (defaults to
fontFamily if not specified)Base font size (e.g., “10pt”, “11pt”)
Line height for body text (e.g., “1.5”, “1.6”)
Spacing
Define spacing between elements:Space between sections (e.g., “2rem”, “1.5rem”)
Space between items within a section
Page margins/padding (e.g., “2rem”, “3rem 2.5rem”, “2.5cm”)
Layout Types
Templates support two layout types:Single-Column Layout
A traditional single-column layout where all sections flow vertically:Two-Column Layout
A two-column layout with a sidebar for specific sections:CSS grid column definition (e.g., “30% 70%”, “35% 1fr”)
Position of the sidebar column
Section Variants
Section variants control how individual sections are rendered. Each section can have a different visual style:default- Standard section stylingcentered- Center-aligned content (typically for personal info)minimal- Minimalist styling with reduced visual weighttimeline- Timeline-style layout with datesgrid- Grid-based layouttags- Tag/badge style (good for skills)bubbles- Bubble/pill stylebullet-list- Simple bullet listsidebar- Sidebar-optimized stylingcompact- Dense, space-efficient layout
Example: Different Skill Variants
Built-in Templates
The system includes three pre-built templates:Modern
Two-column layout with vibrant sidebar and contemporary styling
Minimal
Clean single-column layout with elegant typography
Classic
Traditional professional layout with serif fonts
Next Steps
Creating Templates
Learn how to create your own custom templates
Type Definitions
View the TypeScript types for templates

