Skip to content

Instantly share code, notes, and snippets.

@kshetline
kshetline / github.css
Last active April 2, 2025 19:21
Github styling for Jetbrains/Intellij Markdown Preview -- A Very Close Match
/*
This CSS allows the Jetbrains/Intellij Markdown Preview to closely match the appearance of Markdown
documentation as viewed on GitHub.
Both the light GitHub theme and the dark theme are included here, although only the light theme works by
default. The dark theme is deactivated with an as-yet-unsupported "@media (prefers-color-scheme: dark)"
media query. Simply delete and/or comment out the light theme colors below, and then remove the enclosing
media query from the dark theme colors, in order to use those colors instead.
Color matching GitHub's syntax coloring inside code fences remains a problem. The Jetbrains preview