Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

prism-themes

prismjs400.6kMIT1.9.0

Additional themes for the Prism syntax highlighting library.

readme

Prism themes

Build Status npm

This repository lists a selection of additional themes for the Prism syntax highlighting library.

How to use a theme

To 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 themes

To add your own theme/s, copy it/them into the themes directory 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>.css for the theme itself and screenshots/prism-<your-theme>.png for 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:

npm test

Thank you so much for contributing!!

Available themes

changelog

Prism Themes Changelog

1.9.0 (2021-09-16)

New Themes

Improved

  • Added issue and pull request templates (#132)
  • Added minified CSS (#136)
  • Added plugin overrides for One Dark and One Light (#134)

Fixed

  • VSC Dark+: Fixed light background and selection color (#138)
  • Standardize and increase the specificity of selectors for plugin overrides (#141)

1.8.0 (2021-07-19)

New Themes

  • Holi Theme (#121)
  • Gruvbox Light (#124)

Improved

  • Added changelog (#125)

1.7.0 (2021-05-04)

New Themes

Improved

  • Add Node.js main file (#116)
  • VS: Adding token.important class color (#99)

1.6.0 (2021-03-15)

New Themes

Improved

  • Update Coldark Themes (#107)
  • Update Coldark Themes - Minor color change (#109)
  • Remove main field from package.json (#114)

1.5.0 (2020-10-24)

New Themes

  • Coldark Cold (#105)
  • Coldark Dark (#105)
  • Coy without shadows (#91)

Fixed

  • VS Code Dark+: Fix colors for inserted and deleted in diffs (#106)

1.4.1 (2020-10-05)

Improved

  • Improve VS Code Dark Plus theme accuracy (#103)

1.4.0 (2020-04-04)

New Themes

  • VS Code Dark+ (#93)
  • Nord (#94)

1.3.0 (2019-10-23)

New Themes

  • Material Dark (#86)
  • Material Light (#86)
  • Material Oceanic (#86)

1.2.0 (2019-09-25)

New Themes

  • Dracula (#77)
  • Synthwave '84 (#81)
  • Shades of Purple (#83)

Fixed

  • Fixed font size for Line numbers plugin (#79)

1.1.0 (2019-03-26)

Fixed

  • Load Fira Mono font in Hopscotch theme over HTTPS (#76)

1.0.1 (2018-04-18)

Fixed

  • Add .travis.yml and make tests exit ok (#73)

1.0.0 (2018-04-18)

Initial release.

Themes:

  • CB
  • GHColors
  • Pojoaque
  • Xonokai
  • Ateliersulphurpool-light (#39)
  • Hopscotch (#49)
  • Atom Dark (#50)
  • Duotone Dark (#53)
  • Duotone Sea (#59)
  • Duotone Space (#59)
  • Duotone Earth (#59)
  • Duotone Forest (#59)
  • Duotone Light (#59)
  • VS (#60)
  • Darcula (#68)
  • a11y Dark (#72)