Skip to main content

A modern Sphinx documentation theme with Tailwind CSS and Alpine.js

Project description

Sphinx Lumina Theme

PyPI version License Docs

A modern Sphinx theme that treats documentation as a first-class product experience. Clean typography, responsive layout, dark mode, and instant search — out of the box.

Sphinx Lumina Theme — Quick tour showing light and dark mode, sidebar navigation, content area with code blocks, and table of contents

Documentation

Features

  • Dark mode — follows system preference with manual toggle, no flash of unstyled content
  • Instant search — Pagefind-powered search with keyboard navigation (⌘K)
  • Responsive layout — mobile-first with collapsible sidebar and sticky table of contents
  • MyST Markdown — write docs in Markdown with full Sphinx directive support
  • Interactive HTTP API — OpenAPI endpoint docs with live "Try it out" panels and curl copy buttons; no Swagger UI needed
  • Code blocks — syntax highlighting with one-click copy
  • Self-hosted fonts — Source Sans 3 and JetBrains Mono, no external CDN calls
  • Version switcher — dropdown to navigate between documentation versions, loaded from a JSON URL
  • Customizable — accent colors, navigation links, social links, and more via conf.py

Quick Start

Requires Python 3.12+ and Sphinx 8.0+.

pip install sphinx-lumina-theme

or with uv:

uv add sphinx-lumina-theme

Set the theme in your conf.py:

html_theme = "lumina"

Build your docs:

uv run sphinx-build docs docs/_build/html

That's it. For MyST Markdown setup and configuration options, see the Getting Started guide.

Configuration

All options go in html_theme_options in your conf.py. Every option has a sensible default — you only need to set what you want to change.

html_theme_options = {
    "accent_color": "#10b981",
    "dark_mode_default": "auto",       # "auto", "light", or "dark"
    "nav_links": "Guide=/guide, API=/api",
    "source_repository": "https://github.com/you/your-repo",
    "social_links": "github=https://github.com/you",
    "api_base_url": "https://api.example.com/v1",  # enables interactive API features
}

See the full Configuration reference for all available options.

Development

git clone https://github.com/r4sky0/sphinx-lumina-theme.git
cd sphinx-lumina-theme
pnpm install        # JS dependencies
uv sync --dev       # Python dependencies
pnpm run build      # Build CSS + JS assets
uv run pytest       # Run tests

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_lumina_theme-1.31.1.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_lumina_theme-1.31.1-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file sphinx_lumina_theme-1.31.1.tar.gz.

File metadata

  • Download URL: sphinx_lumina_theme-1.31.1.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for sphinx_lumina_theme-1.31.1.tar.gz
Algorithm Hash digest
SHA256 e936b2ada8c407c736178699b1ebb9387cca692d9ef47eba5ad1c4d04f24cf03
MD5 afeac4ca5d494ddc116dc9b8ec8fcaa0
BLAKE2b-256 97ff34b5c052b1a8b2b06dbfce3e0ad31facdeaffd4fb7f0f91de01ec26f64e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_lumina_theme-1.31.1.tar.gz:

Publisher: release.yml on r4sky0/sphinx-lumina-theme

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_lumina_theme-1.31.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_lumina_theme-1.31.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c77a82be2afe4739601c6c8f96c9a2a46f38828d3c39a2a7a07049503b16fadb
MD5 86c6b0255d7120a959d521c963d61acf
BLAKE2b-256 875b9f31931b149a9d731ec5cc01c054f09131c0e7ebdb5a7a80aee57709ab24

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_lumina_theme-1.31.1-py3-none-any.whl:

Publisher: release.yml on r4sky0/sphinx-lumina-theme

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page