Use VSCode Theme Synthwave '84 in your website syntax highlighting

themarcba profile image Marc Backes πŸ₯‘ ・1 min read

I have a huge reason to cheer right now. I made my very first open source contribution πŸŽ‰πŸŽ‰πŸŽ‰πŸ₯³

For a couple of months now I've been using this awesome VS Code theme called Synthwave '84 by Robb Owen.

I liked it that much that I wanted to use it as syntax highlighting theme for my blog.

I use PrismJS as syntax highlighting tool, but the theme could not be found there, so I decided to give it a try and port Robb's theme to Prism.

You can check out the theme here:

In order to use it, you just need a code.language-* within a pre.language-* element and add the prism.js file. (* stands for the language you want to highlight, e.g. javascript, css)

<!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet" href="./prism-synthwave84.css">
        <pre class="language-javascript">
            <code class="language-javascript">
                // Some JavaScript code here...
                const performances = ['🎺', '🎸', '🎀']
                performances.forEach(performance => {
                    let me = entertain(you, performance)();
        <script src="./prism.js"></script>

You can download the prism.js file from their website.

The result will be something like this:
Synthwave '84 in action

Or if you already use Prism, just replace the CSS file with the Synthwave file.

Posted on by:

themarcba profile

Marc Backes πŸ₯‘


Web Developer πŸ’» Β· Freelancer πŸš€ Β· Traveler 🌎 Β· Tech enthusiast πŸ™Œ Β· Espresso lover ✌️ Β· Happily married ❀️ Β· Polyglot


Editor guide

Congrats on your first contribution! πŸ”₯


Thank you so much, Nick. Appreciate it


I use this, but I turned off the glow.


you should add it to the prism web site (I don't know how)


That's awesome. Building stuff is always cooler than not building stuff.

However, I wonder if anyone else here can speak to how accessibility friendly that is.


Uh, I'm anything but an a11y expert. But you're probably right. I don't know if there is someone here who can comment on that.