Skip to content

Conversation

@benhorsburgh
Copy link

@benhorsburgh benhorsburgh commented Dec 15, 2025

Description

Addition of a new highlightjs.css stylesheet that provides Vizro-styled syntax highlighting in both light and dark mode.

Fixes #1525

Screenshot

Light mode

image

Dark mode

image

Notice

  • I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":

    • I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.
    • I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorized to submit this contribution on behalf of the original creator(s) or their licensees.
    • I certify that the use of this contribution as authorized by the Apache 2.0 license does not violate the intellectual property rights of anyone else.
    • I have not referenced individuals, products or companies in any commits, directly or indirectly.
    • I have not added data or restricted code in any commits, directly or indirectly.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new CSS stylesheet for code syntax highlighting using highlight.js, providing Vizro-styled colors that work in both light and dark themes. Additionally, the PR adds a new contributor to the authors list.

Key changes:

  • New highlightjs.css file implementing syntax highlighting color schemes using CSS variables
  • Addition of "Ben Horsburgh" to the contributors list in authors.md

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 10 comments.

File Description
vizro-core/src/vizro/static/css/highlightjs.css New CSS file defining color scheme for highlight.js syntax highlighting with Vizro theme variables
vizro-core/docs/pages/explanation/authors.md Added new contributor Ben Horsburgh to the contributors list

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Syntax highlighting in dark mode

1 participant