---
title: "Discussion on \"Highlight your code: scope highlight.js theme to a single component\" | Hashnode"
description: "Discussion on \"Highlight your code: scope highlight.js theme to a single component\". A way to scope a highlight.js theme to a single component only, with the possibility to change it dynamically. Use case: light / dark-themed page."
url: "https://hashnode.com/posts/highlight-your-code-scope-highlightjs-theme-to-a-single-component/66d6b1a05078394a397e59a4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Highlight your code: scope highlight.js theme to a single component](https://epanikas.hashnode.dev/highlight-your-code-scope-highlightjs-theme-to-a-single-component?utm_source=hashnode&utm_medium=feed)

A way to scope a highlight.js theme to a single component only, with the possibility to change it dynamically. Use case: light / dark-themed page.

Sep 3, 2024 · 13 min read · epanikas.hashnode.dev  
Read the article

-   [#highlightjs](https://hashnode.com/tag/highlightjs)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#tailwind-css](https://hashnode.com/tag/tailwind-css)
-   [#postcss](https://hashnode.com/tag/postcss)
-   [#css](https://hashnode.com/tag/css)

## Written by

[Emzar Panikashvili](https://hashnode.com/@epanikas)

@epanikas

  
[View profile](https://hashnode.com/@epanikas)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
