Skip to content

chawyehsu/base16-prism

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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