LearnNewsExamplesServices
Frontmatter
id8847
titleFix Dark Theme for HighlightJS
stateClosed
labels
bugdesign
assigneestobiu
createdAtJan 21, 2026, 12:37 PM
updatedAtJan 21, 2026, 12:41 PM
githubUrlhttps://github.com/neomjs/neo/issues/8847
authortobiu
commentsCount1
parentIssue8727
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 21, 2026, 12:41 PM

Fix Dark Theme for HighlightJS

Closed v11.23.0 bugdesign
tobiu
tobiu commented on Jan 21, 2026, 12:37 PM

Update the SCSS variables for HighlightJS and LineNumbers in the dark theme to use appropriate dark mode colors.

Files to Update:

  1. resources/scss/theme-neo-dark/util/HighlightJs.scss: Use a dark palette (e.g., GitHub Dark).
  2. resources/scss/theme-neo-dark/util/HighlightJsLineNumbers.scss: Use dark background and lighter text for line numbers.

Current State: The dark theme files currently contain light theme colors (white background), causing visual artifacts in the Portal App's dark mode.

tobiu added the bug label on Jan 21, 2026, 12:37 PM
tobiu added the design label on Jan 21, 2026, 12:37 PM
tobiu added parent issue #8727 on Jan 21, 2026, 12:38 PM
tobiu referenced in commit 18bf5b4 - "fix: Fix Dark Theme for HighlightJS (#8847)" on Jan 21, 2026, 12:40 PM
tobiu
tobiu Jan 21, 2026, 12:40 PM

Input from Gemini 3 Pro:

✦ I have corrected the dark theme colors for HighlightJS.

Changes:

  1. Updated resources/scss/theme-neo-dark/util/HighlightJs.scss: Applied a GitHub Dark inspired palette (dark background #0d1117, light syntax highlighting colors) to replace the incorrect light theme values.
  2. Updated resources/scss/theme-neo-dark/util/HighlightJsLineNumbers.scss: Applied dark background and dim text colors for line numbers.

Since the SCSS variables are scoped to .neo-theme-neo-dark, and Neo.util.HighlightJs ensures the CSS files are loaded, switching the theme on the Portal Viewport will now automatically apply these corrected styles to all markdown code blocks.

tobiu assigned to @tobiu on Jan 21, 2026, 12:40 PM
tobiu closed this issue on Jan 21, 2026, 12:41 PM