GitPedia

Github syntax theme generator

Uses a prettylights theme object to generate syntax themes for multiple platforms

From primer·Updated November 18, 2025·View on GitHub·
·Archived

> The GitHub syntax theme generator will generate themes for multiple platforms based on the GitHub syntax theme. The project is written primarily in JavaScript, distributed under the MIT License license, first published in 2016. Key topics include: github, syntax-theme.

Latest release: v0.1.0
June 19, 2016View Changelog →

GitHub syntax theme generators

NPM version
Build Status

The GitHub syntax theme generator will generate themes for multiple platforms based on the GitHub syntax theme.

Install

All of the built themes in this package are distributed at separate repositories. It's recommended that you install one of these if you're looking for a specific theme.

CSS

The CSS syntax theme is based on a custom syntax highlighter in use by GitHub. The prefixes to the classes are .pl- for Prettylights.

Codemirror

The Codemirror syntax theme is generated by the codemirror adapter.

Atom

The Atom theme is built by apm converted from the TextMate theme.

TextMate

For TextMate or any other TextMate compatible editors, you can use the github-textmate-theme.

Development

Clone this repository and after npm install. Run

$ npm run build

This will run the script that will build all the themes. The themes are built from the json files in the lib/themes folder.

Adapters

The theme adapters are located in ./lib/adapters/ directory. Each one will complete a specific task to build that theme.

Contributing

If you would like to see the theme compiled for another platform, we welcome pull requests.

License

MIT © GitHub

Contributors

Showing top 8 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from primer/github-syntax-theme-generator via the GitHub API.Last fetched: 6/28/2026