Metadata-Version: 2.4
Name: doxtr-pdf-theme-aubergine
Version: 0.1.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.1.0
Requires-Dist: doxtr-theme-aubergine>=0.1.0
Requires-Dist: doxtr-pdf-theme-core>=2.0.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

In your Sphinx `conf.py`:

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

That's it! The theme loads the core automatically and applies all styling.

## 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 | Color | Hex |
|------|-------|-----|
| Primary (structural) | Aubergine | `#772953` |
| Secondary (accent) | Orange | `#E95420` |
| Info | Blue | `#24598F` |
| Success | Green | `#0E8420` |
| Warning | Amber | `#CC7900` |
| Danger | Red | `#C7162B` |
| Background (dark) | Dark Aubergine | `#2C001E` |
| Neutral | Warm Grey | `#AEA79F` |

## Font Stack

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

## Requirements

- Python >= 3.8
- `doxtr-pdf-theme-core` >= 0.1.10
- LuaLaTeX (set automatically by the core)
- Ubuntu font family (pre-installed in the Doxtr Docker image)

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