Skip to main content

napari-sphinx-theme

Code style: Ruff

A Sphinx theme with the look and feel of napari based on the awesome pydata-sphinx-theme.

Description

Since the napari-sphinx-theme extends the pydata-sphinx-theme, the configurations and affordances provided by the PyData Sphinx Theme can be used within the napari docs.

Installation

After creating a virtual environment, install the theme in editable mode:

python -m pip install -e . --group dev

For local development with uv, the shortest path is:

uv sync

Theme development

Configuration options

Modify options in theme.conf to customize the pydata-sphinx-theme for napari.

Styling (CSS)

Styling settings and napari's custom CSS is found in the static/css/napari-sphinx-theme.css file.

The styling of code snippets is configured in napari_sphinx_theme/napari_code_theme.py.

Templates (HTML)

To modify page layouts, modify the html template files in the napari_sphinx_theme and napari_sphinx_theme/partials directories.

Build demo docs and theme changes

To build the demo site found in this repo, run from the repository root:

uv run make docs

To start a live preview that rebuilds when you edit the docs or theme files, run:

uv run make docs-live

The live server opens a browser automatically and watches both docs/ and napari_sphinx_theme/. CSS, templates, and theme configuration changes are displayed automatically without having to restart the live server.

Build a distribution wheel for local testing

To build a wheel locally, run:

uv run make build

Use the demo site to manually test changes to styles and page layouts.

The napari website

The napari website is built using the napari docs repo. The styling of the website is based on this theme. Install this theme as a dependency in the napari docs repo.

To modify the website's styling, minor changes to CSS can be made in the docs repo. More significant changes, such as those that may impact the entire website and docs, should be made here.

Metadata

Release files for napari-sphinx-theme 1.1.4

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

Source distribution (sdist)

Source distribution for napari-sphinx-theme 1.1.4
File Size Uploaded Provenance Actions
napari_sphinx_theme-1.1.4.tar.gz 101.7 kB With provenance Details for napari_sphinx_theme-1.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for napari-sphinx-theme 1.1.4
File Interpreter ABI Platform Actions
napari_sphinx_theme-1.1.4-py3-none-any.whl Python 3 none any Details for napari_sphinx_theme-1.1.4-py3-none-any.whl

Total release size: 122.4 kB

Release files / napari_sphinx_theme-1.1.4.tar.gz

Download URL napari_sphinx_theme-1.1.4.tar.gz
Size 101.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c4b952eee09be483b5c6f2f54ea78900aa64dc09f43f74fd2c6d331009aa5bd0
BLAKE2b-256 checksum
How to use checksums
2fe96dbf7a3039a33b486d769d1a2da789ed03bc868d478a65562c45c8c3a3b7
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 Nov 19, 2026.

Transparency log

Release files / napari_sphinx_theme-1.1.4-py3-none-any.whl

Download URL napari_sphinx_theme-1.1.4-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81ce1ccb9d3fb63b9bc7bb19f5dfd2e3286609d5b0d5bd231cd78c30fea63f37
BLAKE2b-256 checksum
How to use checksums
a7ee5168c7010edc748db75e1d655550b4fc81b61f0bbc9b922d4f80dd3abdad
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 Nov 19, 2026.

Transparency log

Security for napari-sphinx-theme 1.1.4

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 napari_sphinx_theme-1.1.4.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 Nov 19, 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