A clean Sphinx theme with phosphor-green / UV-violet dual-accent color system
Reason this release was yanked:
superseded by 1.3.0.0
Project description
Clarity
A clean, modern Sphinx theme with a phosphor-green / UV-violet dual-accent palette and a built-in AI documentation assistant.
Features
- Dark / light / system theme toggle, remembered across visits
- Dual-accent palette -- phosphor-green in dark mode, UV-violet in light
- Three-column layout -- sidebar, content, on-this-page table of contents
- Responsive -- works on desktop, tablet, and mobile
- Keyboard navigation -- arrow keys for prev/next,
/to focus search - Text size controls -- readers can scale the article 75 % -- 150 %
- Language-tagged code blocks with Pygments-styled syntax colors
- Dual logo support -- different images for dark and light modes
- AI assistant -- page-aware chatbot with
/gotonavigation and/readpage-summarization commands, powered by your own OpenRouter key - GDPR / ePrivacy consent -- built-in banner, no third-party plugins, nothing stored until the reader accepts
Install
pip install sphinx-clarity
Quick start
Create a new Sphinx project (if you do not already have one):
mkdir docs && cd docs
sphinx-quickstart
Edit conf.py to use Clarity:
html_theme = "clarity"
html_theme_options = {
"default_theme": "system", # "dark", "light", or "system"
"font_stack": "default", # "default" or "system" (no remote fonts)
"navigation_with_keys": True,
"show_toc_level": 2,
}
Build and serve locally:
sphinx-build -b html . _build/html
python -m http.server -d _build/html 8000
Open http://localhost:8000.
Optional: enable the AI assistant
Add your OpenRouter settings to conf.py:
html_theme_options = {
# ...
"chatbot_enabled": True,
"chatbot_model": "openai/gpt-oss-120b:free",
}
The reader supplies their own OpenRouter key in the chat panel -- it is
stored locally in the browser, never sent to you. Set
"chatbot_enabled": False to ship the theme without the assistant.
Add a logo
Drop logo files into your Sphinx _static/ folder and reference them:
html_theme_options = {
# ...
"light_logo": "logo-light.svg",
"dark_logo": "logo-dark.svg",
}
Documentation
Full documentation -- configuration reference, privacy details, chatbot
setup -- is published at the project docs site, and the sources live
under docs/source/ on
GitHub
if you prefer to browse them there.
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_clarity-1.2.2.tar.gz.
File metadata
- Download URL: sphinx_clarity-1.2.2.tar.gz
- Upload date:
- Size: 68.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cc24e1fa56a93b0edd3e1c22dd638940e761fdeb77764aafd6d1a422efc1183
|
|
| MD5 |
cca13244b4768bf07b8cfbb9df2d9589
|
|
| BLAKE2b-256 |
169dbd70714e40556b7062ee5f16d70fc02bed32e1f1ddb51420dae066532498
|
Provenance
The following attestation bundles were made for sphinx_clarity-1.2.2.tar.gz:
Publisher:
ci.yml on relicloops/clarity
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_clarity-1.2.2.tar.gz -
Subject digest:
6cc24e1fa56a93b0edd3e1c22dd638940e761fdeb77764aafd6d1a422efc1183 - Sigstore transparency entry: 1297552350
- Sigstore integration time:
-
Permalink:
relicloops/clarity@05ddb685754aa34f05fc1af593fd797de5807596 -
Branch / Tag:
refs/tags/v1.2.2 - Owner: https://github.com/relicloops
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@05ddb685754aa34f05fc1af593fd797de5807596 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sphinx_clarity-1.2.2-py3-none-any.whl.
File metadata
- Download URL: sphinx_clarity-1.2.2-py3-none-any.whl
- Upload date:
- Size: 51.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
527e0fdf8c40b8238ce310a26bb2000d33ed37f19661d9d8044cd4d691659ea8
|
|
| MD5 |
1d0e9b453ecaa351667c8c105452b294
|
|
| BLAKE2b-256 |
6b2877ccb9e4b82cf30ac5ae723bcbb403d3796111c5f2a41415c70d4e4678a0
|
Provenance
The following attestation bundles were made for sphinx_clarity-1.2.2-py3-none-any.whl:
Publisher:
ci.yml on relicloops/clarity
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_clarity-1.2.2-py3-none-any.whl -
Subject digest:
527e0fdf8c40b8238ce310a26bb2000d33ed37f19661d9d8044cd4d691659ea8 - Sigstore transparency entry: 1297552420
- Sigstore integration time:
-
Permalink:
relicloops/clarity@05ddb685754aa34f05fc1af593fd797de5807596 -
Branch / Tag:
refs/tags/v1.2.2 - Owner: https://github.com/relicloops
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@05ddb685754aa34f05fc1af593fd797de5807596 -
Trigger Event:
push
-
Statement type: