Skip to content

Instantly share code, notes, and snippets.

@evalphobia
Created January 27, 2026 03:24
Show Gist options
  • Select an option

  • Save evalphobia/cdc115bdee313b01daa2b44f5b66ff6c to your computer and use it in GitHub Desktop.

Select an option

Save evalphobia/cdc115bdee313b01daa2b44f5b66ff6c to your computer and use it in GitHub Desktop.
VSC Markdown preview CSS
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.6;
color: #c9d1d9;
background-color: #0d1117;
max-width: 980px;
margin: 0 auto;
padding: 24px;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
line-height: 1.25;
margin-top: 24px;
margin-bottom: 16px;
color: #e6edf3;
}
h1 {
font-size: 2em;
padding-bottom: 0.3em;
border-bottom: 2px solid #30363d;
}
h2 {
font-size: 1.5em;
padding-bottom: 0.3em;
border-bottom: 1px solid #30363d;
}
h3 {
font-size: 1.25em;
}
h4 {
font-size: 1em;
}
h5 {
font-size: 0.875em;
}
h6 {
font-size: 0.85em;
color: #8b949e;
}
p {
margin-top: 0;
margin-bottom: 16px;
}
a {
color: #58a6ff;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
ul, ol {
margin-top: 0;
margin-bottom: 16px;
padding-left: 2em;
}
li {
margin-bottom: 4px;
}
li > ul,
li > ol {
margin-top: 4px;
margin-bottom: 0;
}
code {
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Monaco, "Courier New", monospace;
font-size: 0.875em;
padding: 0.2em 0.4em;
margin: 0;
background-color: #161b22;
border-radius: 6px;
color: #e6edf3;
}
pre {
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Monaco, "Courier New", monospace;
font-size: 0.875em;
line-height: 1.45;
background-color: #161b22;
border-radius: 6px;
padding: 16px;
overflow: auto;
margin-top: 0;
margin-bottom: 16px;
border: 1px solid #30363d;
}
pre code {
font-size: 100%;
padding: 0;
margin: 0;
background-color: transparent;
border-radius: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
margin-top: 0;
margin-bottom: 16px;
overflow: auto;
display: block;
}
table th,
table td {
padding: 8px 12px;
border: 1px solid #30363d;
}
table th {
font-weight: 600;
background-color: #161b22;
text-align: left;
color: #e6edf3;
}
table tr {
background-color: #0d1117;
}
table tr:nth-child(2n) {
background-color: #161b22;
}
blockquote {
margin: 0 0 16px 0;
padding: 0 16px;
color: #8b949e;
border-left: 4px solid #30363d;
}
blockquote > :first-child {
margin-top: 0;
}
blockquote > :last-child {
margin-bottom: 0;
}
hr {
height: 2px;
padding: 0;
margin: 24px 0;
background-color: #30363d;
border: 0;
}
img {
max-width: 100%;
box-sizing: border-box;
border-radius: 6px;
}
strong {
font-weight: 600;
color: #e6edf3;
}
em {
font-style: italic;
}
del {
color: #8b949e;
}
.task-list-item {
list-style-type: none;
}
.task-list-item input[type="checkbox"] {
margin-right: 8px;
}
kbd {
display: inline-block;
padding: 3px 5px;
font-size: 0.75em;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Monaco, "Courier New", monospace;
line-height: 1;
color: #e6edf3;
vertical-align: middle;
background-color: #161b22;
border: 1px solid #30363d;
border-radius: 6px;
box-shadow: inset 0 -1px 0 #30363d;
}
dt {
font-weight: 600;
margin-top: 16px;
color: #e6edf3;
}
dd {
margin-left: 0;
padding-left: 16px;
margin-bottom: 16px;
}
.footnotes {
font-size: 0.875em;
color: #8b949e;
border-top: 1px solid #30363d;
margin-top: 32px;
padding-top: 16px;
}
::selection {
background-color: #58a6ff;
color: #0d1117;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment