Quickstart#

This guide walks you through installing and enabling Clarity Theme for Sphinx so you can start building fast, attractive documentation with the Sphinx static site generator.

Obtaining the theme#

The theme is distributed as a Python wheel file (.whl), the standard binary distribution format for Python packages. A wheel file is named like sphinx_<name>_theme-<version>-py-none-any.whl and contains the theme’s HTML, CSS, JavaScript, and Python code.

Payments and wheel file delivery are handled by Lemon Squeezy, a third‑party provider.

  1. After successful payment, you will be redirected to an order page with a URL like https://app.lemonsqueezy.com/my-orders/<order-id>.

  2. Download the wheel file from the order page to your computer. Lemon Squeezy download

Installation#

Install the theme wheel file using your preferred Python package manager - we will describe pip and uv. Theme files and dependencies are placed where Sphinx can automatically find them.

  1. Copy a wheel file to vendors/ folder in your Sphinx project folder (a folder with conf.py). The wheel folder name is only recommendation.

  2. Add the wheel as a dependency to virtual environment or Python project where do you manage Sphinx itself.

    For pip, the most common package installer:

    pip install vendors/sphinx_clarity_theme-<version>-py3-none-any.whl
    

    For uv, a fast Python package manager:

    Option 1: Add to existing project (modifies pyproject.toml dependencies):

    uv add vendors/sphinx_clarity_theme-<version>-py3-none-any.whl
    

    Option 2: Install without adding to project:

    uv pip install vendors/sphinx_clarity_theme-<version>-py3-none-any.whl
    
  3. Verify installation. Check that the theme was installed successfully. You should see version information and the installation location.

    pip show sphinx-clarity-theme
    
    uv pip show sphinx-clarity-theme
    

Configuration#

Configure the theme in your Sphinx conf.py.

  1. Enable the theme.

    html_theme = "sphinx_clarity_theme"
    
  2. (Optional) Most visual and behavioral customization lives in html_theme_options; some items (like html_favicon) use standard Sphinx variables.

    html_favicon = "favicon.svg"
    html_theme_options = {
       # See later for customization options
    }
    

Rebuild your docs and you should see Clarity Theme for Sphinx applied.