Skip to main content

Overview

VibeDoc’s template system gives you complete control over document styling. Customize colors, fonts, spacing, and layout to match your brand or create distinct document types. Template Customization

Template Components

Colors

Primary, secondary, accent, and text colors

Typography

Font families, sizes, weights, and line heights

Spacing

Margins, padding, and gaps between elements

Layout

Headers, footers, and page dimensions

Color Configuration

Primary Colors

Define your brand colors:
Template Colors:
  Primary: #3B82F6 (Blue)
  Secondary: #8B5CF6 (Purple)
  Accent: #10B981 (Green)
  Text: #1F2937 (Dark Gray)
  Background: #FFFFFF (White)
Primary Color - Main brand colorUsed for:
  • Headings
  • Links
  • Buttons
  • Emphasis

Color Presets

Quick-start with built-in color schemes:

Blue Professional

Blue & Indigo - Corporate, trustworthy

Green Growth

Green & Teal - Fresh, eco-friendly

Purple Creative

Purple & Pink - Creative, modern

Red Bold

Red & Orange - Energetic, urgent

Gray Minimal

Grayscale - Clean, minimal

Multicolor

Full spectrum - Playful, diverse

Applying Colors

Colors automatically apply to:
  • All heading blocks
  • Text emphasis
  • Table headers
  • Callout borders
  • Signature blocks
  • Divider lines
Colors are applied consistently across preview, PDF export, and shared links for perfect brand matching.

Typography

Font Families

Choose from professional font stacks:
Font FamilyStyleBest For
Geist SansModern sans-serifGeneral use
InterVersatile sans-serifBusiness docs
RobotoClean geometricTech docs
MerriweatherClassic serifReports
LoraElegant serifFormal docs
Playfair DisplayDecorative serifCreative
IBM Plex MonoMonospaceCode, data
Use sans-serif fonts for digital reading and serif fonts for printed documents.

Heading Sizes

Configure all six heading levels:
Heading Sizes:
  H1:
    fontSize: 36px
    lineHeight: 1.2
    fontWeight: 700
  H2:
    fontSize: 28px
    lineHeight: 1.3
    fontWeight: 600
  H3:
    fontSize: 22px
    lineHeight: 1.4
    fontWeight: 600
  H4:
    fontSize: 18px
    lineHeight: 1.5
    fontWeight: 600
  H5:
    fontSize: 16px
    lineHeight: 1.5
    fontWeight: 500
  H6:
    fontSize: 14px
    lineHeight: 1.6
    fontWeight: 500

Text Sizing

Control body text appearance:
Default: 16pxAffects all text blocks. Recommended range: 14-18px
Default: 1.6Spacing between lines. Recommended: 1.4-1.8
Default: 0Space between characters. Recommended: -0.02em to 0.05em
Default: 16pxGap between paragraphs. Recommended: 12-24px

Spacing & Layout

Margins

Control document edges with visual cross-layout editor:
Visual Editor: VibeDoc includes an interactive cross-layout margin editor with real-time preview. See margins adjust as you type!
Margins:
  Page:
    Top: 60px
    Right: 80px
    Bottom: 60px
    Left: 80px

  Blocks:
    Above: 24px
    Below: 24px
Visual Features:
  • Cross-layout positioning (Top, Right, Bottom, Left inputs)
  • Connecting lines to page preview
  • Real-time visual feedback
  • Intuitive controls with labels

Padding

Internal spacing for elements:
Padding:
  Callouts: 16px
  Tables: 12px
  Signatures: 20px

Grid System

Align content with an invisible grid (coming soon):
  • Columns: 12-column system
  • Gutters: Configurable gaps
  • Breakpoints: Responsive sizing

Header Configuration

Customize document headers:
Header Content:
  • Logo image
  • Company name
  • Document title
  • Date
  • Custom text
Customize document footers:
Footer Content:
  • Page numbers
  • Copyright notice
  • Contact info
  • Website URL
  • Custom text

Border Configuration

Add borders to header/footer:
Border Options:
  Position: Top | Bottom | Both
  Style: Solid | Dashed | Dotted | Double
  Width: 1-5px
  Color: Any hex color

Branding & Watermarks

Protect and brand your documents:

Logo

Add company logo to header or footer with size and position controls

Watermarks

