base16-prism

Base16 for PrismJS

MIT License

Downloads
17
Stars
4

base16-prism

base16 theme collections for Prism.JS

Usage

To use one of the themes, just include the theme's CSS file in your page. Example:

<!DOCTYPE html>
<html>
    <head>
        ...
        <link href="themes/base16-solarized-dark.css" rel="stylesheet" />
    </head>
    <body>
        ...
        <script src="prism.js"></script>
    </body>
</html>

If you're building an app with npm and webpack, then you can install the theme package via npm, and import the theme's CSS you want to use like:

npm install base16-prism --save

Then in your project's entry.js file, for example:

import 'base16-prism/themes/base16-solarized-dark.css'

License

MIT Chawye Hsu

Website GitHub @chawyehsu Twitter @chawyehsu

Package Rankings
Top 11.64% on Npmjs.org
Badges
Extracted from project README
npm