Skip to content

Templates

thelawin.dev offers three professionally designed invoice templates.

Available Templates

Minimal

Clean, modern design with minimal visual elements. Perfect for tech companies and startups.

json
{
  "template": "minimal"
}

Classic

Traditional invoice layout with clear sections. Ideal for established businesses.

json
{
  "template": "classic"
}

Compact

Space-efficient design that fits more items per page. Great for detailed invoices.

json
{
  "template": "compact"
}

Customization Options

All templates support these customization options:

Add your company logo to the invoice:

json
{
  "template": "minimal",
  "logo": {
    "base64": "data:image/png;base64,iVBORw0KGgo...",
    "widthMm": 30
  }
}

Logo Guidelines

  • Supported formats: PNG, JPEG, SVG
  • Recommended width: 20-40mm
  • Transparent backgrounds work best on white paper

Accent Color

Customize the accent color used for headings and highlights:

json
{
  "accentColor": "#8b5cf6"
}

Add custom footer text (e.g., bank details, legal notices):

json
{
  "footerText": "Bank: Commerzbank | IBAN: DE89 3704 0044 0532 0130 00"
}

Locale

Set the language for template labels:

json
{
  "locale": "de"
}

Supported locales: en, de, fr, es, it

Full Example

json
{
  "template": "minimal",
  "logo": {
    "base64": "data:image/png;base64,iVBORw0KGgo...",
    "widthMm": 30
  },
  "accentColor": "#8b5cf6",
  "footerText": "Thank you for your business!",
  "locale": "en",
  "invoice": {
    "number": "2026-001",
    ...
  }
}

Template Comparison

FeatureMinimalClassicCompact
Logo placementTop leftTop centerTop left
Item table styleBorderlessBorderedCondensed
Totals sectionRight-alignedBoxInline
Best forModern brandsTraditionalMany items

ZUGFeRD 2.3 & Factur-X 1.0 compliant