Skip to main content

doxtr-theme-core

Universal multi-target theme foundation for the doxtr Sphinx ecosystem.

Provides shared primitives for HTML (doxtr-html-theme-core), PDF (doxtr-pdf-theme-core), EPUB (doxtr-epub-theme-core), brand suites (doxtr-theme-aubergine), Confluence, and future renderers:

  • Typed ThemeSpec, ColorPalette, FontSpec, and BrandConfig contracts
  • dd: dynamic color expression engine + WCAG AA/AAA contrast helpers + CSS token emission
  • Unified light/dark mode state (doxtr_color_scheme / doxtr_dark_mode) and _dark asset swapping
  • Unified font registration (LaTeX + @font-face CSS stacks)
  • Universal .. stylebox:: directive (HTML, LaTeX, Confluence)
  • Brand-to-renderer orchestration (setup_brand_theme, activate_brand_theme) with automatic -core fallback and -user renderer compatibility
  • AI authoring agent style guidance (get_ai_style_guidance)

Loading Themes

doxtr-theme-core supports both Sphinx's native theme entry points (no extensions needed for HTML/EPUB) and full multi-format brand orchestration:

  • Single-format auto-loading (html_theme / epub_theme):
    # conf.py — works just like pydata_sphinx_theme
    html_theme = "doxtr_core"            # or "doxtr_aubergine"
    epub_theme = "doxtr_epub_core"       # or "doxtr_epub_aubergine"
    
  • Multi-format brand suite (extensions) (needed when PDF/LaTeX output is also built, because Sphinx only auto-loads HTML/EPUB themes from html_theme / epub_theme):
    extensions = ["doxtr_theme_aubergine"]
    

Mixing & Matching Themes per Format

Use independent layout themes for HTML, PDF, and EPUB in conf.py:

# PyData HTML + Aubergine PDF + Core EPUB
extensions = ["doxtr_pdf_theme_aubergine"]
html_theme = "pydata_sphinx_theme"
epub_theme = "doxtr_epub_core"

Or override individual renderers on top of a brand suite:

extensions = ["doxtr_theme_aubergine"]
doxtr_html_renderer = "doxtr_html_theme_core"   # or html_theme = "doxtr_core" / "none" to skip
doxtr_pdf_renderer = "doxtr_pdf_theme_core"
doxtr_epub_renderer = "doxtr_epub_theme_core"

Sharing One Color Theme Across Different Layout Themes

Because color palettes and typography live cleanly in doxtr-theme-core, different HTML, PDF, and EPUB layout themes automatically share the same light/dark colors and dd: expressions:

# Core HTML + Aubergine PDF + Core EPUB, all styled with your brand colors
extensions = ["doxtr_theme_core", "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 share a reusable ThemeSpec brand (such as doxtr_theme_aubergine) while picking different layouts per format (html_theme = "doxtr_core", extensions = ["doxtr_theme_aubergine", "doxtr_pdf_theme_core"]).

Metadata

Release files for doxtr-theme-core 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for doxtr-theme-core 0.4.0
File Size Uploaded Provenance Actions
doxtr_theme_core-0.4.0.tar.gz 1.6 MB With provenance Details for doxtr_theme_core-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for doxtr-theme-core 0.4.0
File Interpreter ABI Platform Actions
doxtr_theme_core-0.4.0-py3-none-any.whl Python 3 none any Details for doxtr_theme_core-0.4.0-py3-none-any.whl

Total release size: 3.1 MB

Release files / doxtr_theme_core-0.4.0.tar.gz

Download URL doxtr_theme_core-0.4.0.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
a2e9990e26ec4909acf3cd31e1b5c907deabcdfc4fae8835702b65715957a9df
BLAKE2b-256 checksum
How to use checksums
f5f4666335fd2d377b5807c7388dadbb8b7d7597e44180e24ef4a790802959cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / doxtr_theme_core-0.4.0-py3-none-any.whl

Download URL doxtr_theme_core-0.4.0-py3-none-any.whl
Size 1.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1bed08e98d883c88efd854df4b9dd802b687b05e7eae71c1446b6aed76716fae
BLAKE2b-256 checksum
How to use checksums
913fe3087d4b78e3ae5a924a23d43f393a1af6b001138bd3e015a9678db198be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for doxtr-theme-core 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for doxtr_theme_core-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page