> ## 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 theme colors

> Generates a complete theme color palette from optional seed colors. Provide any combination of `primary`, `background`, `accent_1`, `accent_2`, `text_1`, and `text_2`; missing colors are derived automatically. The response contains presentation-ready colors for backgrounds, text, cards, strokes, and graph series.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v3/theme/generate
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.presenton.ai
security: []
paths:
  /api/v3/theme/generate:
    post:
      tags:
        - V3 Theme
      summary: Generate theme colors
      description: >-
        Generates a complete theme color palette from optional seed colors.
        Provide any combination of `primary`, `background`, `accent_1`,
        `accent_2`, `text_1`, and `text_2`; missing colors are derived
        automatically. The response contains presentation-ready colors for
        backgrounds, text, cards, strokes, and graph series.
      operationId: generate_theme_v3_api_v3_theme_generate_post
      parameters:
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
            description: Bearer JWT or API Key
            title: Authorization
          description: Bearer JWT or API Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateThemeRequestV3'
      responses:
        '200':
          description: Theme color palette generated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThemeData'
        '401':
          description: Authentication is required.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GenerateThemeRequestV3:
      properties:
        primary:
          anyOf:
            - type: string
            - type: 'null'
          title: Primary
        background:
          anyOf:
            - type: string
            - type: 'null'
          title: Background
        accent_1:
          anyOf:
            - type: string
            - type: 'null'
          title: Accent 1
        accent_2:
          anyOf:
            - type: string
            - type: 'null'
          title: Accent 2
        text_1:
          anyOf:
            - type: string
            - type: 'null'
          title: Text 1
        text_2:
          anyOf:
            - type: string
            - type: 'null'
          title: Text 2
      type: object
      title: GenerateThemeRequestV3
    ThemeData:
      properties:
        primary:
          type: string
          title: Primary
        background:
          type: string
          title: Background
        card:
          type: string
          title: Card
        stroke:
          type: string
          title: Stroke
        primary_text:
          type: string
          title: Primary Text
        background_text:
          type: string
          title: Background Text
        graph_0:
          type: string
          title: Graph 0
        graph_1:
          type: string
          title: Graph 1
        graph_2:
          type: string
          title: Graph 2
        graph_3:
          type: string
          title: Graph 3
        graph_4:
          type: string
          title: Graph 4
        graph_5:
          type: string
          title: Graph 5
        graph_6:
          type: string
          title: Graph 6
        graph_7:
          type: string
          title: Graph 7
        graph_8:
          type: string
          title: Graph 8
        graph_9:
          type: string
          title: Graph 9
      type: object
      required:
        - primary
        - background
        - card
        - stroke
        - primary_text
        - background_text
        - graph_0
        - graph_1
        - graph_2
        - graph_3
        - graph_4
        - graph_5
        - graph_6
        - graph_7
        - graph_8
        - graph_9
      title: ThemeData
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````