skillfed

pygments-styles

A curated collection of Pygments styles based on VS Code themes.

pygments-styles v0.3.0 185.1K downloads/30d#10,016 on PyPI8
Permissive license BSD-3-Clause Active released

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-styles

uv

uv add pygments-styles

poetry

poetry add pygments-styles

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: EducationLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Utilities

Tags

pygments color schemessyntax highlighting themesvs code pygments stylescode highlighting themesdocumentation syntax colorssphinx highlighting themesmkdocs syntax styles
syntax-highlightingdocumentation-toolsthemes

More Utilities packages