Metadata-Version: 2.4
Name: doxtr-html-theme-core
Version: 0.4.1
Summary: Core accessible Sphinx HTML theme powered by doxtr-theme-core and modern web standards.
Author: Jens Frey
Project-URL: Homepage, https://github.com/doxtr/doxtr-html-theme-core
Project-URL: Repository, https://github.com/doxtr/doxtr-html-theme-core
Project-URL: Issues, https://github.com/doxtr/doxtr-html-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.5.0
Requires-Dist: Sphinx>=7.0
Requires-Dist: Pillow>=10.0
Dynamic: license-file

# doxtr-html-theme-core

Base Sphinx HTML theme (`doxtr_core` / `doxtr_html_theme_core`) built on `doxtr-theme-core` with semantic design tokens (`--dd-*`), `light-dark()` + persistent color-scheme toggle, WCAG AA contrast guardrails, native `<dialog>` mobile drawer, CSS Anchor/Scrollspy TOC, copy-code commands, and cross-builder `.. stylebox::` styling.

## Installation

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

## Loading the Theme

Just like `pydata_sphinx_theme`, no `extensions` entry is needed for HTML builds:

```python
# conf.py
html_theme = "doxtr_core"  # or "doxtr_html_theme_core"
```

You can also list `"doxtr_html_theme_core"` in `extensions` explicitly or let `doxtr-theme-core` / `doxtr-theme-aubergine` orchestrate it for multi-format builds.

## Mixing & Matching per Format

Combine `doxtr_core` HTML with another PDF or EPUB theme (for example `doxtr_pdf_theme_aubergine`):

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

If another HTML theme (`html_theme = "pydata_sphinx_theme"`) is active alongside `doxtr_theme_*`, `doxtr-html-theme-core` leaves the active HTML theme untouched.

## Sharing One Color Theme Across Layouts

Pair `doxtr_core` HTML with a brand palette or custom `doxtr_semantic_palette` so HTML, PDF, and EPUB share identical colors even when using different layouts:

```python
extensions = ["doxtr_theme_aubergine"]  # provides Aubergine palette & PDF theme
html_theme = "doxtr_core"               # keep Core HTML layout in Aubergine colors
```

Or configure your own palette via `doxtr_semantic_palette`:

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

## Preview

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

| Light Mode | Dark Mode |
| --- | --- |
| ![Core HTML Light](previews/doxamples-html-core-light.png) | ![Core HTML Dark](previews/doxamples-html-core-dark.png) |

