base16-prism
v0.3.0
Published
base16 theme collections for PrismJS
Downloads
23
Readme
base16-prism
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