Skip to content

Add variables to customise code syntax blocks#1321

Merged
jamdelion merged 5 commits intomainfrom
jh/editor-codeblock-customisations
Feb 12, 2026
Merged

Add variables to customise code syntax blocks#1321
jamdelion merged 5 commits intomainfrom
jh/editor-codeblock-customisations

Conversation

@jamdelion
Copy link
Contributor

@jamdelion jamdelion commented Feb 11, 2026

Adds variables into be able to control what colour the syntax in the instructions panel codeblocks appears in a consuming repo like the projects site. The original colours remain as a fallback.

@jamdelion jamdelion temporarily deployed to previews/1321/merge February 11, 2026 22:43 — with GitHub Actions Inactive
@jamdelion jamdelion marked this pull request as ready for review February 11, 2026 22:43
Copilot AI review requested due to automatic review settings February 11, 2026 22:43
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 CSS custom properties to enable consuming repositories to customize the syntax highlighting colors in code blocks within the instructions panel. The changes replace direct SCSS variable references with CSS custom properties that fall back to the original SCSS variables, maintaining backward compatibility.

Changes:

  • Replaced hardcoded SCSS color variables with CSS custom properties for syntax highlighting in Python, JavaScript, CSS, and HTML code blocks
  • Added customizable CSS variables for syntax tokens (--code-syntax-1 through --code-syntax-4) and print/white elements (--code-print-color)

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jamdelion jamdelion temporarily deployed to previews/1321/merge February 11, 2026 22:47 — with GitHub Actions Inactive
@jamdelion jamdelion temporarily deployed to previews/1321/merge February 11, 2026 22:56 — with GitHub Actions Inactive
@zetter-rpf
Copy link
Contributor

Let me know when you have done all the customisations you want to so we can release a new version of editor-ui

@jamdelion jamdelion temporarily deployed to previews/1321/merge February 12, 2026 11:49 — with GitHub Actions Inactive
@jamdelion jamdelion merged commit 64e63f4 into main Feb 12, 2026
7 checks passed
@jamdelion jamdelion deleted the jh/editor-codeblock-customisations branch February 12, 2026 12:03
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.

3 participants