Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iamskok/gatsby-prismjs-dracula

Dracula PrismJS Theme 🦇
https://github.com/iamskok/gatsby-prismjs-dracula

css gatsby gatsby-plugin gatsby-remark-plugin gatsbyjs sass syntax-highlighting theme

Last synced: 3 months ago
JSON representation

Dracula PrismJS Theme 🦇

Awesome Lists containing this project

README

        



Gatsby



Dracula Theme for Gatsby



Gatsby


All in one dark theme for [`gatsby-remark-prismjs`](https://www.gatsbyjs.org/packages/gatsby-remark-prismjs) plugin with syntax and line highlighting, line numbers, [file title](https://github.com/DSchau/gatsby-remark-code-titles) and [copy button](https://github.com/iamskok/gatsby-remark-code-buttons).

## Installation

```bash
npm install gatsby-prismjs-dracula
```

```js
// gatsby-browser.js
import 'gatsby-prismjs-dracula';
```

## FAQ

* To show line numbers add `{showLineNumbers: true}` in the code block, like [this](https://www.gatsbyjs.org/packages/gatsby-remark-prismjs/#line-numbering) or set them globally by adding `showLineNumbers: true` in `gatsby-remark-prismjs` [options](https://www.gatsbyjs.org/packages/gatsby-remark-prismjs/#how-to-use).

* To add line highlights check out this [article](https://using-remark.gatsbyjs.org/code-and-syntax-highlighting/#line-highlighting--numbering)

* To add button text, tooltip text or to change icon refer to `gatsby-remark-code-buttons` [options](https://github.com/iamskok/gatsby-remark-code-buttons#options) section.

---

[PRs are welcome](https://github.com/iamskok/gatsby-prismjs-dracula/fork) :octocat: