Metadata-Version: 2.4
Name: doxtr-epub-theme-aubergine
Version: 0.3.1
Summary: Aubergine Sphinx EPUB3 theme featuring light/dark Aubergine palettes and seamless doxtr-theme-core integration.
Author: Jens Frey
Project-URL: Homepage, https://github.com/doxtr/doxtr-epub-theme-aubergine
Project-URL: Repository, https://github.com/doxtr/doxtr-epub-theme-aubergine
Project-URL: Issues, https://github.com/doxtr/doxtr-epub-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: Framework :: Sphinx :: Theme
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.5.0
Requires-Dist: doxtr-theme-aubergine>=0.1.1
Requires-Dist: doxtr-epub-theme-core>=0.4.0
Requires-Dist: Sphinx>=7.0
Dynamic: license-file

# doxtr-epub-theme-aubergine

Default Aubergine Sphinx EPUB3 theme powered by `doxtr-theme-core`, `doxtr-theme-aubergine`, and `doxtr-epub-theme-core`.

## Features

- Aubergine light & dark palette (deep black, cobalt blue, warm orange, aubergine violet)
- Automatic WCAG AA contrast enforcement across prose, admonitions, tables, code blocks, Pygments tokens, and SVG cover typography
- Supports `light`, `dark`, and `auto` EPUB3 color schemes with `-dark` image pairing and automatic light/dark asset adaptation
- Auto-selected whenever `doxtr_theme_aubergine` is configured in `conf.py`

## Installation

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

## Usage

### Auto-Loading for EPUB Builds (No `extensions` Entry Needed)

```python
# conf.py
epub_theme = "doxtr_epub_aubergine"  # or "doxtr_epub_theme_aubergine"
```

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

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

Or standalone extension activation:

```python
extensions = ["doxtr_epub_theme_aubergine"]
epub_theme = "doxtr_epub_aubergine"
```

## Mixing & Matching Themes per Format

Use Aubergine EPUB alongside another HTML or PDF theme — for instance `doxtr_core` HTML + `doxtr_pdf_theme_core` PDF + Aubergine EPUB:

```python
extensions = ["doxtr_pdf_theme_core"]
html_theme = "doxtr_core"
epub_theme = "doxtr_epub_aubergine"
```

Or use Aubergine colors across formats while overriding individual layouts:

```python
extensions = ["doxtr_theme_aubergine"]
epub_theme = "doxtr_epub_core"  # Core EPUB layout styled with Aubergine colors
```

## Preview

Rendered from [doxamples](https://github.com/doxtr/doxamples).

| Light Mode | Dark Mode |
| --- | --- |
| ![Aubergine EPUB Light](previews/doxamples-epub-aubergine-light.png) | ![Aubergine EPUB Dark](previews/doxamples-epub-aubergine-dark.png) |

- **EPUB3 (Auto light/dark):** [`previews/doxamples-epub-aubergine.epub`](previews/doxamples-epub-aubergine.epub)

