This repository lists a selection of additional themes for the Prism syntax highlighting library.
How to use a themeTo use one of the themes, just include the theme's CSS file in your page. Example:
<!DOCTYPE html> <html> <head> ... <link href="themes/prism-ghcolors.css" rel="stylesheet" /> </head> <body> ... <script src="prism.js"></script> </body> </html>
Adding new themesTo add your own theme/s, copy it/them into the
themesdirectory and add your theme/s to the list of available themes in this readme. The filenames for your themes have to be
themes/prism-<your-theme>.cssfor the theme itself and
screenshots/prism-<your-theme>.pngfor the screenshot.
The screenshot will be created for you by running the following command:
npm i && npx gulp screenshot
Before making a pull request, you can run the following command to verify that all checks pass:
Thank you so much for contributing!!