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.
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.
Copy a wheel file to
vendors/folder in your Sphinx project folder (a folder withconf.py). The wheel folder name is only recommendation.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.tomldependencies):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
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.
Enable the theme.
html_theme = "sphinx_clarity_theme"
(Optional) Most visual and behavioral customization lives in
html_theme_options; some items (likehtml_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.
