Skip to content

Add equinox.css with syntax highlighting styles#4391

Merged
joshgoebel merged 1 commit into
highlightjs:mainfrom
rfon6ngy:main
Jul 6, 2026
Merged

Add equinox.css with syntax highlighting styles#4391
joshgoebel merged 1 commit into
highlightjs:mainfrom
rfon6ngy:main

Conversation

@rfon6ngy

@rfon6ngy rfon6ngy commented Apr 12, 2026

Copy link
Copy Markdown
Contributor

Add a new "Equinox" theme which aim to be

  • usable in both light and dark mode with the same CSS (hence the name)
  • loosely based on Monaco coloring scheme
  • unopinionated (no background, border, shadow) for a smooth integration

Resolves #4390

Changes

Added new CSS that can hilight in both dark and light mode
<meta name="color-scheme" content="light">
image
<meta name="color-scheme" content="dark">
image

Checklist

  • No markup tests added
  • I can updated CHANGES.md but it was untouched for 9 months so ...

@joshgoebel

Copy link
Copy Markdown
Member

So currentColor blends this with whatever someone's existing color is?

@yne

yne commented Jul 6, 2026

Copy link
Copy Markdown

So currentColor blends this with whatever someone's existing color is?

exact, usually black in light mode, and white in dark mode.

This style aim to be
- usable in both light and dark mode
- loosely based on Monaco coloring scheme
- no background for a smooth integration
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

1 Added File

View Changes
file size
styles/equinox.min.css +408 B

2 files changed

Total change +2 B

View Changes
file base pr diff
es/core.min.js 8.19 KB 8.19 KB +1 B
es/highlight.min.js 8.19 KB 8.19 KB +1 B

@joshgoebel joshgoebel merged commit f6c46ac into highlightjs:main Jul 6, 2026
19 checks passed
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.

[Request] Add a theme that handle light and dark gracefully

4 participants