Metadata-Version: 2.4
Name: doxtr-pdf-theme-aubergine
Version: 0.3.0
Summary: A warm, professional PDF theme for Doxtr featuring aubergine and orange tones with the Ubuntu font family.
Author: Jens Frey
Project-URL: Homepage, https://github.com/doxtr/doxtr-pdf-theme-aubergine
Project-URL: Repository, https://github.com/doxtr/doxtr-pdf-theme-aubergine
Project-URL: Issues, https://github.com/doxtr/doxtr-pdf-theme-aubergine/issues
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Framework :: Sphinx :: Extension
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Documentation :: Sphinx
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: doxtr-theme-core>=0.4.0
Requires-Dist: doxtr-theme-aubergine>=0.1.1
Requires-Dist: doxtr-pdf-theme-core>=2.1.0
Dynamic: license-file

# Doxtr PDF Theme — Aubergine

A warm, professional PDF theme for [doxtr-pdf-theme-core](https://github.com/doxtr/doxtr-pdf-theme-core) featuring deep aubergine tones, vibrant orange accents, and the Ubuntu font family.

This theme also serves as the **reference implementation** for building child themes. See the [core README](https://github.com/doxtr/doxtr-pdf-theme-core#create-a-child-theme--walkthrough) for a complete walkthrough on creating your own theme.

## Installation

```bash
pip install doxtr-pdf-theme-aubergine
```

Or install from source:

```bash
pip install -e /path/to/doxtr_pdf_theme_aubergine
```

## Usage

### Standalone PDF (Keep Any HTML/EPUB Theme)

In your Sphinx `conf.py`:

```python
extensions = [
    # ... your other extensions ...
    "doxtr_pdf_theme_aubergine",
]
```

This applies Aubergine LaTeX/PDF styling (via `doxtr-pdf-theme-core`) without changing your `html_theme` or `epub_theme`. For example, you can use `pydata_sphinx_theme` for HTML and Aubergine for PDF:

```python
extensions = ["doxtr_pdf_theme_aubergine"]
html_theme = "pydata_sphinx_theme"
```

### Multi-Format Aubergine Orchestration (HTML + PDF + EPUB)

To style HTML, PDF, and EPUB together with Aubergine:

```python
extensions = ["doxtr_theme_aubergine"]
```

## Sharing One Color Theme Across Different Layout Themes

Pair `doxtr_pdf_theme_aubergine` with another HTML or EPUB layout (like `doxtr_core` / `doxtr_epub_core`) while driving all formats from one `doxtr_semantic_palette` or `ThemeSpec`:

```python
extensions = ["doxtr_pdf_theme_aubergine"]
html_theme = "doxtr_core"
epub_theme = "doxtr_epub_core"
doxtr_semantic_palette = {
    "primary": "#0F4C81",
    "secondary": "#1D4ED8",
    "accent": "#EA580C",
    "dark": {"primary": "#93C5FD", "page": "#0F172A"},
}
```

Or keep the Aubergine brand palette across formats while swapping only the HTML/EPUB layout:

```python
extensions = ["doxtr_theme_aubergine"]
html_theme = "doxtr_core"
```

## Customization

You can override any setting in your `conf.py`. The merge order is:

```
Core Defaults → Aubergine Theme Defaults → Your conf.py
```

### Example: Change the title page subtitle

```python
doxtr_title_page = {
    'subtitle': 'My Custom Subtitle',
}
```

### Example: Override admonition colors

```python
doxtr_admonitions = {
    'note': {
        'title_background_color': '#0066CC',
    },
}
```

### Example: Use a different monospace font

```python
doxtr_mono_font = 'Ubuntu Sans Mono'
```

### Example: Activate draft watermark

```python
doxtr_draft = {
    'text': 'DRAFT - {date} - V: {project_version}',
}
```

## Color Palette

| Role | Light | Dark |
|------|-------|------|
| Primary | `#5B21B6` | `#C4B5FD` |
| Secondary | `#1D4ED8` | `#60A5FA` |
| Accent | `#C2410C` | `#FB923C` |
| Info | `#1D4ED8` | `#60A5FA` |
| Success | `#15803D` | `#4ADE80` |
| Warning | `#B45309` | `#FBBF24` |
| Danger | `#B91C1C` | `#F87171` |
| Page background | `#FFFFFF` | `#111015` |
| Title cover background | `#2C001E` | `#1A1120` |
| Neutral | `#AEA79F` | `#A8A0B2` |

## Font Stack

| Purpose | Font |
|---------|------|
| Body text | Ubuntu Light (via Ubuntu family with weight mapping) |
| Headings / Sans | Ubuntu |
| Code / Monospace | Ubuntu Mono |

## Requirements

- Python >= 3.10
- `doxtr-theme-core` >= 0.1.0
- `doxtr-theme-aubergine` >= 0.1.0
- `doxtr-pdf-theme-core` >= 2.0.0
- LuaLaTeX (set automatically by the core)
- Ubuntu font family (pre-installed in the Doxtr Reactor container)

## Creating Your Own Theme

This package demonstrates the full pattern. The key ingredients are:

1. Call `core_setup(app)` to initialize the engine
2. Set `doxtr_semantic_palette` — 6 colors that drive the entire document
3. Set `doxtr_main_font` / `doxtr_sans_font` / `doxtr_mono_font`
4. Set `doxtr_theme_defaults` — per-element styling overrides
5. Optionally provide `.tex_t` files via `doxtr_theme_style_paths`

For the complete guide with examples, see:
**[Create a Child Theme — Walkthrough](https://github.com/doxtr/doxtr-pdf-theme-core#create-a-child-theme--walkthrough)**

## License

MIT
