pygments-styles
A curated collection of Pygments styles based on VS Code themes.
What it is and what it does
pygments-styles is a theme package that extends pygments with a curated set of color schemes derived from VS Code themes. It's designed to make code blocks in documentation and other tools visually consistent with modern editor aesthetics. The package depends only on pygments and supports Python 3.9 through 3.14, making it compatible with current Python versions.
You install it alongside pygments and then reference its themes when configuring Sphinx, MkDocs, or other tools that use pygments for syntax highlighting. The package is actively maintained with recent commits and carries no known security vulnerabilities, making it a low-risk addition to documentation toolchains.
Use it for:
- Configure Sphinx documentation projects to use VS Code-inspired syntax highlighting themes for code examples
- Apply consistent, modern color schemes to MkDocs sites without manually defining custom Pygments styles
- Enhance code block appearance in static site generators that rely on Pygments for syntax coloring
- Standardize syntax highlighting across multiple documentation projects using familiar VS Code aesthetics
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a curated collection of Pygments syntax-highlighting color schemes based on VS Code themes for use in documentation and code display tools.
Yes, if you use Sphinx or MkDocs and want modern syntax highlighting without manual theme configuration. The package is lightweight, actively maintained, has no vulnerabilities, and carries a permissive license. Install it only if you actually need one of its themes; it adds no value if you're not using Pygments-based documentation tools.
Install
pygments-styles on PyPI
pip
pip install pygments-stylesuv
uv add pygments-stylespoetry
poetry add pygments-stylesInstalling pygments-styles
Before you install
Low friction install with a single runtime dependency on pygments. Active maintenance with recent commits and no known vulnerabilities.
License in practice
BSD-3-Clause is permissive; you can use, modify, and distribute this package with minimal restrictions, provided you include the license notice.
Quickstart
pip install pygments-styles
from pygments.styles import get_style_by_name
style = get_style_by_name('vs-code-theme-name')
Verify before relying
- How many distinct VS Code-based themes are included in the collection
- Whether themes are automatically synchronized with VS Code upstream or manually curated
- Integration complexity with Sphinx and MkDocs beyond the linked guides
Package facts
| License | BSD-3-Clause (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — pygments |
| Maintenance | actively maintained — 283 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 185,079/month — #10,016 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pygments_styles-0.3.0-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
accessible-pygmentsProvides a collection of WCAG 2.1-compliant…
permissive · top 5,000 on PyPI
jupyterlab-pygmentsProvides a Pygments syntax highlighting theme…
permissive · top 1,000 on PyPI
ansible-pygmentsProvides a Pygments lexer and style for…
permissive · top 15,000 on PyPI
fluent.pygmentsAdds syntax highlighting support for Fluent…
permissive · top 15,000 on PyPI
sphinx-basic-ngProvides a modern, minimal Sphinx theme…
permissive · top 5,000 on PyPI
ipython-pygments-lexersProvides Pygments syntax highlighters for…
permissive · top 1,000 on PyPI
types-PygmentsProvides type hints for the Pygments syntax…
permissive · top 5,000 on PyPI
Pallets-Sphinx-ThemesProvides Sphinx themes styled for Pallets…
permissive · top 15,000 on PyPI
brand-ymlParses and manages brand guidelines from a YAML…
permissive · top 15,000 on PyPI