Skip to content

Instantly share code, notes, and snippets.

@aagerblad
Created February 20, 2026 17:55
Show Gist options
  • Select an option

  • Save aagerblad/fe731034c3a2fbb14618fe6fe96770ec to your computer and use it in GitHub Desktop.

Select an option

Save aagerblad/fe731034c3a2fbb14618fe6fe96770ec to your computer and use it in GitHub Desktop.
Global markdown preview styles for Cursor/VS Code
body {
color: #d4d4d4;
max-width: 860px;
margin: 0 auto;
padding: 2rem 4rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
line-height: 1.6;
}
/* Headings */
h1 {
font-size: 1.8rem;
border-bottom: 2px solid #444;
padding-bottom: 0.4rem;
margin-top: 2rem;
}
h2 {
font-size: 1.4rem;
border-bottom: 1px solid #333;
padding-bottom: 0.3rem;
margin-top: 2.5rem;
}
h3 {
font-size: 1.15rem;
margin-top: 2rem;
}
h4 {
font-size: 1.05rem;
font-weight: 600;
color: #e8c872;
margin-top: 1.8rem;
margin-bottom: 0.4rem;
letter-spacing: 0.01em;
}
/* Tables */
table {
border-collapse: collapse;
margin: 1.2rem auto;
min-width: 50%;
}
th, td {
border: 1px solid #444;
padding: 0.5rem 1rem;
text-align: left;
}
th {
background-color: #2a2a2a;
font-weight: 600;
color: #e0e0e0;
}
tr:nth-child(even) {
background-color: rgba(255, 255, 255, 0.03);
}
/* Horizontal rules */
hr {
border: none;
border-top: 1px solid #333;
margin: 2.5rem 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment