> ## Documentation Index
> Fetch the complete documentation index at: https://docs.presenton.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate Presentation with Templates and Themes

> A template is the collection of strict pre-designed slide layouts and a theme of a template is the style of it as described by text color, background colors fonts and others

## 🧩 Templates

Templates are collections of pre-designed slide layouts used to create presentations quickly and consistently.

Internally, each template has two parts:

* **Design**: The visual layout of slides, including elements, positioning, fonts, colors, and formatting.
* **Schema**: The content definition that describes what goes on each slide (text blocks, images, icons, and their constraints).

Content rules in schemas:

* Bulleted lists are variable-length. They can expand or contract between the minimum and maximum limits defined in the schema.
* Other text fields (like titles, subtitles, and body text) have min/max length constraints that guide how much content is generated.

Built-in templates you can use right away:

* **general**
* **modern**
* **standard**
* **swift**

Select a template by name using the template parameter in your request (for example, "template": "modern").

***

## 🎨 Themes

Themes define the **visual style** of a presentation. While templates handle the layout and schema of slides, themes control the **look and feel** (colors, fonts, branding).

There are two types of themes:

* **Built-in Themes**: Predefined styles you can use immediately without customization.
* **Custom Themes**: Fully configurable styles you can create and manage from the dashboard at [settings](https://presenton.ai/theme).

All available built-in themes:

* **edge-yellow**
* **mint-blue**
* **light-rose**
* **professional-blue**
* **professional-dark**

When editing or creating a theme, the following elements are customizable:

#### Accent Colors

* **Primary Accent Color** – Used for highlights, headings, and key UI elements.
* **Secondary Accent Color** – Supporting accent for variation.
* **Tertiary Accent Color** – Optional additional accent.

#### Background Colors

* **Page Background Color** – The overall background of the slide.
* **Card Background Color** – Background of slide content blocks or cards.

#### Text Colors

* **Text Heading Color** – Applied to titles, headings, and key emphasis text.
* **Text Body Color** – Applied to main body text, descriptions, and paragraphs.

#### Fonts

* Font selection for text and body.

#### Branding

* Upload and set your **Logo** to apply branding consistently across slides.

<RequestExample>
  ```bash theme={null}
  curl -X POST https://api.presenton.ai/api/v3/presentation/generate \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer sk-presenton-xxxxx" \
    -d '{
      "content": "Introduction to Machine Learning",
      "n_slides": 5,
      "language": "English",
      "standard_template": "general",
      "theme": "edge-yellow",
      "export_as": "pdf"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```bash theme={null}
  {
    "presentation_id": "d3000f96-096c-4768-b67b-e99aed029b57",
    "path": "https://api.presenton.ai/static/user_data/d3000f96-096c-4768-b67b-e99aed029b57/Introduction_to_Machine_Learning.pdf",
    "edit_path": "https://presenton.ai/presentation?id=d3000f96-096c-4768-b67b-e99aed029b57",
    "credits_consumed": 5
  }
  ```
</ResponseExample>
