sphinx-daisyui
A Sphinx theme drawn with daisyUI 5 and
Tailwind CSS 4. It has its own html_theme_options, named and shaped after those of
pydata-sphinx-theme where it has the same setting.
A site coming from Furo or pydata-sphinx-theme reconfigures, and
the layout option can give it a page arranged like either.
Documentation: https://samueljennings.github.io/sphinx-daisyui/ (the site is built with the theme).
Why
Most Sphinx themes are drawn with Bootstrap or with a stylesheet of their own. daisyUI gives a component library and 35 ready-made colour themes on Tailwind's tokens, each with a light and a dark variant. A theme built on it gets every one of those themes for free, and a site that already uses daisyUI elsewhere gets documentation that looks like the rest of it.
Status
Beta. v0.1.0 is the first release, and options may still change before 1.0. It has:
- the page layout, rearranged with the
layoutoption and filled from component lists - site navigation, breadcrumbs, header links and the On this page list
- a search dialog, a version switcher, and a light, dark and named-theme picker
- icon links, and edit and view buttons for GitHub, GitLab and Bitbucket
- styles for Sphinx's page body and the sphinx-design and sphinx-copybutton markup
The changelog lists each change.
Usage
pip install sphinx-daisyui
# conf.py
html_theme = "daisyui"
The page-body styles on their own
A site that already loads daisyUI 5 can show Sphinx's pages inside its own pages, from the
.fjson files of sphinx-build -b json for example, and style their bodies with
_static/styles/sphinx-daisyui-content.css alone. Any build with html_theme = "daisyui" writes
it. Put the class daisy-sphinx-content on the element that holds the page body, and
daisy-sphinx-escape on your own markup inside it.
The page-body styles outside the theme
lists the custom properties that set the reading width and the page's surface.
Scope & philosophy
What it is
- A Sphinx HTML theme drawn with daisyUI 5.
- A theme with its own options, which follow pydata-sphinx-theme's names and shapes where it has the same setting. A site coming from Furo or pydata-sphinx-theme reconfigures.
- Every colour comes from a daisyUI token, so any daisyUI theme works, in light and dark.
- The page layout can be rearranged with one option, and each part of the page is filled from a list of components.
What it is not
- A collection of new directives or roles. It styles what Sphinx and common extensions such as sphinx-design already write.
- A Bootstrap compatibility layer. Markup written for Bootstrap is not restyled.
- Something that needs Node to use. The compiled stylesheet ships in the package. A site changes the look with daisyUI's CSS variables in its own static files.
When two goals conflict, one name and one shape for each option wins over resemblance to another theme.
Prior art
- Furo and pydata-sphinx-theme are the themes most modern Sphinx sites use. pydata-sphinx-theme is drawn with Bootstrap 5. Furo has a stylesheet of its own. This theme borrows their page layout and the names of pydata-sphinx-theme's options, and has options of its own.
- Shibuya and sphinxawesome-theme are modern themes with their own options. sphinxawesome-theme is built on Tailwind.
- None of them uses daisyUI.
Contributing
See CONTRIBUTING.md.
License
MIT. See LICENSE.
Metadata
Release files for sphinx-daisyui 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sphinx_daisyui-0.2.0.tar.gz | 116.1 kB | With provenance | Details for sphinx_daisyui-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphinx_daisyui-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for sphinx_daisyui-0.2.0-py3-none-any.whl |
Total release size: 228.3 kB
Release files / sphinx_daisyui-0.2.0.tar.gz
| Download URL | sphinx_daisyui-0.2.0.tar.gz |
|---|---|
| Size | 116.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f4671007febe13adc1a2d5414158e248032222afac23c94a5d0ffeb0876ce5b
|
|
BLAKE2b-256 checksum How to use checksums |
ec0b7573ef57017d50f7550c814276b3921ff57fb81acf86a70f92589d90e39e
|
| 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 22, 2026.
Transparency logRelease files / sphinx_daisyui-0.2.0-py3-none-any.whl
| Download URL | sphinx_daisyui-0.2.0-py3-none-any.whl |
|---|---|
| Size | 112.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
166a1e64719376d21b8e6417f9e223cc37de22893f9c274e03d92e34c75a091c
|
|
BLAKE2b-256 checksum How to use checksums |
071bd5a71b0550af74586b7866c9f2b2f4f3ab8480c0afdce6c8bd4f7ce842f5
|
| 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 22, 2026.
Transparency logSecurity for sphinx-daisyui 0.2.0
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.
Attestation for sphinx_daisyui-0.2.0.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 22, 2026.
Transparency logA 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.