Add text or image watermarks with full customization →
New in v1.6.0: Advanced watermark system with text/image support, repeat patterns (diagonal, grid, sparse), and comprehensive styling options. Learn more →
Header, footer, and branding settings are Pro features. Free plan uses default header/footer.

Page Settings

Page Size

Currently, all documents use A4 (210mm × 297mm):
Coming Soon:
  • Letter (US standard)
  • Legal
  • A3, A5
  • Custom dimensions

Orientation

Toggle between:
  • Portrait (vertical) - Default - Represented by vertical paper icon
  • Landscape (horizontal) - Represented by horizontal paper icon
Visual Selection: Choose orientation with intuitive SVG paper icons showing actual page orientation. Portrait displays a vertical paper sheet, landscape shows a horizontal document.
Affects all pages in the document. Orientation can also be set during PDF export for format-specific output.

Page Breaks

Control where pages break (coming soon):
Page Break Options:
  - Avoid breaks inside blocks
  - Force break after block
  - Keep heading with following content
  - Orphan/widow control

Template Library

Built-in Templates

Start with pre-configured templates:

Business Proposal

Professional blue theme with clean typography

Legal Contract

Serif font with formal spacing and structure

Creative Brief

Colorful with modern sans-serif fonts

Technical Report

Monospace accents, tight spacing, data-focused

Invoice

Minimal design with emphasis on tables

Resume

Compact layout with professional styling

Custom Templates

Create your own templates (Pro feature):
1

Start with Base

Choose a built-in template or start blank
2

Customize Settings

Adjust colors, fonts, spacing, headers/footers
3

Preview

See real-time preview of changes
4

Save Template

Give it a name and save to your library
5

Apply Anytime

Apply saved templates to any document

Sharing Templates

Share custom templates with team (Enterprise feature, coming soon):
  • Export template configuration as JSON
  • Import templates from others
  • Team template library
  • Version control for templates

Advanced Customization

CSS Overrides (Enterprise)

Add custom CSS for ultimate control:
/* Example custom CSS */
.heading-1 {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.callout-info {
  border-left: 4px solid #3B82F6;
  border-radius: 8px;
}

.table th {
  background: linear-gradient(to bottom, #3B82F6, #2563EB);
}
Custom CSS requires understanding of document structure. Incorrect CSS can break layouts.

JavaScript Hooks (Enterprise)

Execute custom logic on document events:
// Example: Add current date to footer
vibedoc.onRender((doc) => {
  doc.footer.text =${new Date().getFullYear()} Your Company`;
});

API Configuration

Set templates programmatically:
// Future API
await vibedoc.updateTemplate(documentId, {
  colors: {
    primary: '#3B82F6',
    secondary: '#8B5CF6'
  },
  fonts: {
    heading: 'Inter',
    body: 'Inter'
  },
  spacing: {
    marginTop: 80,
    marginBottom: 80
  }
});

Template Management

Saving Templates

Save current configuration as reusable template:
  1. Configure Document - Style to your liking
  2. Open Template Menu - Click “Templates” in toolbar
  3. Save as New - Click “Save Current as Template”
  4. Name Template - Give it a descriptive name
  5. Confirmation - Template saved to your library

Applying Templates

Apply saved templates to documents:
Select template when creating new document

Editing Templates

Modify saved templates:
  • Load template into document
  • Make changes
  • Save over existing template (replaces)
  • Or save as new template (creates variant)

Deleting Templates

Remove templates you no longer need:
  • Open Template Library
  • Hover over template
  • Click delete icon
  • Confirm deletion
Deleting a template doesn’t affect documents already using it.

Best Practices

Use the same template for related documents to maintain brand consistency.
Always export a test PDF to verify template looks correct in final output.
Avoid over-styling. Clean, simple templates are more professional.
Choose legible fonts at appropriate sizes. Minimum 14px for body text.
Ensure sufficient color contrast for accessibility (WCAG AA minimum).
Stick to 2-3 main colors. More creates visual chaos.
Leave adequate white space. Minimum 60px margins recommended.
Use 1-2 font families maximum. More looks unprofessional.

Responsive Templates

Templates adapt to different contexts:
ContextAdjustments
Desktop PreviewFull template applied
PDF ExportPrint-optimized layout
Mobile ViewResponsive sizing
Share PageWeb-optimized rendering
Templates automatically adjust spacing, font sizes, and margins for each context.

Next Steps