Skip to content

Theme Module

Overview

The Theme module manages document themes used for categorising and organising content. It provides functionality to load, retrieve, and manage themes from a configuration file.

Module Structure

theme/
├── theme.service.ts  # Service for theme management
└── themes.json       # Theme configuration data

Key Components

ThemeService

Provides theme management functionality:

  • Loading themes from configuration file
  • Retrieving themes by name
  • Getting all available themes
  • Converting themes to structured format

Theme Interface

Defines the structure of a theme:

  • id: Unique identifier
  • name: Theme name
  • description: Theme description