Metadata-Version: 2.4
Name: doxtr-epub-theme-core
Version: 0.1.1
Summary: Core accessible Sphinx EPUB3 theme powered by doxtr-theme-core with WCAG contrast and light/dark mode support.
Author: Jens Frey
Project-URL: Homepage, https://github.com/doxtr/doxtr-epub-theme-core
Project-URL: Repository, https://github.com/doxtr/doxtr-epub-theme-core
Project-URL: Issues, https://github.com/doxtr/doxtr-epub-theme-core/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.2.0
Requires-Dist: Sphinx>=7.0
Requires-Dist: Pillow>=10.0
Dynamic: license-file

# doxtr-epub-theme-core

Core accessible Sphinx EPUB3 theme powered by `doxtr-theme-core`.

## Features

- Consumes brand specs (`ColorPalette`, `FontSpec`, `BrandConfig`) from `doxtr-theme-core`
- Emits EPUB3-compatible hex CSS variables (`light`, `dark`, and `auto` modes via `prefers-color-scheme` and reader dark-mode selectors)
- Enforces WCAG contrast across semantic palette tokens, Pygments syntax CSS, and SVG covers
- Automatically pairs user `-dark` / `_dark` assets or adapts bright raster/SVG diagrams while preserving strict XHTML validity
- Generates an accessible SVG EPUB cover with shared `doxtr-theme-core` icon fallback

## Installation

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

## Usage

```python
extensions = ["doxtr_epub_theme_core"]
epub_theme = "doxtr_epub_core"
```
