Dracula Theme for Markdown

A dark theme for rendered markdown using the official Dracula color palette. Use it anywhere you display markdown: static sites, documentation, blogs, or custom markdown renderers.

Installation

<link rel="stylesheet" href="dracula-markdown.css">

Or use the scoped version with a container class:

<link rel="stylesheet" href="dracula-markdown-scoped.css">

<div class="dracula-markdown">
    <!-- Your markdown content -->
</div>

Text Formatting

Regular text looks like this. You can make text bold or italic, or even both. Here's some inline code and a link.

You can also use strikethrough, highlighted text, and keyboard inputs.

Blockquotes

The quick brown fox jumps over the lazy dog. This is a blockquote that shows how quoted text appears in the Dracula theme.

Blockquotes can contain multiple paragraphs and other elements.

Lists

Unordered

Ordered

  1. First step
  2. Second step
    1. Sub-step A
    2. Sub-step B
  3. Third step

Task List

Code

Inline

Use console.log() for debugging or npm install dracula-theme to install.

Block

function greet(name) {
    console.log(`Hello, ${name}!`);
    return true;
}

// Call the function
greet("Dracula");

Tables

Color Hex Usage
Purple #BD93F9 Headings
Cyan #8BE9FD Links
Green #50FA7B Code
Orange #FFB86C Bold
Yellow #F1FA8C Italic
Pink #FF79C6 List markers
Red #FF5555 Strikethrough
Comment #6272A4 Blockquotes, borders

Headings

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Horizontal Rule

Content above the rule.


Content below the rule.

Details/Summary

Click to expand

This is hidden content that appears when you click the summary. It can contain any markdown elements:


Built with the official Dracula color specification.