Installation

Install the pygments-styles as a Python package.


pygments-styles is a curated collection of Pygments styles, derived from VS Code themes and carefully adapted with manual improvements to ensure optimal compatibility with Pygments.

package install

pygments-styles is conveniently available as a Python package on PyPI and can be easily installed using pip and uv.

pip install pygments-styles
uv add pygments-styles

requirements.txt

If you’re tracking dependencies in requirements.txt, you can create a separate requirements file for your documentation, such as requirements-docs.txt, and add pygments-styles to that file to ensure it is included in your documentation build.

pyproject.toml

If you’re tracking dependencies in pyproject.toml, just put it in:

pyproject.toml
dependencies = [
    # ... other packages
    "pygments-styles",
]