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.
<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>
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.
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.
Use console.log() for debugging or npm install dracula-theme to install.
function greet(name) {
console.log(`Hello, ${name}!`);
return true;
}
// Call the function
greet("Dracula");
| 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 |
Content above the rule.
Content below the rule.
This is hidden content that appears when you click the summary. It can contain any markdown elements:
exampleBuilt with the official Dracula color specification.