Skip to content
PrismJS Darcula syntax highlighting theme based on the JetBrains IDEs
CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
.gitignore
.npmignore
LICENSE.txt
README.md
darcula.scss
package-lock.json
package.json

README.md

PrismJS Darcula Theme

npm license

A syntax highlighting theme for PrismJS based on the Darcula theme from the JetBrains IDEs.

Examples

Check out the examples on GitHub pages for:

  • JavaScript
  • HTML
  • Java
  • CSS
  • JSON
  • YAML

Usage

Gatsby

This theme can be used in Gatsby with gatsby-remark-prismjs. Simply install the package using:

npm install prismjs-darcula-theme

And add this line in gatsby-browser.js:

import 'prismjs-darcula-theme/darcula.css';

Alternatively, if you're using gatsby-plugin-sass you can use the original SCSS:

import 'prismjs-darcula-theme/darcula.scss';

Development

Run npm run docs:watch to watch darcula.scss for file changes, compiling it to docs/darcula.css. To compile the file without watching for changes, use npm run docs. Open docs/index.html in your browser to view the results.

You can’t perform that action at this time.