UnmarkdownDocs

Templates Overview

Choose from 62 professionally designed templates that transform your Markdown into beautifully styled documents.

What Are Templates?

Templates are visual themes that control how your Markdown renders. Each template defines typography (fonts, sizes, weights), colors (text, backgrounds, accents), spacing, and element styles (blockquotes, tables, code blocks, horizontal rules). Your Markdown content stays the same; switching templates instantly changes the presentation.

Under the hood, each template is a TemplateConfig object. When you publish or preview a document, generateTemplateCSS() produces scoped CSS from this config and applies it to the rendered HTML.

Light and Dark Modes

Every template includes both light and dark color sets. You can switch between modes using the theme_mode parameter in the API or the dark mode toggle in the editor toolbar. Both modes use the same typography and layout; only the colors change.

Template Categories

The 62 templates are organized into 8 categories:

  • Free (8): Clean, versatile designs available on all plans
  • Business (8): Professional layouts for reports, proposals, and corporate content
  • Academic (7): Structured formats for research papers, theses, and lectures
  • Developer (10): Code-focused themes inspired by popular editor color schemes
  • Creative (10): Bold, expressive designs for portfolios and personal projects
  • Dark (6): Dark background themes optimized for low-light reading
  • Productivity (8): Task-oriented layouts for notes, journals, and planning
  • Special (6): Unique thematic designs for specific occasions and styles

Free vs Pro Templates

The Free plan includes 8 templates covering the most popular styles. The Pro plan unlocks all 62 templates across all categories. You can preview any template in the editor regardless of your plan, but Pro templates are checked at publish time.

Tip
Changing templates never affects your Markdown source. Templates are applied during rendering, so you can freely experiment without risk.

Applying Templates via API

When creating or publishing documents through the API, use the template_id parameter to specify a template. The default template is swiss.

bash
curl -X POST https://api.unmarkdown.com/v1/documents \
  -H "Authorization: Bearer um_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "My Document",
    "content": "# Hello World",
    "template_id": "dracula",
    "theme_mode": "dark"
  }'

See the Template Catalog for a complete list of template IDs.

Google Fonts

Templates use Google Fonts for typography. Fonts are loaded automatically when a template is selected. No API key is needed, and font families are deduplicated to avoid loading the same font twice. The fonts load via a single <link> element injected into the page head.

Applying in the Editor

In the web app, open the template picker from the formatting toolbar. Templates are grouped by category, and Pro templates show a lock icon for free users. Click any template to apply it instantly. Your selection is saved with the document and syncs to the pop-out preview window.