base16-prism

0.3.0 • Public • Published

base16-prism

npm

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

Readme

Keywords

Package Sidebar

Install

npm i base16-prism

Weekly Downloads

13

Version

0.3.0

License

MIT

Unpacked Size

541 kB

Total Files

184

Last publish

Collaborators

  • h404bi
  • chawyehsu